Home
last modified time | relevance | path

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

123

/external/libchrome/base/files/
Dfile_posix.cc448 int open_flags = 0; in DoInitialize() local
450 open_flags = O_CREAT | O_EXCL; in DoInitialize()
455 DCHECK(!open_flags); in DoInitialize()
457 open_flags = O_CREAT | O_TRUNC; in DoInitialize()
461 DCHECK(!open_flags); in DoInitialize()
463 open_flags = O_TRUNC; in DoInitialize()
466 if (!open_flags && !(flags & FLAG_OPEN) && !(flags & FLAG_OPEN_ALWAYS)) { in DoInitialize()
474 open_flags |= O_RDWR; in DoInitialize()
476 open_flags |= O_WRONLY; in DoInitialize()
485 open_flags |= O_NOCTTY | O_NDELAY; in DoInitialize()
[all …]
/external/syzkaller/sys/linux/
Dsys.txt63 open(file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd
65 open$dir(file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd_dir
66 openat$dir(fd const[AT_FDCWD], file ptr[in, filename], flags flags[open_flags], mode flags[open_mod…
67 openat(fd fd_dir[opt], file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd
377 open_by_handle_at(mountdirfd fd, handle ptr[in, file_handle], flags flags[open_flags])
508 #syz_open_dev$console(dev ptr[in, string["/dev/console"]], id const[0], flags flags[open_flags]) fd
513 syz_open_dev$floppy(dev ptr[in, string["/dev/fd#"]], id intptr, flags flags[open_flags]) fd
514 syz_open_dev$vcsn(dev ptr[in, string["/dev/vcs#"]], id intptr, flags flags[open_flags]) fd
515 syz_open_dev$vcsa(dev ptr[in, string["/dev/vcsa#"]], id intptr, flags flags[open_flags]) fd
516 syz_open_dev$usbmon(dev ptr[in, string["/dev/usbmon#"]], id intptr, flags flags[open_flags]) fd
[all …]
Drandom.txt8 openat$random(fd const[AT_FDCWD], file ptr[in, string["/dev/urandom"]], flags flags[open_flags], mo…
9 openat$urandom(fd const[AT_FDCWD], file ptr[in, string["/dev/urandom"]], flags flags[open_flags], m…
Dloop.txt8 syz_open_dev$loop(dev ptr[in, string["/dev/loop#"]], id intptr, flags flags[open_flags]) fd_loop
23 …onst[AT_FDCWD], file ptr[in, string["/dev/loop-control"]], flags flags[open_flags], mode const[0])…
Dinput.txt9 syz_open_dev$mouse(dev ptr[in, string["/dev/input/mouse#"]], id intptr, flags flags[open_flags]) fd
10 syz_open_dev$mice(dev ptr[in, string["/dev/input/mice"]], id const[0], flags flags[open_flags]) fd
12 syz_open_dev$evdev(dev ptr[in, string["/dev/input/event#"]], id intptr, flags flags[open_flags]) fd…
Dnbd.txt8 syz_open_dev$ndb(dev ptr[in, string["/dev/nbd#"]], id proc[0, 1], flags flags[open_flags]) fd_ndb
Dsr.txt8 openat$sr(fd const[AT_FDCWD], file ptr[in, string["/dev/sr0"]], flags flags[open_flags], mode const…
/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/syzkaller/sys/netbsd/
Dfs.txt16 open(file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd
18 open$dir(file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd_dir
19 openat(fd fd_dir[opt], file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd
66 open_flags = O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, O_CREAT, O_TRUNC, O_EXCL, O_SHLOCK, O_EXLOCK, O_…
/external/syzkaller/sys/freebsd/
Dposix_fs.txt16 open(file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd
18 open$dir(file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd_dir
19 openat(fd fd_dir[opt], file ptr[in, filename], flags flags[open_flags], mode flags[open_mode]) fd
69 open_flags = O_RDONLY, O_WRONLY, O_RDWR, O_APPEND, FASYNC, O_CLOEXEC, O_CREAT, O_DIRECT, O_DIRECTOR…
/external/strace/
Dbpf_attr_check.c412 …static_assert(SoM(struct BPF_PROG_GET_NEXT_ID_struct, open_flags) == SoM(union bpf_attr, open_flag…
414 …ssert(offsetof(struct BPF_PROG_GET_NEXT_ID_struct, open_flags) == offsetof(union bpf_attr, open_fl…
436 …tatic_assert(SoM(struct BPF_PROG_GET_FD_BY_ID_struct, open_flags) == SoM(union bpf_attr, open_flag…
438 …sert(offsetof(struct BPF_PROG_GET_FD_BY_ID_struct, open_flags) == offsetof(union bpf_attr, open_fl…
460 …static_assert(SoM(struct BPF_MAP_GET_FD_BY_ID_struct, open_flags) == SoM(union bpf_attr, open_flag…
462 …ssert(offsetof(struct BPF_MAP_GET_FD_BY_ID_struct, open_flags) == offsetof(union bpf_attr, open_fl…
Dbpf_attr.h185 uint32_t open_flags; member
198 uint32_t open_flags; member
208 uint32_t open_flags; member
Dbpf.c390 if (len <= offsetof(struct BPF_PROG_GET_NEXT_ID_struct, open_flags)) in BEGIN_BPF_CMD_DECODER()
392 PRINT_FIELD_FLAGS(", ", attr, open_flags, bpf_file_mode_flags, in BEGIN_BPF_CMD_DECODER()
405 if (len <= offsetof(struct BPF_PROG_GET_FD_BY_ID_struct, open_flags)) in BEGIN_BPF_CMD_DECODER()
407 PRINT_FIELD_FLAGS(", ", attr, open_flags, bpf_file_mode_flags, in BEGIN_BPF_CMD_DECODER()
418 if (len <= offsetof(struct BPF_MAP_GET_FD_BY_ID_struct, open_flags)) in BEGIN_BPF_CMD_DECODER()
420 PRINT_FIELD_FLAGS(", ", attr, open_flags, bpf_file_mode_flags, in BEGIN_BPF_CMD_DECODER()
/external/strace/tests-m32/
Dfile_handle.c189 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()
Dqual_fault.c107 static const int open_flags = O_WRONLY | O_TRUNC | O_CREAT; in open_file() local
112 int fd = open(path, open_flags, 0600); in open_file()
Dbpf.c810 .open_flags = 0xffffff27
812 .size = offsetofend(struct BPF_PROG_GET_NEXT_ID_struct, open_flags),
840 .open_flags = 0xffffff27
842 .size = offsetofend(struct BPF_PROG_GET_FD_BY_ID_struct, open_flags),
868 .open_flags = 0xffffff27
870 .size = offsetofend(struct BPF_MAP_GET_FD_BY_ID_struct, open_flags),
/external/strace/tests-mx32/
Dfile_handle.c189 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()
Dqual_fault.c107 static const int open_flags = O_WRONLY | O_TRUNC | O_CREAT; in open_file() local
112 int fd = open(path, open_flags, 0600); in open_file()
Dbpf.c810 .open_flags = 0xffffff27
812 .size = offsetofend(struct BPF_PROG_GET_NEXT_ID_struct, open_flags),
840 .open_flags = 0xffffff27
842 .size = offsetofend(struct BPF_PROG_GET_FD_BY_ID_struct, open_flags),
868 .open_flags = 0xffffff27
870 .size = offsetofend(struct BPF_MAP_GET_FD_BY_ID_struct, open_flags),
/external/strace/tests/
Dfile_handle.c189 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()
Dqual_fault.c107 static const int open_flags = O_WRONLY | O_TRUNC | O_CREAT; in open_file() local
112 int fd = open(path, open_flags, 0600); in open_file()
Dbpf.c810 .open_flags = 0xffffff27
812 .size = offsetofend(struct BPF_PROG_GET_NEXT_ID_struct, open_flags),
840 .open_flags = 0xffffff27
842 .size = offsetofend(struct BPF_PROG_GET_FD_BY_ID_struct, open_flags),
868 .open_flags = 0xffffff27
870 .size = offsetofend(struct BPF_MAP_GET_FD_BY_ID_struct, open_flags),
/external/e2fsprogs/debugfs/
Ddebugfs.c135 static void open_filesystem(char *device, int open_flags, blk64_t superblock, in open_filesystem() argument
150 if ((open_flags & EXT2_FLAG_IMAGE_FILE) == 0) { in open_filesystem()
165 open_flags |= EXT2_FLAG_SKIP_MMP | EXT2_FLAG_IGNORE_SB_ERRORS; in open_filesystem()
174 retval = ext2fs_open(device, open_flags, superblock, blocksize, in open_filesystem()
177 !(open_flags & EXT2_FLAG_IGNORE_CSUM_ERRORS)) { in open_filesystem()
178 open_flags |= EXT2_FLAG_IGNORE_CSUM_ERRORS; in open_filesystem()
228 int open_flags = EXT2_FLAG_SOFTSUPP_FEATURES | EXT2_FLAG_64BITS; in do_open_filesys() local
236 open_flags |= EXT2_FLAG_IMAGE_FILE; in do_open_filesys()
242 open_flags |= EXT2_FLAG_RW; in do_open_filesys()
246 open_flags |= EXT2_FLAG_FORCE; in do_open_filesys()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dinode_io.c119 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()
Dtdb.h147 int open_flags, mode_t mode);
149 int open_flags, mode_t mode,

123