Changeset 1916d1f in mainline for uspace/lib/posix/fcntl.h
- Timestamp:
- 2011-07-12T13:41:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50fc490
- Parents:
- 11809eab (diff), 6817eba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/fcntl.h
r11809eab r1916d1f 38 38 #include "sys/types.h" 39 39 #include "libc/fcntl.h" 40 #include "errno.h" 40 41 41 42 /* Mask for file access modes. */ … … 71 72 #define FD_CLOEXEC 1 /* Close on exec. */ 72 73 74 #undef open 75 #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 73 85 extern int posix_fcntl(int fd, int cmd, ...); 74 86
Note:
See TracChangeset
for help on using the changeset viewer.