Home
last modified time | relevance | path

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

12345678

/openbmc/linux/tools/testing/selftests/landlock/
H A Dbase_test.c183 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
206 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
278 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST()
306 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
308 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
318 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
321 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
341 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
354 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
368 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST()
[all …]
H A Dptrace_test.c57 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()
/openbmc/linux/tools/perf/util/
H A Dutil.h66 #ifndef O_CLOEXEC
68 #define O_CLOEXEC 0x400000 macro
70 #define O_CLOEXEC 010000000 macro
72 #define O_CLOEXEC 02000000 macro
/openbmc/qemu/qga/
H A Dcutils.c24 #ifdef O_CLOEXEC in qga_open_cloexec()
25 ret = open(name, flags | O_CLOEXEC, mode); in qga_open_cloexec()
/openbmc/openbmc/poky/meta/recipes-extended/shadow/files/
H A Dcommonio.c-fix-unexpected-open-failure-in-chroot-env.patch32 - | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW | O_CLOEXEC);
37 + | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW | O_CLOEXEC);
42 + | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW| O_CLOEXEC);
/openbmc/qemu/util/
H A Ddrm.c32 return open(rendernode, O_RDWR | O_CLOEXEC | O_NOCTTY | O_NONBLOCK); in qemu_drm_rendernode_open()
48 r = open(p, O_RDWR | O_CLOEXEC | O_NOCTTY | O_NONBLOCK); in qemu_drm_rendernode_open()
H A Duserfaultfd.c41 uffd_dev = open("/dev/userfaultfd", O_RDWR | O_CLOEXEC); in uffd_open()
75 uffd_fd = uffd_open(O_CLOEXEC); in uffd_query_features()
111 flags = O_CLOEXEC | (non_blocking ? O_NONBLOCK : 0); in uffd_create_fd()
/openbmc/linux/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c91 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()
/openbmc/qemu/crypto/
H A Drandom-platform.c55 fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC); in qcrypto_random_init()
57 fd = open("/dev/random", O_RDONLY | O_CLOEXEC); in qcrypto_random_init()
/openbmc/linux/tools/include/uapi/asm-generic/
H A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/openbmc/linux/include/uapi/asm-generic/
H A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/openbmc/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c69 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()
220 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail()
249 ret = pipe2(pipe_fds, O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail()
356 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
H A Dpidfd_setns_test.c93 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()
/openbmc/linux/samples/pidfd/
H A 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()
/openbmc/linux/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c148 #define OPEN_TREE_CLOEXEC O_CLOEXEC
176 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOCTTY | O_NOFOLLOW); in write_file()
425 fd = creat(NOSYMFOLLOW_TARGET, O_RDWR | O_CLOEXEC); in FIXTURE_SETUP()
711 dfd = open("/mnt/A/AA/B", O_DIRECTORY | O_CLOEXEC); in TEST_F()
987 fd = open("/mnt/A", O_DIRECTORY | O_CLOEXEC); in TEST_F()
1115 fd = open("/dev/null", O_RDONLY | O_CLOEXEC); in TEST_F()
1144 attr.userns_fd = open("/proc/1/ns/user", O_RDONLY | O_CLOEXEC); in TEST_F()
1226 ret = open(path, O_RDONLY | O_CLOEXEC); in get_userns_fd()
1449 fd = open(NOSYMFOLLOW_SYMLINK, O_RDWR | O_CLOEXEC); in TEST_F()
1473 fd = open(NOSYMFOLLOW_SYMLINK, O_RDWR | O_CLOEXEC); in TEST_F()
[all …]
/openbmc/linux/mm/
H A Dsecretmem.c239 BUILD_BUG_ON(SECRETMEM_FLAGS_MASK & O_CLOEXEC); in SYSCALL_DEFINE1()
244 if (flags & ~(SECRETMEM_FLAGS_MASK | O_CLOEXEC)) in SYSCALL_DEFINE1()
249 fd = get_unused_fd_flags(flags & O_CLOEXEC); in SYSCALL_DEFINE1()
/openbmc/linux/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c130 return dmabuf_heap_alloc_fdflags(fd, len, O_RDWR | O_CLOEXEC, flags, in dmabuf_heap_alloc()
313 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_older()
345 .fd_flags = O_RDWR | O_CLOEXEC, in dmabuf_heap_alloc_newer()
426 ~(O_RDWR | O_CLOEXEC), 0, &dmabuf_fd); in test_alloc_errors()
/openbmc/linux/include/uapi/linux/
H A Deventfd.h8 #define EFD_CLOEXEC O_CLOEXEC
H A Dtimerfd.h32 #define TFD_CLOEXEC O_CLOEXEC
H A Ddma-heap.h19 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
/openbmc/linux/arch/mips/include/asm/
H A Dsocket.h45 #define SOCK_CLOEXEC O_CLOEXEC
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c134 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()
/openbmc/linux/arch/parisc/include/uapi/asm/
H A Dfcntl.h15 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dfcntl.h18 #define O_CLOEXEC 010000000 /* set close_on_exec */ macro
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dfcntl.h21 #define O_CLOEXEC 0x400000 macro

12345678