]>
Commit | Line | Data |
---|---|---|
6796bc80 | 1 | #ifndef _FCNTL_H |
28f540f4 | 2 | #include <io/fcntl.h> |
bdbf022d UD |
3 | |
4 | /* Now define the internal interfaces. */ | |
c19559b0 | 5 | extern int __open64 (__const char *__file, int __oflag, ...); |
762e5d48 UD |
6 | extern int __libc_open64 (const char *file, int oflag, ...); |
7 | extern int __libc_open (const char *file, int oflag, ...); | |
8 | extern int __libc_fcntl (int fd, int cmd, ...); | |
414a6b0d | 9 | extern int __open (__const char *__file, int __oflag, ...); |
08f60074 UD |
10 | extern int __open_internal (__const char *__file, int __oflag, ...) |
11 | attribute_hidden; | |
6b87a564 | 12 | extern int __fcntl (int __fd, int __cmd, ...); |
08f60074 | 13 | extern 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 |