Home
last modified time | relevance | path

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

123456789

/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dutil.h55 #ifndef O_CLOEXEC
57 #define O_CLOEXEC 0x400000 macro
59 #define O_CLOEXEC 010000000 macro
61 #define O_CLOEXEC 02000000 macro
/OK3568_Linux_fs/buildroot/package/kmod/
H A D0001-fix-O_CLOEXEC.patch4 Subject: [PATCH] Add dummy definition of O_CLOEXEC
6 O_CLOEXEC is introduced from Linux 2.6.23, so old kernel doesn't have
39 +#ifndef O_CLOEXEC
40 +#define O_CLOEXEC 0
/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/incfs/
H A Dincfs_stress.c110 O_RDONLY | O_CLOEXEC); in reader()
135 int fd = openat(dir_fd, name, O_RDWR | O_CLOEXEC); in write_data()
187 O_RDONLY | O_CLOEXEC); in test_files()
302 src_dir_fd = open(src_dir, O_RDONLY | O_CLOEXEC); in main()
303 dst_dir_fd = open(dst_dir, O_RDONLY | O_CLOEXEC); in main()
H A Dincfs_perf.c188 int fd = openat(dir_fd, name, O_RDWR | O_CLOEXEC); in write_data()
320 fd = openat(dir, name, O_RDONLY | O_CLOEXEC); in measure_read_throughput_internal()
398 fd = openat(dir, name, O_CREAT | O_WRONLY | O_CLOEXEC, 0600); in test_native_file()
520 fd = openat(dir, name, O_RDONLY | O_CLOEXEC); in load_hash_tree()
548 O_RDONLY | O_CLOEXEC); in test_incfs_file()
680 native_dir_fd = open(native_dir, O_RDONLY | O_CLOEXEC); in main()
681 src_dir_fd = open(src_dir, O_RDONLY | O_CLOEXEC); in main()
682 dst_dir_fd = open(dst_dir, O_RDONLY | O_CLOEXEC); in main()
H A Dutils.c53 open("/proc/sys/vm/drop_caches", O_WRONLY | O_CLOEXEC); in drop_caches()
231 cmd_fd = open(cmd_file, O_RDONLY | O_CLOEXEC); in open_commands_file()
244 fd = open(file, O_RDWR | O_CLOEXEC); in open_log_file()
257 fd = open(file, O_RDONLY | O_CLOEXEC); in open_blocks_written_file()
H A Dincfs_test.c325 int fd = open(path, O_RDWR | O_CLOEXEC); in open_file_by_id()
583 fd = open(filename, O_RDONLY | O_CLOEXEC); in read_whole_file()
615 fd = open(filename, O_RDONLY | O_CLOEXEC); in read_test_file()
1111 int fd = open(dir_to_iterate, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in iterate_directory()
1312 fd = open(path, O_RDWR | O_CLOEXEC); in basic_file_ops_test()
2020 TEST(fd = open(filename, O_RDONLY | O_CLOEXEC), fd != -1); in validate_hash_tree()
2189 TEST(fd = open(filename, O_RDONLY | O_CLOEXEC), fd != -1); in validate_logs()
2461 fd = open(filename, O_RDONLY | O_CLOEXEC); in validate_ranges()
2697 fd = open(filename, O_RDONLY | O_CLOEXEC); in validate_hash_ranges()
2898 fd = open(name, O_RDONLY | O_CLOEXEC); in validate_mapped_file()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/binderfs/
H A Dbinderfs_test.c87 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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/pidfd/
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()
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()
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()
/OK3568_Linux_fs/external/mpp/osal/allocator/
H A Dallocator_dma_heap.c37 #define DMA_HEAP_VALID_FD_FLAGS (O_CLOEXEC | O_ACCMODE)
96 .fd_flags = O_RDWR | O_CLOEXEC, in dma_heap_alloc()
102 data.fd_flags = O_RDWR | O_CLOEXEC; in dma_heap_alloc()
136 fd = open(name, O_RDONLY | O_CLOEXEC); // read permission is enough in heap_fd_open()
/OK3568_Linux_fs/kernel/include/linux/
H A Deventfd.h26 #define EFD_CLOEXEC O_CLOEXEC
29 #define EFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
H A Duserfaultfd_k.h30 #define UFFD_CLOEXEC O_CLOEXEC
33 #define UFFD_SHARED_FCNTL_FLAGS (O_CLOEXEC | O_NONBLOCK)
/OK3568_Linux_fs/kernel/tools/testing/selftests/dmabuf-heaps/
H A Ddmabuf-heap.c129 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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/core/
H A Dclose_range_test.c44 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()
/OK3568_Linux_fs/kernel/include/uapi/asm-generic/
H A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/asm-generic/
H A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/asm-generic/
H A Dfcntl.h62 #ifndef O_CLOEXEC
63 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/OK3568_Linux_fs/kernel/tools/include/uapi/asm-generic/
H A Dfcntl.h61 #ifndef O_CLOEXEC
62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/yocto/poky/meta/recipes-core/systemd/systemd/
H A DCVE-2022-45873.patch53 - r = RET_NERRNO(pipe2(return_pipe, O_CLOEXEC));
54 + r = RET_NERRNO(pipe2(return_pipe, O_CLOEXEC|O_NONBLOCK));
60 - r = RET_NERRNO(pipe2(json_pipe, O_CLOEXEC));
61 + r = RET_NERRNO(pipe2(json_pipe, O_CLOEXEC|O_NONBLOCK));
/OK3568_Linux_fs/external/mpp/mpp/legacy/
H A Dvpu.c161 fd = open(path, O_RDWR | O_CLOEXEC); in VPUClientInit()
338 fd = open("/dev/vpu_service", O_RDWR | O_CLOEXEC); in VPUCheckSupportWidth()
340 fd = open("/dev/vpu-service", O_RDWR | O_CLOEXEC); in VPUCheckSupportWidth()
/OK3568_Linux_fs/kernel/tools/testing/selftests/exec/
H A Dexecveat.c236 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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/
H A 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()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dtimerfd.h32 #define TFD_CLOEXEC O_CLOEXEC
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dtimerfd.h32 #define TFD_CLOEXEC O_CLOEXEC

123456789