Home
last modified time | relevance | path

Searched refs:O_CREAT (Results 1 – 25 of 83) sorted by relevance

1234

/Linux-v5.4/include/uapi/asm-generic/
Dfcntl.h23 #ifndef O_CREAT
24 #define O_CREAT 00000100 /* not fcntl */ macro
94 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/Linux-v5.4/tools/include/uapi/asm-generic/
Dfcntl.h22 #ifndef O_CREAT
23 #define O_CREAT 00000100 /* not fcntl */ macro
93 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/Linux-v5.4/fs/cifs/
Ddir.c328 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_do_create()
330 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_do_create()
332 else if ((oflags & O_CREAT) == O_CREAT) in cifs_do_create()
490 if (!(oflags & O_CREAT)) { in cifs_atomic_open()
539 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_atomic_open()
586 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; in cifs_create()
/Linux-v5.4/arch/parisc/include/uapi/asm/
Dfcntl.h7 #define O_CREAT 000000400 /* not fcntl */ macro
/Linux-v5.4/tools/testing/selftests/efivarfs/
Dcreate-read.c26 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
Dopen-unlink.c89 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/Linux-v5.4/arch/alpha/include/uapi/asm/
Dfcntl.h5 #define O_CREAT 01000 /* not fcntl */ macro
/Linux-v5.4/arch/sparc/include/uapi/asm/
Dfcntl.h7 #define O_CREAT 0x0200 /* not fcntl */ macro
/Linux-v5.4/arch/mips/include/uapi/asm/
Dfcntl.h17 #define O_CREAT 0x0100 /* not fcntl */ macro
/Linux-v5.4/tools/testing/selftests/vm/
Dhugepage-mmap.c70 fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755); in main()
Dgup_benchmark.c81 filed = open(file, O_RDWR|O_CREAT); in main()
/Linux-v5.4/include/linux/
Dfcntl.h9 (O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
/Linux-v5.4/tools/testing/selftests/timers/
Dmqueue-lat.c66 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
/Linux-v5.4/tools/perf/trace/beauty/
Dopen_flags.c84 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
/Linux-v5.4/tools/testing/selftests/mqueue/
Dmq_open_tests.c202 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue()
224 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue_fail()
/Linux-v5.4/arch/powerpc/boot/
Dmktree.c87 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
/Linux-v5.4/tools/testing/selftests/kcmp/
Dkcmp_test.c42 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
/Linux-v5.4/tools/testing/selftests/exec/
Dexecveat.c141 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp()
384 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
/Linux-v5.4/tools/perf/util/
Ddata.c57 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR); in perf_data__create_dir()
266 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, in open_file_write()
/Linux-v5.4/tools/include/nolibc/
Dnolibc.h444 #define O_CREAT 0x40 macro
624 #define O_CREAT 0x40 macro
809 #define O_CREAT 0x40 macro
1006 #define O_CREAT 0x40 macro
1214 #define O_CREAT 0x0100 macro
1409 #define O_CREAT 0x100 macro
/Linux-v5.4/tools/usb/usbip/src/
Dusbip_attach.c63 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
/Linux-v5.4/tools/hv/
Dhv_fcopy_daemon.c75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
/Linux-v5.4/arch/arm/vdso/
Dvdsomunge.c179 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
/Linux-v5.4/fs/ceph/
Dfile.c40 ceph_sys2wire(O_CREAT); in ceph_flags_sys2wire()
187 int op = (flags & O_CREAT) ? CEPH_MDS_OP_CREATE : CEPH_MDS_OP_OPEN; in prepare_open_request()
189 if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC)) in prepare_open_request()
360 flags = file->f_flags & ~(O_CREAT|O_EXCL); in ceph_open()
456 if (flags & O_CREAT) { in ceph_atomic_open()
478 if (flags & O_CREAT) { in ceph_atomic_open()
495 (flags & (O_CREAT|O_TRUNC)) ? dir : NULL, in ceph_atomic_open()
501 if ((flags & O_CREAT) && !req->r_reply_info.head->is_dentry) in ceph_atomic_open()
/Linux-v5.4/fs/coda/
Dcoda_linux.c60 if (flags & O_CREAT) in coda_flags_to_cflags()

1234