2002-06-24 Jeff Johnston <jjohnstn@redhat.com>

* libc/sys/linux/gethostname.c: Change name to __gethostname and
        add gethostname alias.
This commit is contained in:
Jeff Johnston
2002-06-24 21:46:06 +00:00
parent e773b7cf30
commit 59c6d6c4b5
2 changed files with 8 additions and 2 deletions

View File

@ -4,9 +4,10 @@
#include <string.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <machine/weakalias.h>
int
gethostname (char *name, size_t len)
__gethostname (char *name, size_t len)
{
struct utsname nodebuf;
size_t nodelen;
@ -27,4 +28,4 @@ gethostname (char *name, size_t len)
}
return 0;
}
weak_alias(__gethostname, gethostname)