Changeset 2b3dd78 in mainline for uspace/lib/posix/src/fcntl.c
- Timestamp:
- 2018-01-31T12:02:00Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5595841
- Parents:
- a0a9cc2 (diff), 14d789c (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/src/fcntl.c
ra0a9cc2 r2b3dd78 33 33 */ 34 34 35 #define LIBPOSIX_INTERNAL36 #define __POSIX_DEF__(x) posix_##x37 38 35 #include "internal/common.h" 39 36 #include "posix/fcntl.h" … … 51 48 * to the requested operation. 52 49 */ 53 int posix_fcntl(int fd, int cmd, ...)50 int fcntl(int fd, int cmd, ...) 54 51 { 55 52 int flags; … … 102 99 * @param posix_flags Access mode flags. 103 100 */ 104 int posix_open(const char *pathname, int posix_flags, ...)101 int open(const char *pathname, int posix_flags, ...) 105 102 { 106 posix_mode_t posix_mode = 0;103 mode_t posix_mode = 0; 107 104 if (posix_flags & O_CREAT) { 108 105 va_list args; 109 106 va_start(args, posix_flags); 110 posix_mode = va_arg(args, posix_mode_t);107 posix_mode = va_arg(args, mode_t); 111 108 va_end(args); 112 109 (void) posix_mode;
Note:
See TracChangeset
for help on using the changeset viewer.