Searched refs:ModeFlags (Results 1 – 7 of 7) sorted by relevance
66 using ModeFlags = File::ModeFlags; in openfile() typedef73 if (modeflags & ModeFlags(File::OpenMode::APPEND)) { in openfile()75 if (modeflags & ModeFlags(File::OpenMode::PLUS)) in openfile()79 } else if (modeflags & ModeFlags(File::OpenMode::WRITE)) { in openfile()81 if (modeflags & ModeFlags(File::OpenMode::PLUS)) in openfile()86 if (modeflags & ModeFlags(File::OpenMode::PLUS)) in openfile()125 using ModeFlags = File::ModeFlags; in create_file_from_fd() typedef126 ModeFlags modeflags = File::mode_flags(mode); in create_file_from_fd()139 !(modeflags & static_cast<ModeFlags>(OpenMode::READ))) || in create_file_from_fd()141 !(modeflags & static_cast<ModeFlags>(OpenMode::WRITE)))) { in create_file_from_fd()[all …]
18 File::ModeFlags(File::OpenMode::APPEND));
19 File::ModeFlags(File::OpenMode::APPEND));
19 File::ModeFlags(File::OpenMode::READ));
25 int buffer_mode, bool owned, File::ModeFlags modeflags) in LinuxFile()
54 using ModeFlags = uint32_t; variable61 enum class OpenMode : ModeFlags {70 enum class ContentType : ModeFlags {75 enum class CreateType : ModeFlags {108 ModeFlags mode;138 return mode & (static_cast<ModeFlags>(OpenMode::WRITE) | in write_allowed()139 static_cast<ModeFlags>(OpenMode::APPEND) | in write_allowed()140 static_cast<ModeFlags>(OpenMode::PLUS)); in write_allowed()144 return mode & (static_cast<ModeFlags>(OpenMode::READ) | in read_allowed()145 static_cast<ModeFlags>(OpenMode::PLUS)); in read_allowed()[all …]
432 File::ModeFlags File::mode_flags(const char *mode) { in mode_flags()442 ModeFlags flags = 0; in mode_flags()446 flags |= static_cast<ModeFlags>(OpenMode::READ); in mode_flags()450 flags |= static_cast<ModeFlags>(OpenMode::WRITE); in mode_flags()454 flags |= static_cast<ModeFlags>(OpenMode::PLUS); in mode_flags()457 flags |= static_cast<ModeFlags>(ContentType::BINARY); in mode_flags()460 flags |= static_cast<ModeFlags>(OpenMode::APPEND); in mode_flags()464 flags |= static_cast<ModeFlags>(CreateType::EXCLUSIVE); in mode_flags()