diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-02 08:05:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-02 08:05:36 +0000 |
commit | 750f9af6199e4a76e04c819b25dfcb58cf779b60 (patch) | |
tree | 7036afda0c826c43c367d3e62e6e1c68e320345c /posix/unistd.h | |
parent | ad483238a1ef7bce6d8534a84ba548c455d1631e (diff) | |
download | glibc-750f9af6199e4a76e04c819b25dfcb58cf779b60.tar glibc-750f9af6199e4a76e04c819b25dfcb58cf779b60.tar.gz glibc-750f9af6199e4a76e04c819b25dfcb58cf779b60.tar.bz2 glibc-750f9af6199e4a76e04c819b25dfcb58cf779b60.zip |
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 'posix/unistd.h')
-rw-r--r-- | posix/unistd.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/posix/unistd.h b/posix/unistd.h index e482d1b256..1bae274981 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -242,6 +242,13 @@ typedef __intptr_t intptr_t; # endif #endif +#if defined __USE_BSD || defined __USE_XOPEN +# ifndef __socklen_t_defined +typedef __socklen_t socklen_t; +# define __socklen_t_defined +# endif +#endif + /* Values for the second argument to access. These may be OR'd together. */ #define R_OK 4 /* Test for read permission. */ @@ -735,7 +742,7 @@ extern int setlogin (__const char *__name) __THROW; /* Put the name of the current host in no more than LEN bytes of NAME. The result is null-terminated if LEN is large enough for the full name and the terminator. */ -extern int gethostname (char *__name, size_t __len) __THROW; +extern int gethostname (char *__name, socklen_t __len) __THROW; /* Set the name of the current host to NAME, which is LEN bytes long. This call is restricted to the super-user. */ |