Searched refs:O_CLOEXEC (Results 26 - 50 of 154) sorted by relevance

1234567

/linux-master/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c148 #define OPEN_TREE_CLOEXEC O_CLOEXEC
176 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOCTTY | O_NOFOLLOW);
425 fd = creat(NOSYMFOLLOW_TARGET, O_RDWR | O_CLOEXEC);
632 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);
711 dfd = open("/mnt/A/AA/B", O_DIRECTORY | O_CLOEXEC);
987 fd = open("/mnt/A", O_DIRECTORY | O_CLOEXEC);
1115 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
1144 attr.userns_fd = open("/proc/1/ns/user", O_RDONLY | O_CLOEXEC);
1226 ret = open(path, O_RDONLY | O_CLOEXEC);
[all...]
/linux-master/include/uapi/linux/
H A Dmount.h65 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
/linux-master/tools/testing/selftests/mm/
H A Duffd-common.h40 #define UFFD_FLAGS (O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY)
H A Dhugepage-mremap.c69 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
/linux-master/drivers/gpu/drm/i915/gem/selftests/
H A Dmock_dmabuf.c120 exp_info.flags = O_CLOEXEC;
/linux-master/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h65 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
/linux-master/tools/testing/selftests/filesystems/
H A Ddevpts_pts.c105 master = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC);
123 slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC);
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c55 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
63 pidfd = open("/dev/null", O_RDONLY | O_CLOEXEC);
/linux-master/include/linux/
H A Duserfaultfd_k.h33 #define UFFD_CLOEXEC O_CLOEXEC
36 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
/linux-master/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c137 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
158 ret = pipe2((int *) &pipes, O_CLOEXEC | O_NONBLOCK);
/linux-master/tools/testing/selftests/exec/
H A Dexecveat.c252 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC);
264 int fd_cloexec = open_or_die("execveat", O_RDONLY|O_CLOEXEC);
265 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC);
289 /* O_CLOEXEC fd + no path */
347 /* O_CLOEXEC fd fails for a script (as script file inaccessible) */
/linux-master/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-pagefault.c148 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
/linux-master/arch/um/os-Linux/
H A Dmem.c132 fd = open(tempdir, O_CLOEXEC | O_RDWR | O_EXCL | O_TMPFILE, 0700);
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_mod_race.c69 uffd = sys_userfaultfd(O_CLOEXEC);
/linux-master/samples/acrn/
H A Dvm-sample.c61 hsm_fd = open("/dev/acrn_hsm", O_RDWR|O_CLOEXEC);
/linux-master/tools/testing/selftests/openat2/
H A Dopenat2_test.c174 { .name = "compatible flags (O_PATH | O_CLOEXEC)",
175 .how.flags = O_PATH | O_CLOEXEC },
287 /* O_CLOEXEC isn't shown in F_GETFL. */
289 fdflags |= O_CLOEXEC;
/linux-master/io_uring/
H A Dopenclose.c75 if (open->file_slot && (open->how.flags & O_CLOEXEC))
284 /* default to O_CLOEXEC, disable if IORING_FIXED_FD_NO_CLOEXEC is set */
286 ifi->o_flags = O_CLOEXEC;
/linux-master/fs/
H A Dsignalfd.c256 BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC);
274 ufd = get_unused_fd_flags(flags & O_CLOEXEC);
H A Dfsopen.c148 return fscontext_create_fd(fc, flags & FSOPEN_CLOEXEC ? O_CLOEXEC : 0);
202 return fscontext_create_fd(fc, flags & FSPICK_CLOEXEC ? O_CLOEXEC : 0);
/linux-master/tools/testing/selftests/landlock/
H A Dfs_test.c409 fd = openat(dirfd, path, flags | O_CLOEXEC);
463 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
466 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC);
474 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC);
491 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC);
505 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
587 path_beneath_file.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC);
592 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC);
645 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC);
672 path_beneath.parent_fd = open(file1_s1d2, O_PATH | O_CLOEXEC);
[all...]
/linux-master/tools/testing/selftests/core/
H A Dclose_range_test.c43 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
116 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
205 fd = open("/dev/null", O_RDONLY | O_CLOEXEC);
/linux-master/drivers/media/mc/
H A Dmc-request.c306 fd = get_unused_fd_flags(O_CLOEXEC);
312 filp = anon_inode_getfile("request", &request_fops, NULL, O_CLOEXEC);
/linux-master/tools/lib/bpf/
H A Dzip.c205 fd = open(path, O_RDONLY | O_CLOEXEC);
/linux-master/net/handshake/
H A Dnetlink.c113 fd = get_unused_fd_flags(O_CLOEXEC);
/linux-master/kernel/bpf/
H A Dtoken.c212 fd = get_unused_fd_flags(O_CLOEXEC);

Completed in 241 milliseconds

1234567