Searched refs:O_CREAT (Results 51 - 75 of 105) sorted by relevance

12345

/linux-master/tools/accounting/
H A Dprocacct.c320 fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
H A Dgetdelays.c393 fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC,
/linux-master/fs/hostfs/
H A Dhostfs_user.c189 fd = open64(name, O_CREAT | O_RDWR, mode);
/linux-master/tools/spi/
H A Dspidev_test.c158 out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
/linux-master/tools/testing/selftests/capabilities/
H A Dtest_execve.c148 int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700);
/linux-master/io_uring/
H A Dopenclose.c42 * Don't bother trying for O_TRUNC, O_CREAT, or O_TMPFILE open,
47 return open->how.flags & (O_TRUNC | O_CREAT | __O_TMPFILE);
/linux-master/fs/vboxsf/
H A Dfile.c66 if (file->f_flags & O_CREAT) {
H A Ddir.c331 if (!(flags & O_CREAT) || d_really_is_positive(dentry))
/linux-master/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c632 fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777);
681 fd = open("/mnt/A/AA/B/b", O_RDWR | O_CLOEXEC | O_CREAT | O_EXCL, 0777);
1052 img_fd = openat(-EBADF, "/mnt/C/ext4.img", O_CREAT | O_WRONLY, 0600);
/linux-master/tools/perf/
H A Dbuiltin-daemon.c363 fd = open(SESSION_OUTPUT, O_RDWR|O_CREAT|O_TRUNC, 0644);
1150 fd = open(path, O_RDWR|O_CREAT|O_CLOEXEC, 0640);
1204 fd = open("output", O_RDWR|O_CREAT|O_TRUNC, 0644);
/linux-master/tools/power/acpi/os_specific/service_layers/
H A Dosunixxf.c644 sem_open(semaphore_name, O_EXCL | O_CREAT, 0755,
/linux-master/tools/testing/selftests/powerpc/
H A Dutils.c132 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
/linux-master/ipc/
H A Dmqueue.c876 if (!(oflag & O_CREAT))
886 if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
1567 if (u_attr && oflag & O_CREAT) {
/linux-master/fs/nfs/
H A Dnfs4file.c55 openflags &= ~(O_CREAT|O_EXCL);
/linux-master/tools/perf/util/
H A Ddata-convert-json.c361 fd = open(output_name, O_CREAT | O_WRONLY | (opts->force ? O_TRUNC : O_EXCL), 0666);
/linux-master/tools/hv/
H A Dhv_kvp_daemon.c261 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */);
/linux-master/drivers/target/
H A Dtarget_core_file.c124 flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
829 int ret, flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
/linux-master/tools/testing/selftests/memfd/
H A Dmemfd_test.c580 O_RDWR | O_CREAT | O_TRUNC,
598 O_RDWR | O_CREAT | O_TRUNC,
/linux-master/fs/ceph/
H A Dfile.c44 ceph_sys2wire(O_CREAT);
185 int op = (flags & O_CREAT) ? CEPH_MDS_OP_CREATE : CEPH_MDS_OP_OPEN;
187 if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC))
375 /* filter out O_CREAT|O_EXCL; vfs did that already. yuck. */
376 flags = file->f_flags & ~(O_CREAT|O_EXCL);
780 if (flags & O_CREAT) {
821 if (flags & O_CREAT) {
880 err = ceph_mdsc_do_request(mdsc, (flags & O_CREAT) ? dir : NULL, req);
890 if (!err && (flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
/linux-master/fs/
H A Dnamei.c76 * New symlink semantics: when open() is called with flags O_CREAT | O_EXCL
106 * [Jun 2000 AV] Inconsistent behaviour of open() in case if flags==O_CREAT
1210 * may_create_in_sticky - Check whether an O_CREAT open in a sticky directory
1217 * Block an O_CREAT open of a FIFO (or a regular file) when:
3390 * Must be called with parent locked (exclusive in O_CREAT case).
3397 * In the latter case dentry returned in @path might be negative if O_CREAT
3445 * going to actually need it: O_CREAT opens should work as long as the
3447 * to check access and if not granted clear O_CREAT from the flags.
3455 if (open_flag & O_CREAT) {
3466 open_flag &= ~O_CREAT;
[all...]
/linux-master/fs/9p/
H A Dvfs_inode_dotl.c123 { O_CREAT, P9_DOTL_CREATE },
207 if (!(flags & O_CREAT) || d_really_is_positive(dentry))
/linux-master/arch/um/os-Linux/
H A Dfile.c194 f |= O_CREAT;
/linux-master/tools/testing/selftests/mqueue/
H A Dmq_perf_tests.c294 int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK;
/linux-master/drivers/scsi/aic7xxx/aicasm/
H A Daicasm_symbol.c132 O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
/linux-master/fs/overlayfs/
H A Dfile.c162 file->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);

Completed in 270 milliseconds

12345