/tools/perf/util/ |
D | util.h | 53 #ifndef O_CLOEXEC 55 #define O_CLOEXEC 0x400000 macro 57 #define O_CLOEXEC 010000000 macro 59 #define O_CLOEXEC 02000000 macro
|
D | data.c | 268 fd = open(data->file.path, O_CREAT|O_RDWR|O_TRUNC|O_CLOEXEC, in open_file_write()
|
D | dso.c | 469 fd = open(name, O_RDONLY|O_CLOEXEC); in do_open()
|
/tools/include/uapi/asm-generic/ |
D | fcntl.h | 61 #ifndef O_CLOEXEC 62 #define O_CLOEXEC 02000000 /* set close_on_exec */ macro
|
/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 59 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()
|
D | pidfd_wait.c | 52 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/ |
D | binderfs_test.c | 37 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/ |
D | mount.h | 62 #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */
|
/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 105 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/ |
D | execveat.c | 234 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/ |
D | utils.c | 189 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()
|
D | incfs_test.c | 213 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/ |
D | hv_fcopy_daemon.c | 75 O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744); in hv_start_fcopy()
|
D | hv_kvp_daemon.c | 250 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/ |
D | fuse_test.c | 262 fd = open(argv[1], O_RDONLY | O_CLOEXEC); in main()
|
/tools/testing/selftests/uevent/ |
D | uevent_filtering.c | 199 fd = open(__DEV_FULL, O_RDWR | O_CLOEXEC); in trigger_uevent()
|
/tools/testing/selftests/proc/ |
D | proc-pid-vm.c | 205 fd1 = open(buf, O_RDONLY|O_CLOEXEC); in make_exe()
|
/tools/testing/selftests/vm/ |
D | userfaultfd.c | 660 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/ |
D | drm.h | 708 #define DRM_CLOEXEC O_CLOEXEC
|
/tools/testing/selftests/bpf/ |
D | test_sysctl.c | 1429 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/ |
D | builtin-trace.c | 81 #ifndef O_CLOEXEC 82 # define O_CLOEXEC 02000000 macro
|
/tools/lib/bpf/ |
D | libbpf.c | 1904 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()
|