aboutsummaryrefslogtreecommitdiff
path: root/include/sys/socket.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-14 20:15:40 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-14 20:15:40 +0000
commit08f600749ecfeedfcd70c4dd8d0a9fa6c4380a1c (patch)
treeb6f1e16464e572ea28deb01a7db8d6850d64b8b3 /include/sys/socket.h
parentf83af095b6fc49de3914f4426202171341783277 (diff)
downloadglibc-08f600749ecfeedfcd70c4dd8d0a9fa6c4380a1c.zip
glibc-08f600749ecfeedfcd70c4dd8d0a9fa6c4380a1c.tar.gz
glibc-08f600749ecfeedfcd70c4dd8d0a9fa6c4380a1c.tar.bz2
Update.
* include/sys/socket.h: Declare __libc_sa_len_internal and define SA_LEN macro to use it if not NOT_IN_libc. * sysdeps/unix/sysv/linux/sa_len.c: Use INTDEF for __libc_sa_len. * include/fcntl.h: Declare __open_internal and define __open and __libc_open macros if not NOT_IN_libc. * sysdeps/generic/open.c: Use INTDEF for __open. * sysdeps/mach/hurd/open.c: Likewise. * sysdeps/unix/sysv/aix/open.c: Likewise. * sysdeps/unix/syscalls.list: Add __open_internal alias. * sysdeps/generic/check_fds.c: Make sure newly opened file descriptor has correct number. * include/fcntl.h: Define __libc_fcntl macro if not NOT_IN_libc. * sysdeps/mach/hurd/fcntl.c: Undefine __libc_fcntl as well. * sysdeps/unix/sysv/aix/fcntl.c: Likewise. * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. * include/wctype.h: Declare __iswalpha_l_internal, __iswdigit_l_internal, __iswspace_l_internal, __iswxdigit_l_internal, and __iswctype_internal. Define __iswalpha_l, __iswctype, __iswdigit_l, __iswspace_l, and __iswxdigit_l macros if not NOT_IN_libc. * wctype/iswctype.c: Use INTDEF for __iswctype. * wctype/wcfuncs_l.c: Use INTDEF for all __iswXXX_l.
Diffstat (limited to 'include/sys/socket.h')
-rw-r--r--include/sys/socket.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index c09eac4..5a8169f 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -34,8 +34,13 @@ extern int __connect_internal (int __fd, __CONST_SOCKADDR_ARG __addr,
#ifdef _HAVE_SA_LEN
# define SA_LEN(_x) (_x)->sa_len
#else
-# define SA_LEN(_x) __libc_sa_len((_x)->sa_family)
-extern int __libc_sa_len (sa_family_t __af) __THROW;
+extern int __libc_sa_len (sa_family_t __af);
+extern int __libc_sa_len_internal (sa_family_t __af) attribute_hidden;
+# ifndef NOT_IN_libc
+# define SA_LEN(_x) INTUSE(__libc_sa_len)((_x)->sa_family)
+# else
+# define SA_LEN(_x) __libc_sa_len((_x)->sa_family)
+# endif
#endif