/linux-6.3-rc2/tools/perf/util/ |
A D | util.h | 58 #ifndef O_CLOEXEC 60 #define O_CLOEXEC 0x400000 macro 62 #define O_CLOEXEC 010000000 macro 64 #define O_CLOEXEC 02000000 macro
|
/linux-6.3-rc2/tools/testing/selftests/landlock/ |
A D | base_test.c | 182 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 277 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 305 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 307 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 317 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 320 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
|
A D | ptrace_test.c | 57 fd = open(procenv_path, O_RDONLY | O_CLOEXEC); in test_ptrace_read() 313 ASSERT_EQ(0, pipe2(pipe_child, O_CLOEXEC)); in TEST_F() 314 ASSERT_EQ(0, pipe2(pipe_parent, O_CLOEXEC)); in TEST_F()
|
/linux-6.3-rc2/tools/testing/selftests/filesystems/binderfs/ |
A D | binderfs_test.c | 91 fd = open(device_path, O_RDONLY | O_CLOEXEC); in __do_binderfs_test() 114 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test() 161 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test() 257 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping() 282 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping() 424 fd = open(device_path, O_RDONLY | O_CLOEXEC); in TEST() 441 fds[i] = open(device_path, O_RDONLY | O_CLOEXEC); in TEST()
|
/linux-6.3-rc2/include/linux/ |
A D | eventfd.h | 27 #define EFD_CLOEXEC O_CLOEXEC 30 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
A D | userfaultfd_k.h | 33 #define UFFD_CLOEXEC O_CLOEXEC 36 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
/linux-6.3-rc2/tools/testing/selftests/pidfd/ |
A D | pidfd_setns_test.c | 93 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 D | pidfd_test.c | 69 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()
|
/linux-6.3-rc2/include/uapi/asm-generic/ |
A D | fcntl.h | 62 #ifndef O_CLOEXEC 63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
/linux-6.3-rc2/tools/include/uapi/asm-generic/ |
A D | fcntl.h | 62 #ifndef O_CLOEXEC 63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
/linux-6.3-rc2/tools/testing/selftests/mount_setattr/ |
A D | mount_setattr_test.c | 147 #define OPEN_TREE_CLOEXEC O_CLOEXEC 175 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOCTTY | O_NOFOLLOW); in write_file() 424 fd = creat(NOSYMFOLLOW_TARGET, O_RDWR | O_CLOEXEC); in FIXTURE_SETUP() 710 dfd = open("/mnt/A/AA/B", O_DIRECTORY | O_CLOEXEC); in TEST_F() 986 fd = open("/mnt/A", O_DIRECTORY | O_CLOEXEC); in TEST_F() 1114 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST_F() 1143 attr.userns_fd = open("/proc/1/ns/user", O_RDONLY | O_CLOEXEC); in TEST_F() 1225 ret = open(path, O_RDONLY | O_CLOEXEC); in get_userns_fd() 1448 fd = open(NOSYMFOLLOW_SYMLINK, O_RDWR | O_CLOEXEC); in TEST_F() 1472 fd = open(NOSYMFOLLOW_SYMLINK, O_RDWR | O_CLOEXEC); in TEST_F() [all …]
|
/linux-6.3-rc2/samples/pidfd/ |
A D | pidfd-metadata.c | 58 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-6.3-rc2/mm/ |
A D | secretmem.c | 237 BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC); in SYSCALL_DEFINE1() 242 if (flags & ~(SECRETMEM_FLAGS_MASK | O_CLOEXEC)) in SYSCALL_DEFINE1() 247 fd = get_unused_fd_flags(flags & O_CLOEXEC); in SYSCALL_DEFINE1()
|
/linux-6.3-rc2/tools/testing/selftests/dmabuf-heaps/ |
A D | dmabuf-heap.c | 128 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc() 311 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older() 343 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer() 424 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | timerfd.h | 32 #define TFD_CLOEXEC O_CLOEXEC
|
A D | dma-heap.h | 19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
|
A D | signalfd.h | 17 #define SFD_CLOEXEC O_CLOEXEC
|
A D | inotify.h | 72 #define IN_CLOEXEC O_CLOEXEC
|
/linux-6.3-rc2/tools/testing/selftests/kvm/lib/ |
A D | userfaultfd_util.c | 134 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in uffd_setup_demand_paging() 151 ret = pipe2(uffd_desc->pipefds, O_CLOEXEC | O_NONBLOCK); in uffd_setup_demand_paging()
|
/linux-6.3-rc2/arch/mips/include/asm/ |
A D | socket.h | 45 #define SOCK_CLOEXEC O_CLOEXEC
|
/linux-6.3-rc2/arch/parisc/include/uapi/asm/ |
A D | fcntl.h | 15 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
/linux-6.3-rc2/arch/alpha/include/uapi/asm/ |
A D | fcntl.h | 18 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
/linux-6.3-rc2/arch/sparc/include/uapi/asm/ |
A D | fcntl.h | 21 #define O_CLOEXEC 0x400000 macro
|
/linux-6.3-rc2/tools/testing/selftests/filesystems/ |
A D | devpts_pts.c | 105 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-6.3-rc2/tools/testing/selftests/exec/ |
A D | execveat.c | 236 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()
|