O_CREAT            99 arch/alpha/boot/tools/objstrip.c 	ofd = open(argv[i++], O_WRONLY | O_CREAT | O_TRUNC, 0666);
O_CREAT           179 arch/arm/vdso/vdsomunge.c 	outfd = open(outfile, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
O_CREAT           507 arch/mips/boot/elf2ecoff.c 	if ((outfile = open(argv[2], O_WRONLY | O_CREAT, 0777)) < 0) {
O_CREAT            87 arch/powerpc/boot/mktree.c 	if ((out_fd = open(argv[2], (O_RDWR | O_CREAT | O_TRUNC), 0666)) < 0) {
O_CREAT           191 arch/um/os-Linux/file.c 		f |= O_CREAT;
O_CREAT           230 arch/um/os-Linux/umid.c 	fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644);
O_CREAT           585 drivers/infiniband/core/uverbs_cmd.c 		if (!xrcd && !(cmd.oflags & O_CREAT)) {
O_CREAT           533 drivers/mtd/nand/raw/nandsim.c 		cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600);
O_CREAT           131 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c 			  O_CREAT | O_NONBLOCK | O_RDWR, /*mode*/0, DB_HASH,
O_CREAT           534 drivers/staging/greybus/tools/loopback_test.c 		fd = open(file_name, O_WRONLY | O_CREAT | O_APPEND, 0644);
O_CREAT           885 drivers/target/target_core_alua.c 	struct file *file = filp_open(path, O_RDWR | O_CREAT | O_TRUNC, 0600);
O_CREAT           105 drivers/target/target_core_file.c 	flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
O_CREAT           840 drivers/target/target_core_file.c 	int ret, flags = O_RDWR | O_CREAT | O_LARGEFILE | O_DSYNC;
O_CREAT          1968 drivers/target/target_core_pr.c 	int flags = O_RDWR | O_CREAT | O_TRUNC;
O_CREAT           860 fs/9p/vfs_inode.c 	if (!(flags & O_CREAT) || d_really_is_positive(dentry))
O_CREAT           171 fs/9p/vfs_inode_dotl.c 		{ O_CREAT,	P9_DOTL_CREATE },
O_CREAT           254 fs/9p/vfs_inode_dotl.c 	if (!(flags & O_CREAT) || d_really_is_positive(dentry))
O_CREAT            40 fs/ceph/file.c 	ceph_sys2wire(O_CREAT);
O_CREAT           187 fs/ceph/file.c 	int op = (flags & O_CREAT) ? CEPH_MDS_OP_CREATE : CEPH_MDS_OP_OPEN;
O_CREAT           189 fs/ceph/file.c 	if (flags & (O_WRONLY|O_RDWR|O_CREAT|O_TRUNC))
O_CREAT           360 fs/ceph/file.c 	flags = file->f_flags & ~(O_CREAT|O_EXCL);
O_CREAT           456 fs/ceph/file.c 	if (flags & O_CREAT) {
O_CREAT           478 fs/ceph/file.c 	if (flags & O_CREAT) {
O_CREAT           495 fs/ceph/file.c 				   (flags & (O_CREAT|O_TRUNC)) ? dir : NULL,
O_CREAT           501 fs/ceph/file.c 	if ((flags & O_CREAT) && !req->r_reply_info.head->is_dentry)
O_CREAT           328 fs/cifs/dir.c  	if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
O_CREAT           330 fs/cifs/dir.c  	else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
O_CREAT           332 fs/cifs/dir.c  	else if ((oflags & O_CREAT) == O_CREAT)
O_CREAT           490 fs/cifs/dir.c  	if (!(oflags & O_CREAT)) {
O_CREAT           539 fs/cifs/dir.c  	if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
O_CREAT           585 fs/cifs/dir.c  	unsigned oflags = O_EXCL | O_CREAT | O_RDWR;
O_CREAT            77 fs/cifs/file.c 	if (flags & O_CREAT) {
O_CREAT           102 fs/cifs/file.c 	if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
O_CREAT           104 fs/cifs/file.c 	else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
O_CREAT           106 fs/cifs/file.c 	else if ((flags & O_CREAT) == O_CREAT)
O_CREAT           735 fs/cifs/file.c 						~(O_CREAT | O_EXCL | O_TRUNC);
O_CREAT            60 fs/coda/coda_linux.c 	if (flags & O_CREAT)
O_CREAT           698 fs/coredump.c  		int open_flags = O_CREAT | O_RDWR | O_NOFOLLOW |
O_CREAT           495 fs/fuse/dir.c  		flags &= ~(O_CREAT | O_EXCL | O_TRUNC);
O_CREAT           541 fs/fuse/dir.c  	if (!(flags & O_CREAT) || d_really_is_positive(entry))
O_CREAT            41 fs/fuse/file.c 	inarg.flags = file->f_flags & ~(O_CREAT | O_EXCL | O_NOCTTY);
O_CREAT          1251 fs/gfs2/inode.c 		return excl && (flags & O_CREAT) ? -EEXIST : 0;
O_CREAT          1257 fs/gfs2/inode.c 	if (!(flags & O_CREAT))
O_CREAT           188 fs/hostfs/hostfs_user.c 	fd = open64(name, O_CREAT | O_RDWR, mode);
O_CREAT          3055 fs/namei.c     	if (!(~open_flag & (O_EXCL | O_CREAT)))	/* both O_EXCL and O_CREAT */
O_CREAT          3074 fs/namei.c     				WARN_ON(!(open_flag & O_CREAT));
O_CREAT          3168 fs/namei.c     	if (open_flag & O_CREAT) {
O_CREAT          3173 fs/namei.c     			open_flag &= ~O_CREAT;
O_CREAT          3180 fs/namei.c     				open_flag &= ~O_CREAT;
O_CREAT          3218 fs/namei.c     	if (!dentry->d_inode && (open_flag & O_CREAT)) {
O_CREAT          3273 fs/namei.c     	if (!(open_flag & O_CREAT)) {
O_CREAT          3303 fs/namei.c     	if (open_flag & (O_CREAT | O_TRUNC | O_WRONLY | O_RDWR)) {
O_CREAT          3313 fs/namei.c     	if (open_flag & O_CREAT)
O_CREAT          3318 fs/namei.c     	if (open_flag & O_CREAT)
O_CREAT          3368 fs/namei.c     	if (unlikely((open_flag & (O_EXCL | O_CREAT)) == (O_EXCL | O_CREAT))) {
O_CREAT          3385 fs/namei.c     	if (open_flag & O_CREAT) {
O_CREAT          1557 fs/nfs/dir.c   	if (open_flags & O_CREAT) {
O_CREAT          1571 fs/nfs/dir.c   	if (!(open_flags & O_CREAT) && !d_in_lookup(dentry)) {
O_CREAT          1760 fs/nfs/dir.c   	int open_flags = excl ? O_CREAT | O_EXCL : O_CREAT;
O_CREAT            55 fs/nfs/nfs4file.c 	openflags &= ~(O_CREAT|O_EXCL);
O_CREAT          1306 fs/nfs/nfs4proc.c 	if (flags & O_CREAT) {
O_CREAT          2614 fs/nfs/nfs4proc.c 				!(o_arg->open_flags & O_CREAT))
O_CREAT          2621 fs/nfs/nfs4proc.c 	if (o_arg->open_flags & O_CREAT) {
O_CREAT          3101 fs/nfs/nfs4proc.c 	if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) &&
O_CREAT           312 fs/nfs/nfs4trace.h 		{ O_CREAT, "O_CREAT" }, \
O_CREAT          1452 fs/nfs/nfs4xdr.c 	switch (arg->open_flags & O_CREAT) {
O_CREAT           333 fs/nfs/nfstrace.h TRACE_DEFINE_ENUM(O_CREAT);
O_CREAT           351 fs/nfs/nfstrace.h 		{ O_CREAT, "O_CREAT" }, \
O_CREAT           812 fs/open.c      	f->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
O_CREAT           966 fs/open.c      	if (flags & (O_CREAT | __O_TMPFILE))
O_CREAT          1012 fs/open.c      	if (flags & O_CREAT) {
O_CREAT          1152 fs/open.c      	return ksys_open(pathname, O_CREAT | O_WRONLY | O_TRUNC, mode);
O_CREAT           126 fs/overlayfs/file.c 	file->f_flags &= ~(O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC);
O_CREAT             9 include/linux/fcntl.h 	(O_RDONLY | O_WRONLY | O_RDWR | O_CREAT | O_EXCL | O_NOCTTY | O_TRUNC | \
O_CREAT            23 include/uapi/asm-generic/fcntl.h #ifndef O_CREAT
O_CREAT            94 include/uapi/asm-generic/fcntl.h #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)      
O_CREAT           332 init/initramfs.c 			int openflags = O_WRONLY|O_CREAT;
O_CREAT           629 init/initramfs.c 	fd = ksys_open("/initrd.image", O_WRONLY | O_CREAT, 0700);
O_CREAT           797 ipc/mqueue.c   		if (!(oflag & O_CREAT))
O_CREAT           807 ipc/mqueue.c   	if ((oflag & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL))
O_CREAT          1483 ipc/mqueue.c   	if (u_attr && oflag & O_CREAT) {
O_CREAT           299 scripts/dtc/util.c 		fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0666);
O_CREAT           147 scripts/kconfig/confdata.c 	fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
O_CREAT           157 scripts/kconfig/confdata.c 		fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
O_CREAT           330 scripts/recordmcount.c 	fd_map = open(tmp_file, O_WRONLY | O_TRUNC | O_CREAT, sb.st_mode);
O_CREAT           231 security/apparmor/include/file.h 	if (flags & O_CREAT)
O_CREAT           429 security/integrity/ima/ima_crypto.c 				O_TRUNC | O_CREAT | O_NOCTTY | O_EXCL);
O_CREAT           377 tools/accounting/getdelays.c 		fd = open(logfile, O_WRONLY | O_CREAT | O_TRUNC,
O_CREAT           306 tools/bpf/bpf_jit_disasm.c 	ofd = open(ofile, O_WRONLY | O_CREAT | O_TRUNC, DEFFILEMODE);
O_CREAT           525 tools/bpf/bpftool/prog.c 		fd = open(filepath, O_WRONLY | O_CREAT | O_TRUNC, 0600);
O_CREAT           120 tools/firmware/ihex2fw.c 		outfd = open(argv[optind+1], O_TRUNC|O_CREAT|O_WRONLY, 0644);
O_CREAT            75 tools/hv/hv_fcopy_daemon.c 			 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744);
O_CREAT           250 tools/hv/hv_kvp_daemon.c 		fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */);
O_CREAT            22 tools/include/uapi/asm-generic/fcntl.h #ifndef O_CREAT
O_CREAT            93 tools/include/uapi/asm-generic/fcntl.h #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
O_CREAT           243 tools/io_uring/io_uring-cp.c 	outfd = open(argv[2], O_WRONLY | O_CREAT | O_TRUNC, 0644);
O_CREAT           284 tools/perf/jvmti/jvmti_agent.c 	fd = open(dump_path, O_CREAT|O_TRUNC|O_RDWR, 0666);
O_CREAT            84 tools/perf/trace/beauty/open_flags.c 	if (!(flags & O_CREAT))
O_CREAT            57 tools/perf/util/data.c 		ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
O_CREAT           266 tools/perf/util/data.c 	fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC,
O_CREAT           542 tools/perf/util/genelf.c 	fd = open(options.output, O_CREAT|O_TRUNC|O_RDWR, 0666);
O_CREAT            90 tools/perf/util/jitdump.c 	fd = open(filename, O_CREAT|O_TRUNC|O_WRONLY, 0644);
O_CREAT           461 tools/perf/util/probe-file.c 	fd = open(cpath, O_CREAT | O_RDWR, 0644);
O_CREAT          1342 tools/perf/util/symbol-elf.c 		kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400);
O_CREAT           644 tools/power/acpi/os_specific/service_layers/osunixxf.c 		    sem_open(semaphore_name, O_EXCL | O_CREAT, 0755,
O_CREAT           149 tools/spi/spidev_test.c 		out_fd = open(output_file, O_WRONLY | O_CREAT | O_TRUNC, 0666);
O_CREAT           160 tools/testing/selftests/capabilities/test_execve.c 	int to = open(toname, O_CREAT | O_WRONLY | O_EXCL, 0700);
O_CREAT            26 tools/testing/selftests/efivarfs/create-read.c 	fd = open(path, O_RDWR | O_CREAT, 0600);
O_CREAT            89 tools/testing/selftests/efivarfs/open-unlink.c 	fd = open(path, O_WRONLY | O_CREAT, 0600);
O_CREAT           141 tools/testing/selftests/exec/execveat.c 	int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755);
O_CREAT           384 tools/testing/selftests/exec/execveat.c 	fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755);
O_CREAT            42 tools/testing/selftests/kcmp/kcmp_test.c 	fd1 = open(kpath, O_RDWR | O_CREAT | O_TRUNC, 0644);
O_CREAT           450 tools/testing/selftests/memfd/memfd_test.c 			      O_RDWR | O_CREAT | O_TRUNC,
O_CREAT           468 tools/testing/selftests/memfd/memfd_test.c 		      O_RDWR | O_CREAT | O_TRUNC,
O_CREAT           202 tools/testing/selftests/mqueue/mq_open_tests.c 	int flags = O_RDWR | O_EXCL | O_CREAT;
O_CREAT           224 tools/testing/selftests/mqueue/mq_open_tests.c 	int flags = O_RDWR | O_EXCL | O_CREAT;
O_CREAT           291 tools/testing/selftests/mqueue/mq_perf_tests.c 	int flags = O_RDWR | O_EXCL | O_CREAT | O_NONBLOCK;
O_CREAT            66 tools/testing/selftests/timers/mqueue-lat.c 	q = mq_open("/foo", O_CREAT | O_RDONLY, 0666, NULL);
O_CREAT            81 tools/testing/selftests/vm/gup_benchmark.c 	filed = open(file, O_RDWR|O_CREAT);
O_CREAT            70 tools/testing/selftests/vm/hugepage-mmap.c 	fd = open(FILE_NAME, O_CREAT | O_RDWR, 0755);
O_CREAT          1321 tools/testing/selftests/vm/userfaultfd.c 		huge_fd = open(argv[4], O_CREAT | O_RDWR, 0755);
O_CREAT            63 tools/usb/usbip/src/usbip_attach.c 	fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, S_IRWXU);
O_CREAT           149 tools/virtio/vringh_test.c 	fd = open("/tmp/vringh_test-file", O_RDWR|O_CREAT|O_TRUNC, 0600);