Home
last modified time | relevance | path

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

/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
Ddata.c268 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, in open_file_write()
Ddso.c469 fd = open(name, O_RDONLY|O_CLOEXEC); in do_open()
/tools/include/uapi/asm-generic/
Dfcntl.h61 #ifndef O_CLOEXEC
62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
/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()
/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()
/tools/include/uapi/linux/
Dmount.h62 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
/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()
/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()
/tools/testing/selftests/filesystems/incfs/
Dutils.c189 cmd_fd = open(cmd_file, O_RDONLY | O_CLOEXEC); in open_commands_file()
202 cmd_fd = open(cmd_file, O_RDWR | O_CLOEXEC); in open_log_file()
Dincfs_test.c213 int fd = open(path, O_RDWR | O_CLOEXEC); in open_file_by_id()
449 fd = open(filename, O_RDONLY | O_CLOEXEC); in read_whole_file()
481 fd = open(filename, O_RDONLY | O_CLOEXEC); in read_test_file()
914 int fd = open(dir_to_iterate, O_RDONLY | O_DIRECTORY | O_CLOEXEC); in iterate_directory()
1115 fd = open(path, O_RDWR | O_CLOEXEC); in basic_file_ops_test()
1951 fd = open(filename, O_RDONLY | O_CLOEXEC); in validate_logs()
2160 drop_caches = open("/proc/sys/vm/drop_caches", O_WRONLY | O_CLOEXEC); in read_log_test()
2183 drop_caches = open("/proc/sys/vm/drop_caches", O_WRONLY | O_CLOEXEC); in read_log_test()
2273 fd = open(filename, O_RDONLY | O_CLOEXEC); in validate_ranges()
2511 fd = open(filename, O_RDONLY | O_CLOEXEC); in validate_hash_ranges()
[all …]
/tools/hv/
Dhv_fcopy_daemon.c75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
Dhv_kvp_daemon.c250 fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0644 /* rw-r--r-- */); in kvp_file_init()
1403 kvp_fd = open("/dev/vmbus/hv_kvp", O_RDWR | O_CLOEXEC); in main()
/tools/testing/selftests/memfd/
Dfuse_test.c262 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
/tools/testing/selftests/uevent/
Duevent_filtering.c199 fd = open(__DEV_FULL, O_RDWR | O_CLOEXEC); in trigger_uevent()
/tools/testing/selftests/proc/
Dproc-pid-vm.c205 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe()
/tools/testing/selftests/vm/
Duserfaultfd.c660 uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK); in userfaultfd_open()
1082 if (pipe2(&pipefd[cpu*2], O_CLOEXEC | O_NONBLOCK)) { in userfaultfd_stress()
/tools/include/uapi/drm/
Ddrm.h708 #define DRM_CLOEXEC O_CLOEXEC
/tools/testing/selftests/bpf/
Dtest_sysctl.c1429 fd = open(sysctl_path, O_RDONLY | O_CLOEXEC); in load_sysctl_prog_insns()
1487 fd = open(sysctl_path, test->open_flags | O_CLOEXEC); in access_sysctl()
/tools/perf/
Dbuiltin-trace.c81 #ifndef O_CLOEXEC
82 # define O_CLOEXEC 02000000 macro
/tools/lib/bpf/
Dlibbpf.c1904 new_fd = open("/", O_RDONLY | O_CLOEXEC); in bpf_map__reuse_fd()
1910 new_fd = dup3(fd, new_fd, O_CLOEXEC); in bpf_map__reuse_fd()