aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/sysv4/gethostname.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-02 08:05:36 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-02 08:05:36 +0000
commit750f9af6199e4a76e04c819b25dfcb58cf779b60 (patch)
tree7036afda0c826c43c367d3e62e6e1c68e320345c /sysdeps/unix/sysv/sysv4/gethostname.c
parentad483238a1ef7bce6d8534a84ba548c455d1631e (diff)
downloadglibc-750f9af6199e4a76e04c819b25dfcb58cf779b60.zip
glibc-750f9af6199e4a76e04c819b25dfcb58cf779b60.tar.gz
glibc-750f9af6199e4a76e04c819b25dfcb58cf779b60.tar.bz2
Update.
* posix/unistd.h (socklen_t): Define if it has not yet happened. (gethostname): Change type of second parameter to socklen_t. * include/unistd.h (__gethostname): Change type of second parameter to socklen_t. * sysdeps/generic/gethostname.c (__gethostname): Likewise. * sysdeps/mach/hurd/gethostname.c (__gethostname): Likewise. * sysdeps/unix/sysv/gethostname.c (__gethostname): Likewise. * sysdeps/unix/sysv/sysv4/solaris2/gethostname.c (__gethostname): Likewise. * sysdeps/unix/sysv/linux/gethostname.c: Removed. * sysdeps/generic/bits/socket.h: Use __socklen_t to define socklen_t. Allow definition elsewhere. * sysdeps/unix/sysv/aix/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/bits/socket.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/socket.h: Likewise. * sysdeps/generic/bits/types.h: Define __socklen_t. * sysdeps/unix/sysv/aix/bits/types.h: Likewise. * sysdeps/unix/sysv/hpux/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise. * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/sysv4/gethostname.c')
-rw-r--r--sysdeps/unix/sysv/sysv4/gethostname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/sysv4/gethostname.c b/sysdeps/unix/sysv/sysv4/gethostname.c
index 558d16e..3f967e1 100644
--- a/sysdeps/unix/sysv/sysv4/gethostname.c
+++ b/sysdeps/unix/sysv/sysv4/gethostname.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Brendan Kehoe (brendan@zen.org).
@@ -22,12 +22,12 @@
#include <sys/types.h>
#include <sys/systeminfo.h>
-extern int __sysinfo __P ((int command, char *buf, long count));
+extern int __sysinfo (int command, char *buf, long int count);
int
__gethostname (name, namelen)
char *name;
- size_t namelen;
+ socklen_t namelen;
{
return __sysinfo (SI_HOSTNAME, name, namelen);
}