Home
last modified time | relevance | path

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

12345

/Linux-v5.4/tools/perf/util/
Dutil.h53 #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/
Deventfd.h24 #define EFD_CLOEXEC O_CLOEXEC
27 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
Duserfaultfd_k.h25 #define UFFD_CLOEXEC O_CLOEXEC
28 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
Dfcntl.h12 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
/Linux-v5.4/tools/testing/selftests/pidfd/
Dpidfd_test.c59 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()
Dpidfd_wait.c52 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/
Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/Linux-v5.4/tools/include/uapi/asm-generic/
Dfcntl.h61 #ifndef O_CLOEXEC
62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/Linux-v5.4/samples/pidfd/
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-v5.4/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c37 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/
Dtimerfd.h32 #define TFD_CLOEXEC O_CLOEXEC
Dsignalfd.h17 #define SFD_CLOEXEC O_CLOEXEC
Dinotify.h72 #define IN_CLOEXEC O_CLOEXEC
Dmount.h62 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
Deventpoll.h23 #define EPOLL_CLOEXEC O_CLOEXEC
/Linux-v5.4/arch/mips/include/asm/
Dsocket.h45 #define SOCK_CLOEXEC O_CLOEXEC
/Linux-v5.4/arch/parisc/include/uapi/asm/
Dfcntl.h17 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/Linux-v5.4/arch/alpha/include/uapi/asm/
Dfcntl.h18 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/Linux-v5.4/arch/sparc/include/uapi/asm/
Dfcntl.h21 #define O_CLOEXEC 0x400000 macro
/Linux-v5.4/tools/testing/selftests/filesystems/
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-v5.4/tools/testing/selftests/exec/
Dexecveat.c234 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/
Dmount.h62 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
/Linux-v5.4/samples/binderfs/
Dbinderfs_example.c54 fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC); in main()
/Linux-v5.4/fs/
Dsignalfd.c268 BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC); in do_signalfd4()
289 O_RDWR | (flags & (O_CLOEXEC | O_NONBLOCK))); in do_signalfd4()
Dfsopen.c148 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()

12345