Searched refs:O_ACCMODE (Results 1 – 13 of 13) sorted by relevance
94 #ifndef O_ACCMODE in _IO_new_fdopen()95 #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR) in _IO_new_fdopen() macro100 if (((fd_flags & O_ACCMODE) == O_RDONLY && !(read_write & _IO_NO_WRITES)) in _IO_new_fdopen()101 || ((fd_flags & O_ACCMODE) == O_WRONLY && !(read_write & _IO_NO_READS))) in _IO_new_fdopen()
37 #define O_ACCMODE 0x0003 /* mask to get the access modes above */ macro38 #define O_RWMASK O_ACCMODE
313 && ((fMode & O_ACCMODE) == O_RDONLY in IsReadable()314 || (fMode & O_ACCMODE) == O_RDWR)); in IsReadable()328 && ((fMode & O_ACCMODE) == O_WRONLY in IsWritable()329 || (fMode & O_ACCMODE) == O_RDWR)); in IsWritable()
636 if ((openMode & O_ACCMODE) == O_WRONLY || (openMode & O_ACCMODE) == O_RDWR) in Open()639 if ((openMode & O_ACCMODE) == O_RDONLY || (openMode & O_ACCMODE) == O_RDWR) in Open()643 if ((openMode & O_ACCMODE) == O_WRONLY && fReaderCount == 0) { in Open()648 if ((openMode & O_ACCMODE) == O_RDONLY && fWriterCount == 0 in Open()693 if ((openMode & O_ACCMODE) == O_WRONLY || (openMode & O_ACCMODE) == O_RDWR) { in Close()698 if ((openMode & O_ACCMODE) == O_RDONLY || (openMode & O_ACCMODE) == O_RDWR) { in Close()
248 if ((flags & O_ACCMODE) != O_RDONLY) { in _AddDevice()255 if ((flags & O_ACCMODE) != O_WRONLY) { in _AddDevice()
559 if ((mode & O_ACCMODE) != O_RDONLY && (mode & O_ACCMODE) != O_RDWR) in Open()720 if ((mode & O_ACCMODE) != O_RDONLY && (mode & O_ACCMODE) != O_RDWR) in Open()
361 if ((fOpenMode & O_ACCMODE) != O_WRONLY in Write()362 && (fOpenMode & O_ACCMODE) != O_RDWR) { in Write()
437 bool createFile = (mode & O_ACCMODE) != O_RDONLY; in _OpenSettingsFile()
451 switch (flags & O_ACCMODE) { in ntfs_device_unix_status_flags_to_win32()808 mode = flags & O_ACCMODE; in ntfs_device_win32_open_file()911 mode = flags & O_ACCMODE; in ntfs_device_win32_open_lowlevel()
928 (mode & O_ACCMODE) != O_RDONLY); in _GetSettings()
1067 (mode & O_ACCMODE) != O_RDONLY); in _GetSettings()
774 #define O_ACCMODE FSSH_O_ACCMODE macro
2293 if ((openMode & O_ACCMODE) == O_WRONLY in _vm_map_file()2296 && (openMode & O_ACCMODE) == O_RDONLY)) { in _vm_map_file()2302 if ((openMode & O_ACCMODE) == O_RDWR) in _vm_map_file()