* uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.

This commit is contained in:
Corinna Vinschen 2003-01-12 11:45:54 +00:00
parent ab2dbccc11
commit 7f129d8753
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2003-01-12 Corinna Vinschen <corinna@vinschen.de>
* uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.
2003-01-12 Pierre Humblet <pierre.humblet@ieee.org>
* sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.

View File

@ -19,7 +19,6 @@ details. */
extern "C" int
uname (struct utsname *name)
{
DWORD len;
SYSTEM_INFO sysinfo;
if (check_null_invalid_struct_errno (name))
@ -33,8 +32,7 @@ uname (struct utsname *name)
GetSystemInfo (&sysinfo);
/* Computer name */
len = sizeof (name->nodename) - 1;
GetComputerNameA (name->nodename, &len);
cygwin_gethostname (name->nodename, sizeof (name->nodename) - 1);
/* Cygwin dll release */
__small_sprintf (name->release, "%d.%d.%d%s(%d.%d/%d/%d)",