Changeset 221afc9e in mainline for uspace/lib/posix/fcntl.h
- Timestamp:
- 2011-07-12T02:43:56Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2346e78
- Parents:
- 46ac986
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/fcntl.h
r46ac986 r221afc9e 71 71 #define FD_CLOEXEC 1 /* Close on exec. */ 72 72 73 #undef open 74 #define open(path, oflag, ...) \ 75 ({ \ 76 int rc = open(path, oflag, ##__VA_ARGS__); \ 77 if (rc < 0) { \ 78 errno = -rc; \ 79 rc = -1; \ 80 } \ 81 rc; \ 82 }) 83 73 84 extern int posix_fcntl(int fd, int cmd, ...); 74 85
Note:
See TracChangeset
for help on using the changeset viewer.