Searched refs:O_CREAT (Results 1 - 25 of 105) sorted by last modified time

12345

/linux-master/tools/testing/selftests/mm/
H A Dsplit_huge_page_test.c226 fd = open(testfile, O_CREAT|O_WRONLY, 0664);
307 *fd = open(testfile, O_CREAT | O_RDWR, 0664);
H A Dsoft-dirty.c140 test_fd = open(fname, O_RDWR | O_CREAT, 0664);
H A Dgup_test.c206 filed = open(file, O_RDWR|O_CREAT, 0664);
/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))
H A Dvfs_inode.c605 * open(.., O_CREAT) is handled in v9fs_vfs_atomic_open(). This is only called
750 if (!(flags & O_CREAT) || d_really_is_positive(dentry))
/linux-master/fs/smb/server/
H A Dsmb2pdu.c2091 oflags |= O_CREAT;
2095 oflags &= ~O_CREAT;
2553 if (!(open_flags & O_CREAT))
3175 if (open_flags & (O_CREAT | O_TRUNC)) {
3259 } else if (open_flags & O_CREAT) {
/linux-master/fs/fuse/
H A Dfile.c33 inarg.flags = open_flags & ~(O_CREAT | O_EXCL | O_NOCTTY);
H A Ddir.c691 flags &= ~(O_CREAT | O_EXCL | O_TRUNC);
747 if (!(flags & O_CREAT) || d_really_is_positive(entry))
/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/crypto/ccp/
H A Dsev-dev.c310 fp = open_file_as_root(init_ex_path, O_CREAT | O_WRONLY, 0600);
/linux-master/init/
H A Dinitramfs.c370 int openflags = O_WRONLY|O_CREAT|O_LARGEFILE;
685 file = filp_open("/initrd.image", O_WRONLY|O_CREAT|O_LARGEFILE, 0700);
/linux-master/fs/smb/client/
H A Dfile.c239 if (flags & O_CREAT) {
244 cifs_dbg(FYI, "Application %s pid %d has incorrectly set O_EXCL flag but not O_CREAT on file open. Ignoring O_EXCL\n",
265 if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
267 else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
269 else if ((flags & O_CREAT) == O_CREAT)
367 * O_CREAT FILE_OPEN_IF
368 * O_CREAT | O_EXC
[all...]
H A Ddir.c288 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
290 else if ((oflags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC))
292 else if ((oflags & O_CREAT) == O_CREAT)
461 if (!(oflags & O_CREAT)) {
509 if ((oflags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL))
560 unsigned oflags = O_EXCL | O_CREAT | O_RDW
[all...]
/linux-master/fs/vboxsf/
H A Dfile.c66 if (file->f_flags & O_CREAT) {
/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/tools/testing/selftests/exec/
H A Dexecveat.c157 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755);
406 fd = open("subdir.ephemeral/script", O_RDWR|O_CREAT|O_TRUNC, 0755);
/linux-master/scripts/kconfig/
H A Dconfdata.c144 fd = open(depfile_path, O_WRONLY | O_CREAT | O_TRUNC, 0644);
/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/drivers/infiniband/core/
H A Duverbs_cmd.c594 if (!xrcd && !(cmd.oflags & O_CREAT)) {
/linux-master/fs/nfs/
H A Dnfs4proc.c1415 if (flags & O_CREAT) {
2707 !(o_arg->open_flags & O_CREAT))
2714 if (o_arg->open_flags & O_CREAT) {
3198 if ((opendata->o_arg.open_flags & (O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) &&
4710 * This is just for mknod. open(O_CREAT) will always do ->open_context().
/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/tools/perf/util/
H A Dsymbol-elf.c2031 kcore->fd = open(filename, O_WRONLY | O_CREAT | O_EXCL, 0400);
H A Ddata.c60 ret = open(file->path, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR);
306 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC,
H A Ddata-convert-json.c361 fd = open(output_name, O_CREAT | O_WRONLY | (opts->force ? O_TRUNC : O_EXCL), 0666);
/linux-master/tools/testing/selftests/filesystems/overlayfs/
H A Ddev_in_maps.c132 fd = openat(ovl, "test", O_RDWR | O_CREAT, 0644);

Completed in 609 milliseconds

12345