Changeset 7f9df7b9 in mainline for uspace/lib/posix/src/fcntl.c
- Timestamp:
- 2018-01-22T22:42:57Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7a08c70
- Parents:
- e0f47f5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/fcntl.c
re0f47f5 r7f9df7b9 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.