Home
last modified time | relevance | path

Searched refs:open_flags (Results 1 – 9 of 9) sorted by relevance

/external/libchrome/base/files/
Dfile_posix.cc434 int open_flags = 0; in DoInitialize() local
436 open_flags = O_CREAT | O_EXCL; in DoInitialize()
441 DCHECK(!open_flags); in DoInitialize()
443 open_flags = O_CREAT | O_TRUNC; in DoInitialize()
447 DCHECK(!open_flags); in DoInitialize()
449 open_flags = O_TRUNC; in DoInitialize()
452 if (!open_flags && !(flags & FLAG_OPEN) && !(flags & FLAG_OPEN_ALWAYS)) { in DoInitialize()
460 open_flags |= O_RDWR; in DoInitialize()
462 open_flags |= O_WRONLY; in DoInitialize()
471 open_flags |= O_NOCTTY | O_NDELAY; in DoInitialize()
[all …]
/external/libbrillo/brillo/streams/
Dfile_stream.cc213 int open_flags = O_CLOEXEC; in Open() local
216 open_flags |= O_RDONLY; in Open()
219 open_flags |= O_WRONLY; in Open()
222 open_flags |= O_RDWR; in Open()
231 open_flags |= O_CREAT | O_TRUNC; in Open()
234 open_flags |= O_CREAT | O_EXCL; in Open()
237 open_flags |= O_TRUNC; in Open()
242 int fd = HANDLE_EINTR(open(path.value().c_str(), open_flags, creation_mode)); in Open()
272 int open_flags = O_CLOEXEC | O_RDWR | O_CREAT | O_TRUNC; in CreateTemporary() local
274 int fd = HANDLE_EINTR(open(path.value().c_str(), open_flags, creation_mode)); in CreateTemporary()
/external/fio/engines/
Dlibhdfs.c64 int open_flags = 0; in fio_hdfsio_prep() local
86 open_flags = O_RDONLY; in fio_hdfsio_prep()
88 open_flags = O_WRONLY; in fio_hdfsio_prep()
100 hdfsOpenFile(hd->fs, fname, open_flags, 0, 0, in fio_hdfsio_prep()
/external/e2fsprogs/debugfs/
Ddebugfs.c60 static void open_filesystem(char *device, int open_flags, blk64_t superblock, in open_filesystem() argument
74 if ((open_flags & EXT2_FLAG_IMAGE_FILE) == 0) { in open_filesystem()
88 if (catastrophic && (open_flags & EXT2_FLAG_RW)) { in open_filesystem()
91 open_flags &= ~EXT2_FLAG_RW; in open_filesystem()
94 open_flags |= EXT2_FLAG_SKIP_MMP; in open_filesystem()
96 retval = ext2fs_open(device, open_flags, superblock, blocksize, in open_filesystem()
145 int open_flags = EXT2_FLAG_SOFTSUPP_FEATURES | EXT2_FLAG_64BITS; in do_open_filesys() local
152 open_flags |= EXT2_FLAG_IMAGE_FILE; in do_open_filesys()
158 open_flags |= EXT2_FLAG_RW; in do_open_filesys()
162 open_flags |= EXT2_FLAG_FORCE; in do_open_filesys()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dinode_io.c120 int open_flags; in inode_open() local
154 open_flags = (flags & IO_FLAG_RW) ? EXT2_FILE_WRITE : 0; in inode_open()
157 &data->inode : 0, open_flags, in inode_open()
Dtdb.h146 int open_flags, mode_t mode);
148 int open_flags, mode_t mode,
Dunix_io.c474 int open_flags; in unix_open() local
509 open_flags = (flags & IO_FLAG_RW) ? O_RDWR : O_RDONLY; in unix_open()
511 open_flags |= O_EXCL; in unix_open()
514 open_flags |= O_DIRECT; in unix_open()
525 data->dev = ext2fs_open_file(io->name, open_flags, 0); in unix_open()
Dtdb.c241 int open_flags; /* flags used in the open - needed by reopen */ member
3794 int open_flags, mode_t mode) in tdb_open() argument
3796 return tdb_open_ex(name, hash_size, tdb_flags, open_flags, mode, NULL, NULL); in tdb_open()
3807 int open_flags, mode_t mode, in tdb_open_ex() argument
3827 tdb->open_flags = open_flags; in tdb_open_ex()
3842 if ((open_flags & O_ACCMODE) == O_WRONLY) { in tdb_open_ex()
3851 if ((open_flags & O_ACCMODE) == O_RDONLY) { in tdb_open_ex()
3869 if ((tdb->fd = open(name, open_flags, mode)) == -1) { in tdb_open_ex()
3885 open_flags |= O_CREAT; in tdb_open_ex()
3899 if (!(open_flags & O_CREAT) || tdb_new_database(tdb, hash_size) == -1) { in tdb_open_ex()
[all …]
/external/kernel-headers/original/uapi/linux/
Dfuse.h482 uint32_t open_flags; member