/Linux-v5.10/tools/perf/util/ |
D | util.h | 55 #ifndef O_CLOEXEC 57 #define O_CLOEXEC 0x400000 macro 59 #define O_CLOEXEC 010000000 macro 61 #define O_CLOEXEC 02000000 macro
|
/Linux-v5.10/include/linux/ |
D | eventfd.h | 26 #define EFD_CLOEXEC O_CLOEXEC 29 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
D | userfaultfd_k.h | 27 #define UFFD_CLOEXEC O_CLOEXEC 30 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
D | fcntl.h | 13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
|
/Linux-v5.10/tools/testing/selftests/filesystems/binderfs/ |
D | binderfs_test.c | 87 fd = open(device_path, O_RDONLY | O_CLOEXEC); in __do_binderfs_test() 110 fd = open(device_path, O_CLOEXEC | O_RDONLY); in __do_binderfs_test() 239 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping() 264 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping() 405 fd = open(device_path, O_RDONLY | O_CLOEXEC); in TEST() 422 fds[i] = open(device_path, O_RDONLY | O_CLOEXEC); in TEST()
|
/Linux-v5.10/tools/testing/selftests/pidfd/ |
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()
|
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-v5.10/include/uapi/asm-generic/ |
D | fcntl.h | 62 #ifndef O_CLOEXEC 63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
/Linux-v5.10/tools/include/uapi/asm-generic/ |
D | fcntl.h | 61 #ifndef O_CLOEXEC 62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
/Linux-v5.10/tools/testing/selftests/dmabuf-heaps/ |
D | dmabuf-heap.c | 129 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc() 234 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older() 266 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer() 346 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
|
/Linux-v5.10/samples/pidfd/ |
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-v5.10/tools/testing/selftests/core/ |
D | close_range_test.c | 44 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST() 108 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST() 197 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST()
|
/Linux-v5.10/include/uapi/linux/ |
D | timerfd.h | 32 #define TFD_CLOEXEC O_CLOEXEC
|
D | dma-heap.h | 19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
|
D | signalfd.h | 17 #define SFD_CLOEXEC O_CLOEXEC
|
D | inotify.h | 72 #define IN_CLOEXEC O_CLOEXEC
|
D | mount.h | 63 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
|
D | eventpoll.h | 23 #define EPOLL_CLOEXEC O_CLOEXEC
|
/Linux-v5.10/arch/mips/include/asm/ |
D | socket.h | 45 #define SOCK_CLOEXEC O_CLOEXEC
|
/Linux-v5.10/arch/parisc/include/uapi/asm/ |
D | fcntl.h | 15 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
/Linux-v5.10/arch/alpha/include/uapi/asm/ |
D | fcntl.h | 18 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
/Linux-v5.10/arch/sparc/include/uapi/asm/ |
D | fcntl.h | 21 #define O_CLOEXEC 0x400000 macro
|
/Linux-v5.10/tools/testing/selftests/filesystems/ |
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-v5.10/tools/testing/selftests/exec/ |
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()
|
/Linux-v5.10/tools/include/uapi/linux/ |
D | mount.h | 63 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
|