Changes in uspace/lib/posix/fcntl.h [6817eba:87ba48cb] in mainline
- File:
-
- 1 edited
-
uspace/lib/posix/fcntl.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/fcntl.h
r6817eba r87ba48cb 38 38 #include "sys/types.h" 39 39 #include "libc/fcntl.h" 40 #include "errno.h"41 40 42 41 /* Mask for file access modes. */ … … 72 71 #define FD_CLOEXEC 1 /* Close on exec. */ 73 72 74 #undef open75 #define open(path, ...) \76 ({ \77 int rc = open(path, ##__VA_ARGS__); \78 if (rc < 0) { \79 errno = -rc; \80 rc = -1; \81 } \82 rc; \83 })84 85 73 extern int posix_fcntl(int fd, int cmd, ...); 86 74
Note:
See TracChangeset
for help on using the changeset viewer.
