Home
last modified time | relevance | path

Searched refs:O_ACCMODE (Results 1 – 13 of 13) sorted by relevance

/haiku/src/system/libroot/posix/glibc/libio/
H A Diofdopen.c94 #ifndef O_ACCMODE in _IO_new_fdopen()
95 #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR) in _IO_new_fdopen() macro
100 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()
/haiku/headers/posix/
H A Dfcntl.h37 #define O_ACCMODE 0x0003 /* mask to get the access modes above */ macro
38 #define O_RWMASK O_ACCMODE
/haiku/src/build/libbe/storage/
H A DFile.cpp313 && ((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()
/haiku/src/system/kernel/fs/
H A Dfifo.cpp636 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()
/haiku/src/servers/midi/
H A DDeviceWatcher.cpp248 if ((flags & O_ACCMODE) != O_RDONLY) { in _AddDevice()
255 if ((flags & O_ACCMODE) != O_WRONLY) { in _AddDevice()
/haiku/src/system/boot/loader/file_systems/packagefs/
H A Dpackagefs.cpp559 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()
/haiku/src/build/libroot/
H A Dfs_descriptors.cpp361 if ((fOpenMode & O_ACCMODE) != O_WRONLY in Write()
362 && (fOpenMode & O_ACCMODE) != O_RDWR) { in Write()
/haiku/src/servers/media/
H A DMediaFilesManager.cpp437 bool createFile = (mode & O_ACCMODE) != O_RDONLY; in _OpenSettingsFile()
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dwin32_io.c451 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()
/haiku/src/apps/powerstatus/
H A DPowerStatusView.cpp928 (mode & O_ACCMODE) != O_RDONLY); in _GetSettings()
/haiku/src/preferences/keymap/
H A DKeymapWindow.cpp1067 (mode & O_ACCMODE) != O_RDONLY); in _GetSettings()
/haiku/headers/private/fs_shell/
H A Dfssh_api_wrapper.h774 #define O_ACCMODE FSSH_O_ACCMODE macro
/haiku/src/system/kernel/vm/
H A Dvm.cpp2293 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()