Home
last modified time | relevance | path

Searched refs:O_CLOEXEC (Results 1 – 25 of 138) sorted by relevance

123456

/linux/tools/perf/util/
A Dutil.h55 #ifndef O_CLOEXEC
57 #define O_CLOEXEC 0x400000 macro
59 #define O_CLOEXEC 010000000 macro
61 #define O_CLOEXEC 02000000 macro
/linux/tools/testing/selftests/filesystems/binderfs/
A Dbinderfs_test.c90 fd = open(device_path, O_RDONLY | O_CLOEXEC); in __do_binderfs_test()
113 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test()
160 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test()
256 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping()
281 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping()
422 fd = open(device_path, O_RDONLY | O_CLOEXEC); in TEST()
439 fds[i] = open(device_path, O_RDONLY | O_CLOEXEC); in TEST()
/linux/tools/testing/selftests/landlock/
A Dbase_test.c204 O_DIRECTORY | O_CLOEXEC); in TEST()
242 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
244 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
254 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
257 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
A Dptrace_test.c50 fd = open(procenv_path, O_RDONLY | O_CLOEXEC); in test_ptrace_read()
223 ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC)); in TEST_F()
224 ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC)); in TEST_F()
A Dfs_test.c250 fd = openat(dirfd, path, flags | O_CLOEXEC); in test_open_rel()
304 O_CLOEXEC); in TEST_F_FORK()
315 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
346 O_CLOEXEC); in TEST_F_FORK()
437 path_beneath.parent_fd = open(path, O_PATH | O_CLOEXEC); in add_path_beneath()
606 reg_fd = open(file1_s2d2, O_RDWR | O_CLOEXEC); in TEST_F_FORK()
615 reg_fd = open(file1_s2d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
1503 dst_fd = open(dst_path, O_WRONLY | O_TRUNC | O_CLOEXEC); in copy_binary()
1508 src_fd = open(BINARY_PATH, O_RDONLY | O_CLOEXEC); in copy_binary()
1999 reg_fd = open(file1_s1d2, O_RDONLY | O_CLOEXEC); in TEST_F_FORK()
[all …]
/linux/tools/testing/selftests/pidfd/
A Dpidfd_setns_test.c93 fd = open("/proc/self/ns/time_for_children", O_RDONLY | O_CLOEXEC); in switch_timens()
136 proc_fd = open("/proc/self/ns", O_DIRECTORY | O_CLOEXEC); in FIXTURE_SETUP()
144 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
237 self->nsfds[i] = openat(proc_fd, info->name, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
250 self->child_nsfds1[i] = open(p, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
263 self->child_nsfds2[i] = open(p, O_RDONLY | O_CLOEXEC); in FIXTURE_SETUP()
311 return open(path, O_RDONLY | O_CLOEXEC); in preserve_ns()
A Dpidfd_test.c69 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_simple_success()
116 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_exited_fail()
219 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail()
248 ret = pipe2(pipe_fds, O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail()
355 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
A Dpidfd_wait.c56 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC); in TEST()
64 pidfd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
/linux/tools/testing/selftests/mount_setattr/
A Dmount_setattr_test.c154 #define OPEN_TREE_CLOEXEC O_CLOEXEC
182 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOCTTY | O_NOFOLLOW); in write_file()
431 fd = creat(NOSYMFOLLOW_TARGET, O_RDWR | O_CLOEXEC); in FIXTURE_SETUP()
717 dfd = open("/mnt/A/AA/B", O_DIRECTORY | O_CLOEXEC); in TEST_F()
993 fd = open("/mnt/A", O_DIRECTORY | O_CLOEXEC); in TEST_F()
1121 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST_F()
1150 attr.userns_fd = open("/proc/1/ns/user", O_RDONLY | O_CLOEXEC); in TEST_F()
1232 ret = open(path, O_RDONLY | O_CLOEXEC); in get_userns_fd()
1455 fd = open(NOSYMFOLLOW_SYMLINK, O_RDWR | O_CLOEXEC); in TEST_F()
1479 fd = open(NOSYMFOLLOW_SYMLINK, O_RDWR | O_CLOEXEC); in TEST_F()
[all …]
/linux/include/linux/
A Deventfd.h27 #define EFD_CLOEXEC O_CLOEXEC
30 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
A Duserfaultfd_k.h30 #define UFFD_CLOEXEC O_CLOEXEC
33 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
/linux/mm/
A Dsecretmem.c199 BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC); in SYSCALL_DEFINE1()
204 if (flags & ~(SECRETMEM_FLAGS_MASK | O_CLOEXEC)) in SYSCALL_DEFINE1()
209 fd = get_unused_fd_flags(flags & O_CLOEXEC); in SYSCALL_DEFINE1()
/linux/tools/include/uapi/asm-generic/
A Dfcntl.h61 #ifndef O_CLOEXEC
62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/linux/include/uapi/asm-generic/
A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/linux/samples/pidfd/
A Dpidfd-metadata.c58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
/linux/tools/testing/selftests/dmabuf-heaps/
A Ddmabuf-heap.c129 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc()
312 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older()
344 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer()
425 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
/linux/tools/testing/selftests/exec/
A Dexecveat.c236 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
248 int fd_cloexec = open_or_die("execveat", O_RDONLY|O_CLOEXEC); in run_tests()
249 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); in run_tests()
/linux/tools/testing/selftests/filesystems/
A Ddevpts_pts.c105 master = open(ptmx, O_RDWR | O_NOCTTY | O_CLOEXEC); in do_tiocgptpeer()
123 slave = ioctl(master, TIOCGPTPEER, O_RDWR | O_NOCTTY | O_CLOEXEC); in do_tiocgptpeer()
/linux/include/uapi/linux/
A Dtimerfd.h32 #define TFD_CLOEXEC O_CLOEXEC
A Ddma-heap.h19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
A Dsignalfd.h17 #define SFD_CLOEXEC O_CLOEXEC
/linux/arch/mips/include/asm/
A Dsocket.h45 #define SOCK_CLOEXEC O_CLOEXEC
/linux/arch/parisc/include/uapi/asm/
A Dfcntl.h15 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux/arch/alpha/include/uapi/asm/
A Dfcntl.h18 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux/arch/sparc/include/uapi/asm/
A Dfcntl.h21 #define O_CLOEXEC 0x400000 macro

Completed in 40 milliseconds

123456