| /Linux-v5.4/tools/perf/util/ |
| D | util.h | 53 #ifndef O_CLOEXEC 55 #define O_CLOEXEC 0x400000 macro 57 #define O_CLOEXEC 010000000 macro 59 #define O_CLOEXEC 02000000 macro
|
| /Linux-v5.4/include/linux/ |
| D | eventfd.h | 24 #define EFD_CLOEXEC O_CLOEXEC 27 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
| D | userfaultfd_k.h | 25 #define UFFD_CLOEXEC O_CLOEXEC 28 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
|
| D | fcntl.h | 12 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
|
| /Linux-v5.4/tools/testing/selftests/pidfd/ |
| D | pidfd_test.c | 59 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_simple_success() 99 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_exited_fail() 184 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail() 213 ret = pipe2(pipe_fds, O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail() 320 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
|
| D | pidfd_wait.c | 52 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC); in test_pidfd_wait_simple() 65 pidfd = open("/dev/null", O_RDONLY | O_CLOEXEC); in test_pidfd_wait_simple()
|
| /Linux-v5.4/include/uapi/asm-generic/ |
| D | fcntl.h | 62 #ifndef O_CLOEXEC 63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
| /Linux-v5.4/tools/include/uapi/asm-generic/ |
| D | fcntl.h | 61 #ifndef O_CLOEXEC 62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
| /Linux-v5.4/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.4/tools/testing/selftests/filesystems/binderfs/ |
| D | binderfs_test.c | 37 fd = open(filename, O_WRONLY | O_CLOEXEC); in write_to_file() 172 fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC); in __do_binderfs_test() 196 fd = open("/dev/binderfs/my-binder", O_CLOEXEC | O_RDONLY); in __do_binderfs_test()
|
| /Linux-v5.4/include/uapi/linux/ |
| D | timerfd.h | 32 #define TFD_CLOEXEC O_CLOEXEC
|
| D | signalfd.h | 17 #define SFD_CLOEXEC O_CLOEXEC
|
| D | inotify.h | 72 #define IN_CLOEXEC O_CLOEXEC
|
| D | mount.h | 62 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
|
| D | eventpoll.h | 23 #define EPOLL_CLOEXEC O_CLOEXEC
|
| /Linux-v5.4/arch/mips/include/asm/ |
| D | socket.h | 45 #define SOCK_CLOEXEC O_CLOEXEC
|
| /Linux-v5.4/arch/parisc/include/uapi/asm/ |
| D | fcntl.h | 17 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
| /Linux-v5.4/arch/alpha/include/uapi/asm/ |
| D | fcntl.h | 18 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
|
| /Linux-v5.4/arch/sparc/include/uapi/asm/ |
| D | fcntl.h | 21 #define O_CLOEXEC 0x400000 macro
|
| /Linux-v5.4/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.4/tools/testing/selftests/exec/ |
| D | execveat.c | 234 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests() 246 int fd_cloexec = open_or_die("execveat", O_RDONLY|O_CLOEXEC); in run_tests() 247 int fd_script_cloexec = open_or_die("script", O_RDONLY|O_CLOEXEC); in run_tests()
|
| /Linux-v5.4/tools/include/uapi/linux/ |
| D | mount.h | 62 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
|
| /Linux-v5.4/samples/binderfs/ |
| D | binderfs_example.c | 54 fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC); in main()
|
| /Linux-v5.4/fs/ |
| D | signalfd.c | 268 BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC); in do_signalfd4() 289 O_RDWR | (flags & (O_CLOEXEC | O_NONBLOCK))); in do_signalfd4()
|
| D | fsopen.c | 148 return fscontext_create_fd(fc, flags & FSOPEN_CLOEXEC ? O_CLOEXEC : 0); in SYSCALL_DEFINE2() 202 return fscontext_create_fd(fc, flags & FSPICK_CLOEXEC ? O_CLOEXEC : 0); in SYSCALL_DEFINE3()
|