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:
parent
e773b7cf30
commit
59c6d6c4b5
|
@ -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 (lib_a_SOURCES): Add rule for it.
|
||||||
* libc/machine/sh/Makefile.am: Regenerate.
|
* 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>
|
2002-06-24 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* libc/include/math.h: Remove <sys/types.h>.
|
* libc/include/math.h: Remove <sys/types.h>.
|
||||||
|
|
|
@ -4,9 +4,10 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
|
#include <machine/weakalias.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
gethostname (char *name, size_t len)
|
__gethostname (char *name, size_t len)
|
||||||
{
|
{
|
||||||
struct utsname nodebuf;
|
struct utsname nodebuf;
|
||||||
size_t nodelen;
|
size_t nodelen;
|
||||||
|
@ -27,4 +28,4 @@ gethostname (char *name, size_t len)
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
weak_alias(__gethostname, gethostname)
|
||||||
|
|
Loading…
Reference in New Issue