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,6 +4,11 @@ Mon Jun 24 21:17:02 2002 J"orn Rennecke <joern.rennecke@superh.com>
* libc/machine/sh/Makefile.am (lib_a_SOURCES): Add rule for it.
* libc/machine/sh/Makefile.am: Regenerate.
2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/gethostname.c: Change name to __gethostname and
add gethostname alias.
2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/math.h: Remove <sys/types.h>.

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)