/linux-4.1.27/include/uapi/asm-generic/ |
D | fcntl.h | 22 #ifndef O_CREAT 23 #define O_CREAT 00000100 /* not fcntl */ macro 93 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/linux-4.1.27/fs/cifs/ |
D | dir.c | 289 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()
|
D | file.c | 76 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.1.27/arch/parisc/include/uapi/asm/ |
D | fcntl.h | 6 #define O_CREAT 000000400 /* not fcntl */ macro
|
/linux-4.1.27/tools/testing/selftests/efivarfs/ |
D | create-read.c | 25 fd = open(path, O_RDWR | O_CREAT, 0600); in main()
|
D | open-unlink.c | 88 fd = open(path, O_WRONLY | O_CREAT, 0600); in main()
|
/linux-4.1.27/arch/alpha/include/uapi/asm/ |
D | fcntl.h | 4 #define O_CREAT 01000 /* not fcntl */ macro
|
/linux-4.1.27/arch/sparc/include/uapi/asm/ |
D | fcntl.h | 6 #define O_CREAT 0x0200 /* not fcntl */ macro
|
/linux-4.1.27/arch/mips/include/uapi/asm/ |
D | fcntl.h | 16 #define O_CREAT 0x0100 /* not fcntl */ macro
|
/linux-4.1.27/tools/testing/selftests/vm/ |
D | hugepage-mmap.c | 69 fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755); in main()
|
D | hugetlbfstest.c | 60 fd = open(path, O_CREAT | O_RDWR | O_TRUNC | O_EXCL in open_file()
|
/linux-4.1.27/fs/ceph/ |
D | file.c | 49 int op = (flags & O_CREAT) ? CEPH_MDS_OP_CREATE : CEPH_MDS_OP_OPEN; in prepare_open_request() 51 if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC)) in prepare_open_request() 148 flags = file->f_flags & ~(O_CREAT|O_EXCL); in ceph_open() 212 if (flags & O_CREAT) in ceph_open() 251 if (flags & O_CREAT) { in ceph_atomic_open() 265 if (flags & O_CREAT) { in ceph_atomic_open() 275 (flags & (O_CREAT|O_TRUNC)) ? dir : NULL, in ceph_atomic_open() 281 if (err == 0 && (flags & O_CREAT) && !req->r_reply_info.head->is_dentry) in ceph_atomic_open()
|
/linux-4.1.27/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 34 fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644); in main()
|
/linux-4.1.27/tools/testing/selftests/timers/ |
D | mqueue-lat.c | 77 q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL); in mqueue_lat_test()
|
/linux-4.1.27/arch/powerpc/boot/ |
D | mktree.c | 86 if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) { in main()
|
/linux-4.1.27/tools/testing/selftests/mqueue/ |
D | mq_open_tests.c | 198 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue() 220 int flags = O_RDWR | O_EXCL | O_CREAT; in test_queue_fail()
|
D | mq_perf_tests.c | 288 int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK; in open_queue()
|
/linux-4.1.27/tools/perf/util/ |
D | data.c | 98 fd = open(file->path, O_CREAT|O_RDWR|O_TRUNC, S_IRUSR|S_IWUSR); in open_file_write()
|
D | symbol-elf.c | 1261 kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400); in kcore__init()
|
/linux-4.1.27/tools/testing/selftests/exec/ |
D | execveat.c | 140 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.1.27/tools/hv/ |
D | hv_fcopy_daemon.c | 87 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
|
D | hv_kvp_daemon.c | 254 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); in kvp_file_init()
|
/linux-4.1.27/tools/usb/usbip/src/ |
D | usbip_attach.c | 71 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU); in record_connection()
|
/linux-4.1.27/ipc/ |
D | compat_mq.c | 54 if (u_attr && oflag & O_CREAT) { in COMPAT_SYSCALL_DEFINE4()
|
D | mqueue.c | 810 if (oflag & O_CREAT) { in SYSCALL_DEFINE4()
|
/linux-4.1.27/arch/arm/vdso/ |
D | vdsomunge.c | 192 outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in main()
|
/linux-4.1.27/fs/ |
D | namei.c | 2735 if ((open_flag & O_CREAT) && !IS_POSIXACL(dir)) in atomic_open() 2738 excl = (open_flag & (O_EXCL | O_CREAT)) == (O_EXCL | O_CREAT); in atomic_open() 2751 if (((open_flag & (O_CREAT | O_TRUNC)) || in atomic_open() 2753 if (!(open_flag & O_CREAT)) { in atomic_open() 2766 open_flag &= ~O_CREAT; in atomic_open() 2770 if (open_flag & O_CREAT) { in atomic_open() 2776 open_flag &= ~O_CREAT; in atomic_open() 2825 WARN_ON(!(open_flag & O_CREAT)); in atomic_open() 2905 if (!dentry->d_inode && (op->open_flag & O_CREAT)) { in lookup_open() 2967 if (!(open_flag & O_CREAT)) { in do_last() [all …]
|
D | open.c | 747 f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC); in do_dentry_open() 884 if (flags & (O_CREAT | __O_TMPFILE)) in build_open_flags() 933 if (flags & O_CREAT) { in build_open_flags() 1053 return sys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode); in SYSCALL_DEFINE2()
|
D | coredump.c | 629 int open_flags = O_CREAT | O_RDWR | O_NOFOLLOW | in do_coredump()
|
D | fcntl.c | 745 O_CREAT | O_EXCL | O_NOCTTY | in fcntl_init()
|
/linux-4.1.27/fs/nfs/ |
D | nfs4file.c | 48 openflags &= ~(O_CREAT|O_EXCL); in nfs4_file_open()
|
D | dir.c | 1473 if ((open_flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) in nfs_finish_open() 1523 if (open_flags & O_CREAT) { in nfs_atomic_open() 1695 int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT; in nfs_create()
|
D | nfstrace.h | 265 { O_CREAT, "O_CREAT" }, \
|
D | nfs4trace.h | 166 { O_CREAT, "O_CREAT" }, \
|
D | nfs4proc.c | 2092 !(o_arg->open_flags & O_CREAT)) in _nfs4_proc_open() 2099 if (o_arg->open_flags & O_CREAT) { in _nfs4_proc_open() 2422 if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) && in _nfs4_do_open()
|
D | nfs4xdr.c | 1413 switch (arg->open_flags & O_CREAT) { in encode_opentype()
|
/linux-4.1.27/fs/coda/ |
D | coda_linux.c | 59 if (flags & O_CREAT) in coda_flags_to_cflags()
|
/linux-4.1.27/security/apparmor/include/ |
D | file.h | 210 if (flags & O_CREAT) in aa_map_file_to_perms()
|
/linux-4.1.27/arch/alpha/boot/tools/ |
D | objstrip.c | 98 ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
|
/linux-4.1.27/firmware/ |
D | ihex2fw.c | 119 outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644); in main()
|
/linux-4.1.27/init/ |
D | initramfs.c | 338 int openflags = O_WRONLY|O_CREAT; in do_name() 629 O_WRONLY|O_CREAT, 0700); in populate_rootfs()
|
/linux-4.1.27/tools/testing/selftests/memfd/ |
D | memfd_test.c | 401 O_RDWR | O_CREAT | O_TRUNC, in mfd_assert_shrink() 419 O_RDWR | O_CREAT | O_TRUNC, in mfd_fail_shrink()
|
/linux-4.1.27/arch/um/os-Linux/ |
D | umid.c | 217 fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644); in create_pid_file()
|
D | file.c | 187 f |= O_CREAT; in os_open_file()
|
/linux-4.1.27/scripts/dtc/ |
D | util.c | 281 fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666); in utilfdt_write_err()
|
/linux-4.1.27/fs/hostfs/ |
D | hostfs_user.c | 188 fd = open64(name, O_CREAT | O_RDWR, mode); in file_create()
|
/linux-4.1.27/tools/power/acpi/os_specific/service_layers/ |
D | osunixxf.c | 655 sem_open(semaphore_name, O_EXCL | O_CREAT, 0755, in acpi_os_create_semaphore()
|
/linux-4.1.27/drivers/target/ |
D | target_core_file.c | 122 flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC; in fd_configure_device() 836 int ret, flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC; in fd_init_prot()
|
D | target_core_alua.c | 919 struct file *file = filp_open(path, O_RDWR | O_CREAT | O_TRUNC, 0600); in core_alua_write_tpg_metadata()
|
D | target_core_pr.c | 1923 int flags = O_RDWR | O_CREAT | O_TRUNC; in __core_scsi3_write_aptpl_to_file()
|
/linux-4.1.27/Documentation/filesystems/ |
D | dlmfs.txt | 96 open(2) with O_CREAT to ensure the resource inode is created - dlmfs does
|
/linux-4.1.27/Documentation/accounting/ |
D | getdelays.c | 370 fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC, in main()
|
/linux-4.1.27/scripts/kconfig/ |
D | confdata.c | 918 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config() 938 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644); in conf_split_config()
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/ |
D | tracefile.c | 686 filp = filp_open(filename, O_CREAT|O_EXCL|O_WRONLY|O_LARGEFILE, 0600); in cfs_tracefile_dump_all_pages() 1000 O_CREAT | O_RDWR | O_LARGEFILE, in tracefiled()
|
/linux-4.1.27/fs/9p/ |
D | vfs_inode_dotl.c | 183 { 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()
|
D | vfs_inode.c | 866 if (!(flags & O_CREAT) || d_really_is_positive(dentry)) in v9fs_vfs_atomic_open()
|
/linux-4.1.27/drivers/scsi/aic7xxx/aicasm/ |
D | aicasm_symbol.c | 135 O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH, in symtable_open()
|
/linux-4.1.27/arch/mips/boot/ |
D | elf2ecoff.c | 505 if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) { in main()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/ |
D | mdc_lib.c | 185 if (flags & O_CREAT) in mds_pack_open_flags()
|
/linux-4.1.27/tools/virtio/ |
D | vringh_test.c | 148 fd = open("/tmp/vringh_test-file", O_RDWR|O_CREAT|O_TRUNC, 0600); in parallel_test()
|
/linux-4.1.27/fs/fuse/ |
D | dir.c | 445 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()
|
D | file.c | 30 inarg.flags = file->f_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); in fuse_send_open()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
D | namei.c | 614 if (open_flags & O_CREAT) { in ll_atomic_open()
|
D | file.c | 593 if (oit.it_flags & O_CREAT) in ll_file_open()
|
/linux-4.1.27/fs/gfs2/ |
D | inode.c | 1254 if (!(flags & O_CREAT)) in gfs2_atomic_open()
|
/linux-4.1.27/Documentation/filesystems/cifs/ |
D | CHANGES | 702 Fix truncate of existing files opened with O_CREAT but not O_TRUNC set. 707 O_CREAT but not O_EXCL
|
/linux-4.1.27/drivers/mtd/nand/ |
D | nandsim.c | 578 cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600); in alloc_device()
|
/linux-4.1.27/tools/perf/ |
D | builtin-trace.c | 735 if (!(flags & O_CREAT)) in syscall_arg__scnprintf_open_flags()
|
/linux-4.1.27/drivers/infiniband/core/ |
D | uverbs_cmd.c | 758 if (!xrcd && !(cmd.oflags & O_CREAT)) { in ib_uverbs_open_xrcd()
|
/linux-4.1.27/Documentation/cdrom/ |
D | cdrom-standard.tex | 665 \cdrom\ devices: $O_CREAT$, $O_NOCTTY$, $O_TRUNC$, $O_APPEND$, and
|