]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/fcntl.h
(HAVE_BROKEN_ALIAS_ATTRIBUTE): Add. (HAVE_BROKEN_VISIBILITY_ATTRIBUTE): Add.
[thirdparty/glibc.git] / include / fcntl.h
CommitLineData
6796bc80 1#ifndef _FCNTL_H
28f540f4 2#include <io/fcntl.h>
bdbf022d
UD
3
4/* Now define the internal interfaces. */
c19559b0 5extern int __open64 (__const char *__file, int __oflag, ...);
762e5d48
UD
6extern int __libc_open64 (const char *file, int oflag, ...);
7extern int __libc_open (const char *file, int oflag, ...);
8extern int __libc_fcntl (int fd, int cmd, ...);
414a6b0d 9extern int __open (__const char *__file, int __oflag, ...);
08f60074
UD
10extern int __open_internal (__const char *__file, int __oflag, ...)
11 attribute_hidden;
6b87a564 12extern int __fcntl (int __fd, int __cmd, ...);
08f60074 13extern int __fcntl_internal (int __fd, int __cmd, ...) attribute_hidden;
6b87a564
UD
14
15#ifndef NOT_IN_libc
16# define __fcntl(fd, cmd, args...) INTUSE(__fcntl) (fd, cmd, ##args)
08f60074
UD
17# define __open(file, oflag, args...) INTUSE(__open) (file, oflag, ##args)
18# ifdef SHARED
19# define __libc_fcntl(fd, cmd, args...) __fcntl_internal (fd, cmd, ##args)
20# define __libc_open(file, oflag, args...) \
21 __open_internal (file, oflag, ##args)
22# endif
6b87a564 23#endif
762e5d48 24
6796bc80 25#endif