Home
last modified time | relevance | path

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

/linux-4.4.14/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-4.4.14/fs/cifs/
Ddir.c289 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_do_create()
291 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_do_create()
293 else if ((oflags & O_CREAT) == O_CREAT) in cifs_do_create()
441 if (!(oflags & O_CREAT)) { in cifs_atomic_open()
489 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_atomic_open()
536 unsigned oflags = O_EXCL | O_CREAT | O_RDWR; in cifs_create()
Dfile.c76 if (flags & O_CREAT) { in cifs_posix_convert_flags()
101 if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in cifs_get_disposition()
103 else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) in cifs_get_disposition()
105 else if ((flags & O_CREAT) == O_CREAT) in cifs_get_disposition()
657 ~(O_CREAT | O_EXCL | O_TRUNC); in cifs_reopen_file()
/linux-4.4.14/tools/testing/selftests/efivarfs/
Dcreate-read.c25 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
Dopen-unlink.c88 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
/linux-4.4.14/arch/parisc/include/uapi/asm/
Dfcntl.h6 #define O_CREAT 000000400 /* not fcntl */ macro
/linux-4.4.14/arch/alpha/include/uapi/asm/
Dfcntl.h4 #define O_CREAT 01000 /* not fcntl */ macro
/linux-4.4.14/arch/sparc/include/uapi/asm/
Dfcntl.h6 #define O_CREAT 0x0200 /* not fcntl */ macro
/linux-4.4.14/arch/mips/include/uapi/asm/
Dfcntl.h16 #define O_CREAT 0x0100 /* not fcntl */ macro
/linux-4.4.14/tools/testing/selftests/vm/
Dhugepage-mmap.c69 fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755); in main()
/linux-4.4.14/tools/testing/selftests/kcmp/
Dkcmp_test.c34 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
/linux-4.4.14/tools/testing/selftests/timers/
Dmqueue-lat.c77 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
/linux-4.4.14/fs/ceph/
Dfile.c117 int op = (flags & O_CREAT) ? CEPH_MDS_OP_CREATE : CEPH_MDS_OP_OPEN; in prepare_open_request()
119 if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC)) in prepare_open_request()
216 flags = file->f_flags & ~(O_CREAT|O_EXCL); in ceph_open()
316 if (flags & O_CREAT) { in ceph_atomic_open()
330 if (flags & O_CREAT) { in ceph_atomic_open()
340 (flags & (O_CREAT|O_TRUNC)) ? dir : NULL, in ceph_atomic_open()
346 if ((flags & O_CREAT) && !req->r_reply_info.head->is_dentry) in ceph_atomic_open()
/linux-4.4.14/arch/powerpc/boot/
Dmktree.c86 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
/linux-4.4.14/tools/testing/selftests/mqueue/
Dmq_open_tests.c199 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue()
221 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue_fail()
Dmq_perf_tests.c289 int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK; in open_queue()
/linux-4.4.14/tools/perf/util/
Ddata.c98 fd = open(file->path, O_CREAT|O_RDWR|O_TRUNC, S_IRUSR|S_IWUSR); in open_file_write()
Dsymbol-elf.c1279 kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400); in kcore__init()
/linux-4.4.14/tools/testing/selftests/exec/
Dexecveat.c140 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp()
372 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755); in prerequisites()
/linux-4.4.14/tools/usb/usbip/src/
Dusbip_attach.c71 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
/linux-4.4.14/tools/hv/
Dhv_fcopy_daemon.c87 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
Dhv_kvp_daemon.c252 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); in kvp_file_init()
/linux-4.4.14/arch/arm/vdso/
Dvdsomunge.c192 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
/linux-4.4.14/ipc/
Dcompat_mq.c54 if (u_attr && oflag & O_CREAT) { in COMPAT_SYSCALL_DEFINE4()
Dmqueue.c806 if (oflag & O_CREAT) { in SYSCALL_DEFINE4()
/linux-4.4.14/fs/
Dnamei.c2802 if ((open_flag & O_CREAT) && !IS_POSIXACL(dir)) in atomic_open()
2805 excl = (open_flag & (O_EXCL | O_CREAT)) == (O_EXCL | O_CREAT); in atomic_open()
2818 if (((open_flag & (O_CREAT | O_TRUNC)) || in atomic_open()
2820 if (!(open_flag & O_CREAT)) { in atomic_open()
2833 open_flag &= ~O_CREAT; in atomic_open()
2837 if (open_flag & O_CREAT) { in atomic_open()
2843 open_flag &= ~O_CREAT; in atomic_open()
2892 WARN_ON(!(open_flag & O_CREAT)); in atomic_open()
2972 if (!dentry->d_inode && (op->open_flag & O_CREAT)) { in lookup_open()
3035 if (!(open_flag & O_CREAT)) { in do_last()
[all …]
Dopen.c749 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open()
888 if (flags & (O_CREAT | __O_TMPFILE)) in build_open_flags()
937 if (flags & O_CREAT) { in build_open_flags()
1057 return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); in SYSCALL_DEFINE2()
Dcoredump.c633 int open_flags = O_CREAT | O_RDWR | O_NOFOLLOW | in do_coredump()
Dfcntl.c745 O_CREAT | O_EXCL | O_NOCTTY | in fcntl_init()
/linux-4.4.14/fs/coda/
Dcoda_linux.c59 if (flags & O_CREAT) in coda_flags_to_cflags()
/linux-4.4.14/security/apparmor/include/
Dfile.h210 if (flags & O_CREAT) in aa_map_file_to_perms()
/linux-4.4.14/firmware/
Dihex2fw.c119 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644); in main()
/linux-4.4.14/arch/alpha/boot/tools/
Dobjstrip.c98 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
/linux-4.4.14/tools/testing/selftests/memfd/
Dmemfd_test.c402 O_RDWR | O_CREAT | O_TRUNC, in mfd_assert_shrink()
420 O_RDWR | O_CREAT | O_TRUNC, in mfd_fail_shrink()
/linux-4.4.14/init/
Dinitramfs.c338 int openflags = O_WRONLY|O_CREAT; in do_name()
629 O_WRONLY|O_CREAT, 0700); in populate_rootfs()
/linux-4.4.14/arch/um/os-Linux/
Dumid.c217 fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644); in create_pid_file()
Dfile.c188 f |= O_CREAT; in os_open_file()
/linux-4.4.14/tools/testing/selftests/capabilities/
Dtest_execve.c152 int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700); in copy_fromat_to()
/linux-4.4.14/scripts/dtc/
Dutil.c277 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); in utilfdt_write_err()
/linux-4.4.14/drivers/target/
Dtarget_core_file.c117 flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC; in fd_configure_device()
724 int ret, flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC; in fd_init_prot()
Dtarget_core_alua.c893 struct file *file = filp_open(path, O_RDWR | O_CREAT | O_TRUNC, 0600); in core_alua_write_tpg_metadata()
Dtarget_core_pr.c1982 int flags = O_RDWR | O_CREAT | O_TRUNC; in __core_scsi3_write_aptpl_to_file()
/linux-4.4.14/fs/nfs/
Dnfs4file.c55 openflags &= ~(O_CREAT|O_EXCL); in nfs4_file_open()
Ddir.c1512 if (open_flags & O_CREAT) { in nfs_atomic_open()
1684 int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT; in nfs_create()
Dnfstrace.h265 { O_CREAT, "O_CREAT" }, \
Dnfs4trace.h166 { O_CREAT, "O_CREAT" }, \
Dnfs4proc.c2212 !(o_arg->open_flags & O_CREAT)) in _nfs4_proc_open()
2219 if (o_arg->open_flags & O_CREAT) { in _nfs4_proc_open()
2552 if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) && in _nfs4_do_open()
Dnfs4xdr.c1428 switch (arg->open_flags & O_CREAT) { in encode_opentype()
/linux-4.4.14/fs/hostfs/
Dhostfs_user.c188 fd = open64(name, O_CREAT | O_RDWR, mode); in file_create()
/linux-4.4.14/tools/power/acpi/os_specific/service_layers/
Dosunixxf.c655 sem_open(semaphore_name, O_EXCL | O_CREAT, 0755, in acpi_os_create_semaphore()
/linux-4.4.14/scripts/
Drecordmcount.c279 fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode); in write_file()
/linux-4.4.14/Documentation/accounting/
Dgetdelays.c370 fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, in main()
/linux-4.4.14/Documentation/filesystems/
Ddlmfs.txt96 open(2) with O_CREAT to ensure the resource inode is created - dlmfs does
/linux-4.4.14/fs/9p/
Dvfs_inode_dotl.c183 { O_CREAT, P9_DOTL_CREATE }, in v9fs_mapped_dotl_flags()
267 if (!(flags & O_CREAT) || d_really_is_positive(dentry)) in v9fs_vfs_atomic_open_dotl()
Dvfs_inode.c866 if (!(flags & O_CREAT) || d_really_is_positive(dentry)) in v9fs_vfs_atomic_open()
/linux-4.4.14/scripts/kconfig/
Dconfdata.c917 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config()
937 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config()
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/
Dtracefile.c686 filp = filp_open(filename, O_CREAT|O_EXCL|O_WRONLY|O_LARGEFILE, 0600); in cfs_tracefile_dump_all_pages()
988 O_CREAT | O_RDWR | O_LARGEFILE, in tracefiled()
/linux-4.4.14/drivers/scsi/aic7xxx/aicasm/
Daicasm_symbol.c135 O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH, in symtable_open()
/linux-4.4.14/arch/mips/boot/
Delf2ecoff.c505 if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) { in main()
/linux-4.4.14/drivers/staging/lustre/lustre/mdc/
Dmdc_lib.c156 if (flags & O_CREAT) in mds_pack_open_flags()
/linux-4.4.14/tools/virtio/
Dvringh_test.c148 fd = open("/tmp/vringh_test-file", O_RDWR|O_CREAT|O_TRUNC, 0600); in parallel_test()
/linux-4.4.14/fs/fuse/
Ddir.c445 flags &= ~(O_CREAT | O_EXCL | O_TRUNC); in fuse_create_open()
490 if (!(flags & O_CREAT) || d_really_is_positive(entry)) in fuse_atomic_open()
Dfile.c30 inarg.flags = file->f_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); in fuse_send_open()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dnamei.c617 if (open_flags & O_CREAT) { in ll_atomic_open()
Dfile.c591 if (oit.it_flags & O_CREAT) in ll_file_open()
/linux-4.4.14/fs/gfs2/
Dinode.c1254 if (!(flags & O_CREAT)) in gfs2_atomic_open()
/linux-4.4.14/Documentation/filesystems/cifs/
DCHANGES702 Fix truncate of existing files opened with O_CREAT but not O_TRUNC set.
707 O_CREAT but not O_EXCL
/linux-4.4.14/drivers/mtd/nand/
Dnandsim.c578 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in alloc_device()
/linux-4.4.14/tools/perf/
Dbuiltin-trace.c795 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
/linux-4.4.14/drivers/infiniband/core/
Duverbs_cmd.c767 if (!xrcd && !(cmd.oflags & O_CREAT)) { in ib_uverbs_open_xrcd()
/linux-4.4.14/Documentation/cdrom/
Dcdrom-standard.tex665 \cdrom\ devices: $O_CREAT$, $O_NOCTTY$, $O_TRUNC$, $O_APPEND$, and