Changeset efdfebc in mainline for uspace/lib/posix/include/posix/fcntl.h
- Timestamp:
- 2012-11-06T21:03:44Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 338810f
- Parents:
- de73242 (diff), 94795812 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/fcntl.h
rde73242 refdfebc 72 72 #define FD_CLOEXEC 1 /* Close on exec. */ 73 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 74 extern int posix_open(const char *pathname, int flags, ...); 85 75 extern int posix_fcntl(int fd, int cmd, ...); 86 76 87 77 #ifndef LIBPOSIX_INTERNAL 88 78 #define fcntl posix_fcntl 79 #define open posix_open 89 80 #endif 90 81
Note:
See TracChangeset
for help on using the changeset viewer.