Changes in uspace/lib/posix/include/posix/fcntl.h [c8830a2:b19e892] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/fcntl.h
rc8830a2 rb19e892 36 36 #define POSIX_FCNTL_H_ 37 37 38 #ifndef __POSIX_DEF__ 39 #define __POSIX_DEF__(x) x 40 #endif 41 38 42 #include "sys/types.h" 39 #include "libc/fcntl.h"40 43 #include "errno.h" 44 45 #undef O_CREAT 46 #undef O_EXCL 47 #undef O_TRUNC 48 #undef O_APPEND 49 #undef O_RDONLY 50 #undef O_RDWR 51 #undef O_WRONLY 52 #define O_CREAT 1 53 #define O_EXCL 2 54 #define O_TRUNC 4 55 #define O_APPEND 8 56 #define O_RDONLY 16 57 #define O_RDWR 32 58 #define O_WRONLY 64 41 59 42 60 /* Mask for file access modes. */ … … 76 94 #define FD_CLOEXEC 1 /* Close on exec. */ 77 95 78 extern int posix_open(const char *pathname, int flags, ...);79 extern int posix_fcntl(int fd, int cmd, ...);96 extern int __POSIX_DEF__(open)(const char *pathname, int flags, ...); 97 extern int __POSIX_DEF__(fcntl)(int fd, int cmd, ...); 80 98 81 #ifndef LIBPOSIX_INTERNAL82 #define fcntl posix_fcntl83 #define open posix_open84 #endif85 99 86 100 #endif /* POSIX_FCNTL_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.