Changes in uspace/lib/posix/include/posix/fcntl.h [c8830a2:fdf97f6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/fcntl.h
rc8830a2 rfdf97f6 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 43 #include "libc/fcntl.h" … … 43 47 #undef O_ACCMODE 44 48 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) 45 46 /* Dummy compatibility flag */47 #undef O_NOCTTY48 #define O_NOCTTY 049 49 50 50 /* fcntl commands */ … … 76 76 #define FD_CLOEXEC 1 /* Close on exec. */ 77 77 78 extern int posix_open(const char *pathname, int flags, ...);79 extern int posix_fcntl(int fd, int cmd, ...);78 extern int __POSIX_DEF__(open)(const char *pathname, int flags, ...); 79 extern int __POSIX_DEF__(fcntl)(int fd, int cmd, ...); 80 80 81 #ifndef LIBPOSIX_INTERNAL82 #define fcntl posix_fcntl83 #define open posix_open84 #endif85 81 86 82 #endif /* POSIX_FCNTL_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.