/external/libchrome/base/files/ |
D | file_posix.cc | 434 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/ |
D | file_stream.cc | 213 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/ |
D | libhdfs.c | 64 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/strace/tests/ |
D | file_handle.c | 189 static const struct strval open_flags[] = { in main() local 337 for (k = 0; k < ARRAY_SIZE(open_flags); k++) { in main() 342 open_flags[k].val, in main() 343 open_flags[k].str); in main()
|
/external/strace/tests-m32/ |
D | file_handle.c | 189 static const struct strval open_flags[] = { in main() local 337 for (k = 0; k < ARRAY_SIZE(open_flags); k++) { in main() 342 open_flags[k].val, in main() 343 open_flags[k].str); in main()
|
/external/strace/tests-mx32/ |
D | file_handle.c | 189 static const struct strval open_flags[] = { in main() local 337 for (k = 0; k < ARRAY_SIZE(open_flags); k++) { in main() 342 open_flags[k].val, in main() 343 open_flags[k].str); in main()
|
/external/e2fsprogs/debugfs/ |
D | debugfs.c | 130 static void open_filesystem(char *device, int open_flags, blk64_t superblock, in open_filesystem() argument 145 if ((open_flags & EXT2_FLAG_IMAGE_FILE) == 0) { in open_filesystem() 159 if (catastrophic && (open_flags & EXT2_FLAG_RW)) { in open_filesystem() 162 open_flags &= ~EXT2_FLAG_RW; in open_filesystem() 165 open_flags |= EXT2_FLAG_SKIP_MMP; in open_filesystem() 173 retval = ext2fs_open(device, open_flags, superblock, blocksize, in open_filesystem() 223 int open_flags = EXT2_FLAG_SOFTSUPP_FEATURES | EXT2_FLAG_64BITS; in do_open_filesys() local 231 open_flags |= EXT2_FLAG_IMAGE_FILE; in do_open_filesys() 237 open_flags |= EXT2_FLAG_RW; in do_open_filesys() 241 open_flags |= EXT2_FLAG_FORCE; in do_open_filesys() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | inode_io.c | 119 int open_flags; in inode_open() local 153 open_flags = (flags & IO_FLAG_RW) ? EXT2_FILE_WRITE : 0; in inode_open() 156 &data->inode : 0, open_flags, in inode_open()
|
D | tdb.h | 147 int open_flags, mode_t mode); 149 int open_flags, mode_t mode,
|
D | unix_io.c | 666 int open_flags; in unix_open() local 671 open_flags = (flags & IO_FLAG_RW) ? O_RDWR : O_RDONLY; in unix_open() 673 open_flags |= O_EXCL; in unix_open() 676 open_flags |= O_DIRECT; in unix_open() 678 fd = ext2fs_open_file(name, open_flags, 0); in unix_open()
|
D | tdb.c | 244 int open_flags; /* flags used in the open - needed by reopen */ member 3801 int open_flags, mode_t mode) in tdb_open() argument 3803 return tdb_open_ex(name, hash_size, tdb_flags, open_flags, mode, NULL, NULL); in tdb_open() 3814 int open_flags, mode_t mode, in tdb_open_ex() argument 3834 tdb->open_flags = open_flags; in tdb_open_ex() 3849 if ((open_flags & O_ACCMODE) == O_WRONLY) { in tdb_open_ex() 3858 if ((open_flags & O_ACCMODE) == O_RDONLY) { in tdb_open_ex() 3876 if ((tdb->fd = open(name, open_flags, mode)) == -1) { in tdb_open_ex() 3892 open_flags |= O_CREAT; in tdb_open_ex() 3906 if (!(open_flags & O_CREAT) || tdb_new_database(tdb, hash_size) == -1) { in tdb_open_ex() [all …]
|
/external/ltp/testcases/kernel/fs/doio/ |
D | growfiles.c | 164 int open_flags = O_RDWR | O_CREAT | O_LARGEFILE; /* open flags */ variable 167 int open_flags = O_RDWR | O_CREAT; /* open flags */ variable 650 open_flags = RANDOM_OPEN; in main() 653 } else if ((open_flags = parse_open_flags(optarg, NULL)) in main() 1064 if (open_flags == RANDOM_OPEN) in main() 1071 Progname, Pid, open_flags, io_type); in main() 1407 if (open_flags == RANDOM_OPEN) { in main() 1416 ret = open_flags; in main()
|
/external/e2fsprogs/misc/ |
D | fuse2fs.c | 303 int open_flags; member 2083 file->open_flags = 0; in __op_open() 2090 file->open_flags |= EXT2_FILE_WRITE; in __op_open() 2094 file->open_flags |= EXT2_FILE_WRITE; in __op_open() 2098 detect_linux_executable_open(fp->flags, &check, &file->open_flags); in __op_open() 2101 file->open_flags |= EXT2_FILE_CREATE; in __op_open() 2169 err = ext2fs_file_open(fs, fh->ino, fh->open_flags, &efp); in op_read() 2236 err = ext2fs_file_open(fs, fh->ino, fh->open_flags, &efp); in op_write() 2295 if (fs_writeable(fs) && fh->open_flags & EXT2_FILE_WRITE) { in op_release() 2326 if (fs_writeable(fs) && fh->open_flags & EXT2_FILE_WRITE) { in op_fsync() [all …]
|
/external/kernel-headers/original/uapi/linux/ |
D | fuse.h | 499 uint32_t open_flags; member
|
/external/ltp/ |
D | gen.bp | 16251 "lib/open_flags.c",
|