Searched refs:O_CREAT (Results 26 - 50 of 105) sorted by relevance

12345

/linux-master/tools/hv/
H A Dhv_fcopy_daemon.c75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744);
/linux-master/tools/testing/selftests/openat2/
H A Dresolve_test.c284 /* O_CREAT should handle trailing symlinks correctly. */
285 { .name = "[in_root] O_CREAT of relative path inside $root",
286 .path = "newfile1", .how.flags = O_CREAT,
290 { .name = "[in_root] O_CREAT of absolute path",
291 .path = "/newfile2", .how.flags = O_CREAT,
295 { .name = "[in_root] O_CREAT of tricky symlink outside root",
296 .path = "/creatlink", .how.flags = O_CREAT,
455 if (!(test->how.flags & O_CREAT))
/linux-master/kernel/
H A Dusermode_driver.c29 file = file_open_root_mnt(mnt, name, O_CREAT | O_WRONLY, 0700);
/linux-master/tools/testing/selftests/kcmp/
H A Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644);
/linux-master/tools/testing/selftests/mm/
H A Dwrite_to_hugetlbfs.c167 fd = open(path, O_CREAT | O_RDWR, 0777);
H A Dsoft-dirty.c140 test_fd = open(fname, O_RDWR | O_CREAT, 0664);
H A Dsplit_huge_page_test.c226 fd = open(testfile, O_CREAT|O_WRONLY, 0664);
307 *fd = open(testfile, O_CREAT | O_RDWR, 0664);
H A Dgup_test.c206 filed = open(file, O_RDWR|O_CREAT, 0664);
/linux-master/tools/usb/usbip/src/
H A Dusbip_attach.c63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c63 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644);
/linux-master/tools/testing/selftests/kvm/
H A Dhardware_disable_test.c160 sem = sem_open("vm_sem", O_CREAT | O_EXCL, 0644, 0);
/linux-master/tools/testing/selftests/filesystems/overlayfs/
H A Ddev_in_maps.c132 fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644);
/linux-master/tools/testing/selftests/mqueue/
H A Dmq_open_tests.c202 int flags = O_RDWR | O_EXCL | O_CREAT;
224 int flags = O_RDWR | O_EXCL | O_CREAT;
/linux-master/fs/
H A Dopen.c971 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
1187 #define WILL_CREATE(flags) (flags & (O_CREAT | __O_TMPFILE))
1249 * Block bugs where O_DIRECTORY | O_CREAT created regular files.
1250 * Note, that blocking O_DIRECTORY | O_CREAT here also protects
1253 if ((flags & (O_DIRECTORY | O_CREAT)) == (O_DIRECTORY | O_CREAT))
1299 if (flags & O_CREAT) {
1324 if (flags & (O_TRUNC | O_CREAT | __O_TMPFILE))
1338 * @mode: mode for the new file if O_CREAT is set, else ignored
1359 * @mode: mode for the new file if O_CREAT i
[all...]
/linux-master/tools/perf/util/
H A Ddata.c60 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
306 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC,
/linux-master/tools/testing/selftests/exec/
H A Dexecveat.c157 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755);
406 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755);
/linux-master/tools/firmware/
H A Dihex2fw.c120 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
/linux-master/tools/bpf/
H A Dbpf_jit_disasm.c309 ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
/linux-master/arch/alpha/boot/tools/
H A Dobjstrip.c99 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666);
/linux-master/fs/coda/
H A Dcoda_linux.c60 if (flags & O_CREAT)
/linux-master/tools/power/x86/intel-speed-select/
H A Disst-daemon.c203 pid_file_handle = open(pidfile, O_RDWR | O_CREAT, 0600);
/linux-master/arch/um/os-Linux/
H A Dumid.c223 fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644);
/linux-master/init/
H A Dinitramfs.c370 int openflags = O_WRONLY|O_CREAT|O_LARGEFILE;
685 file = filp_open("/initrd.image", O_WRONLY|O_CREAT|O_LARGEFILE, 0700);
/linux-master/tools/perf/jvmti/
H A Djvmti_agent.c284 fd = open(dump_path, O_CREAT|O_TRUNC|O_RDWR, 0666);
/linux-master/scripts/dtc/
H A Dutil.c311 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);

Completed in 243 milliseconds

12345