Searched refs:O_CLOEXEC (Results 1 - 25 of 154) sorted by relevance

1234567

/linux-master/include/uapi/linux/
H A Deventfd.h8 #define EFD_CLOEXEC O_CLOEXEC
H A Dtimerfd.h14 /* For O_CLOEXEC and O_NONBLOCK */
32 #define TFD_CLOEXEC O_CLOEXEC
H A Ddma-heap.h18 /* Valid FD_FLAGS are O_CLOEXEC, O_RDONLY, O_WRONLY, O_RDWR */
19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
H A Dsignalfd.h13 /* For O_CLOEXEC and O_NONBLOCK */
17 #define SFD_CLOEXEC O_CLOEXEC
H A Deventpoll.h18 /* For O_CLOEXEC */
23 #define EPOLL_CLOEXEC O_CLOEXEC
H A Dinotify.h11 /* For O_CLOEXEC and O_NONBLOCK */
72 #define IN_CLOEXEC O_CLOEXEC
/linux-master/arch/mips/include/asm/
H A Dsocket.h45 #define SOCK_CLOEXEC O_CLOEXEC
/linux-master/arch/parisc/include/uapi/asm/
H A Dfcntl.h15 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux-master/arch/alpha/include/uapi/asm/
H A Dfcntl.h18 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/linux-master/tools/perf/util/
H A Dutil.h74 #ifndef O_CLOEXEC
76 #define O_CLOEXEC 0x400000 macro
78 #define O_CLOEXEC 010000000 macro
80 #define O_CLOEXEC 02000000 macro
/linux-master/arch/sparc/include/uapi/asm/
H A Dfcntl.h21 #define O_CLOEXEC 0x400000 macro
/linux-master/include/uapi/asm-generic/
H A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/linux-master/tools/include/uapi/asm-generic/
H A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/linux-master/tools/testing/selftests/landlock/
H A Dbase_test.c182 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC);
205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC);
277 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC);
305 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC));
307 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
317 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
320 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC);
/linux-master/samples/pidfd/
H A Dpidfd-metadata.c58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC);
105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC);
/linux-master/include/linux/
H A Dfcntl.h13 O_NOATIME | O_CLOEXEC | O_PATH | __O_TMPFILE)
H A Deventfd.h26 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
/linux-master/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c91 fd = open(device_path, O_RDONLY | O_CLOEXEC);
114 fd = open(device_path, O_CLOEXEC | O_RDONLY);
161 fd = open(device_path, O_CLOEXEC | O_RDONLY);
257 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW);
282 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW);
424 fd = open(device_path, O_RDONLY | O_CLOEXEC);
441 fds[i] = open(device_path, O_RDONLY | O_CLOEXEC);
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_test.c69 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC);
116 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC);
220 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC);
249 ret = pipe2(pipe_fds, O_CLOEXEC);
356 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC);
/linux-master/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c134 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK);
151 ret = pipe2(uffd_desc->pipefds, O_CLOEXEC | O_NONBLOCK);
/linux-master/samples/binderfs/
H A Dbinderfs_example.c53 fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC);
/linux-master/tools/gpio/
H A Dgpio-watch.c35 fd = open(argv[1], O_RDWR | O_CLOEXEC);
/linux-master/include/trace/misc/
H A Dfs.h40 { O_CLOEXEC, "O_CLOEXEC" })
/linux-master/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c128 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags,
311 .fd_flags = O_RDWR | O_CLOEXEC,
343 .fd_flags = O_RDWR | O_CLOEXEC,
424 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd);
/linux-master/mm/
H A Dsecretmem.c239 BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC);
244 if (flags & ~(SECRETMEM_FLAGS_MASK | O_CLOEXEC))
249 fd = get_unused_fd_flags(flags & O_CLOEXEC);

Completed in 244 milliseconds

1234567