Lines Matching refs:flags
117 int cloexec_flags(int flags, const EnvOptions* options) { in cloexec_flags() argument
123 flags |= O_CLOEXEC; in cloexec_flags()
126 return flags; in cloexec_flags()
149 int flags = cloexec_flags(O_RDONLY, &options); in NewSequentialFile() local
158 flags |= O_DIRECT; in NewSequentialFile()
164 fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); in NewSequentialFile()
204 int flags = cloexec_flags(O_RDONLY, &options); in NewRandomAccessFile() local
212 flags |= O_DIRECT; in NewRandomAccessFile()
213 TEST_SYNC_POINT_CALLBACK("NewRandomAccessFile:O_DIRECT", &flags); in NewRandomAccessFile()
219 fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); in NewRandomAccessFile()
272 int flags = (reopen) ? (O_CREAT | O_APPEND) : (O_CREAT | O_TRUNC); in OpenWritableFile() local
286 flags |= O_WRONLY; in OpenWritableFile()
288 flags |= O_DIRECT; in OpenWritableFile()
290 TEST_SYNC_POINT_CALLBACK("NewWritableFile:O_DIRECT", &flags); in OpenWritableFile()
293 flags |= O_RDWR; in OpenWritableFile()
295 flags |= O_WRONLY; in OpenWritableFile()
298 flags = cloexec_flags(flags, &options); in OpenWritableFile()
302 fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); in OpenWritableFile()
378 int flags = 0; in ReuseWritableFile() local
385 flags |= O_WRONLY; in ReuseWritableFile()
387 flags |= O_DIRECT; in ReuseWritableFile()
389 TEST_SYNC_POINT_CALLBACK("NewWritableFile:O_DIRECT", &flags); in ReuseWritableFile()
392 flags |= O_RDWR; in ReuseWritableFile()
394 flags |= O_WRONLY; in ReuseWritableFile()
397 flags = cloexec_flags(flags, &options); in ReuseWritableFile()
401 fd = open(old_fname.c_str(), flags, in ReuseWritableFile()
466 int flags = cloexec_flags(O_RDWR, &options); in NewRandomRWFile() local
471 fd = open(fname.c_str(), flags, GetDBFileMode(allow_non_owner_access_)); in NewRandomRWFile()
491 int flags = cloexec_flags(O_RDWR, nullptr); in NewMemoryMappedFileBuffer() local
495 fd = open(fname.c_str(), flags, 0644); in NewMemoryMappedFileBuffer()
535 int flags = cloexec_flags(0, nullptr); in NewDirectory() local
538 fd = open(name.c_str(), flags); in NewDirectory()
784 int flags = cloexec_flags(O_RDWR | O_CREAT, nullptr); in LockFile() local
788 fd = open(fname.c_str(), flags, 0644); in LockFile()