summaryrefslogtreecommitdiff
path: root/include/fcntl.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/fcntl.h
parentf83af095b6fc49de3914f4426202171341783277 (diff)
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/fcntl.h')
-rw-r--r--include/fcntl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/fcntl.h b/include/fcntl.h
index 7ac5febbf2..f14baf7ae5 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -7,11 +7,19 @@ extern int __libc_open64 (const char *file, int oflag, ...);
extern int __libc_open (const char *file, int oflag, ...);
extern int __libc_fcntl (int fd, int cmd, ...);
extern int __open (__const char *__file, int __oflag, ...);
+extern int __open_internal (__const char *__file, int __oflag, ...)
+ attribute_hidden;
extern int __fcntl (int __fd, int __cmd, ...);
-extern int __fcntl_internal (int __fd, int __cmd, ...);
+extern int __fcntl_internal (int __fd, int __cmd, ...) attribute_hidden;
#ifndef NOT_IN_libc
# define __fcntl(fd, cmd, args...) INTUSE(__fcntl) (fd, cmd, ##args)
+# define __open(file, oflag, args...) INTUSE(__open) (file, oflag, ##args)
+# ifdef SHARED
+# define __libc_fcntl(fd, cmd, args...) __fcntl_internal (fd, cmd, ##args)
+# define __libc_open(file, oflag, args...) \
+ __open_internal (file, oflag, ##args)
+# endif
#endif
#endif