Home
last modified time | relevance | path

Searched refs:modeflags (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/libc/src/__support/File/
H A Dlinux_file.cpp38 buffer, buffer_size, buffer_mode, owned, modeflags), in LinuxFile()
43 File::ModeFlags modeflags) { in init() argument
45 buffer, buffer_size, buffer_mode, owned, modeflags); in init()
117 auto modeflags = File::mode_flags(mode); in openfile() local
118 if (modeflags == 0) { in openfile()
123 if (modeflags & ModeFlags(File::OpenMode::APPEND)) { in openfile()
125 if (modeflags & ModeFlags(File::OpenMode::PLUS)) in openfile()
129 } else if (modeflags & ModeFlags(File::OpenMode::WRITE)) { in openfile()
131 if (modeflags & ModeFlags(File::OpenMode::PLUS)) in openfile()
136 if (modeflags & ModeFlags(File::OpenMode::PLUS)) in openfile()
[all …]
H A Dfile.h131 int buffer_mode, bool owned, ModeFlags modeflags) in File() argument
135 mode(modeflags), pos(0), prev_op(FileOp::NONE), read_limit(0), in File()
143 ModeFlags modeflags) { in init() argument
154 f->mode = modeflags; in init()
/llvm-project-15.0.7/libc/src/stdio/
H A Dfopencookie.cpp66 auto modeflags = File::mode_flags(mode); variable
76 modeflags);
/llvm-project-15.0.7/libc/test/src/__support/File/
H A Dfile_test.cpp35 ModeFlags modeflags) in StringFile() argument
38 modeflags), in StringFile()
40 if (modeflags & static_cast<ModeFlags>(__llvm_libc::File::OpenMode::APPEND)) in StringFile()
45 ModeFlags modeflags) { in init() argument
47 buffer, buflen, bufmode, owned, modeflags); in init()
49 if (modeflags & static_cast<ModeFlags>(__llvm_libc::File::OpenMode::APPEND)) in init()