Lines Matching refs:oflag
33 mapfile_open(const char* path, int oflag, int share_mode) in mapfile_open() argument
42 if ((oflag & O_RDWR) == O_RDWR) { in mapfile_open()
44 } else if ((oflag & O_ACCMODE) == O_RDONLY) { in mapfile_open()
46 } else if ((oflag & O_WRONLY) == O_WRONLY) { in mapfile_open()
60 if ((oflag & O_CREAT) == O_CREAT) { in mapfile_open()
61 if ((oflag & O_EXCL) == O_EXCL) { in mapfile_open()
66 } if ((oflag & O_TRUNC) == O_TRUNC) { in mapfile_open()
75 if ((oflag & O_DSYNC) == O_DSYNC || in mapfile_open()
76 (oflag & O_RSYNC) == O_RSYNC || in mapfile_open()
77 (oflag & O_RSYNC) == O_SYNC) { in mapfile_open()
88 int file_handle = open(path, oflag, share_mode); in mapfile_open()