/kernel/linux/linux-5.10/tools/testing/selftests/tmpfs/ |
H A D | bug-link-o-tmpfile.c | 49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/tmpfs/ |
H A D | bug-link-o-tmpfile.c | 49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
H A D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg() 58 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write() 107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
|
H A D | fd-003-kthread.c | 35 * Test for kernel threadness atomically with openat(). 56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd() 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
|
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg() 60 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write() 109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
|
H A D | fd-003-kthread.c | 35 * Test for kernel threadness atomically with openat(). 56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd() 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
|
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/ |
H A D | helpers.c | 35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat() 49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
|
H A D | rename_attack_test.c | 98 ksft_print_msg("openat2(2) unsupported -- using openat(2) instead\n"); in test_rename_attack() 102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
|
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/ |
H A D | helpers.c | 35 int ret = openat(dfd, path, how->flags, how->mode); in sys_openat() 49 int fd = openat(dfd, path, O_CREAT, 0700); in touchat()
|
H A D | rename_attack_test.c | 98 ksft_print_msg("openat2(2) unsupported -- using openat(2) instead\n"); in test_rename_attack() 102 afd = openat(dfd, "a", O_PATH); in test_rename_attack()
|
/kernel/linux/linux-5.10/tools/perf/examples/bpf/ |
H A D | hello.c | 3 int syscall_enter(openat)(void *args) in openat() function
|
H A D | sys_enter_openat.c | 3 * Hook into 'openat' syscall entry tracepoint 9 * It'll catch some openat syscalls related to the dynamic linked and 28 int syscall_enter(openat)(struct syscall_enter_openat_args *args) in openat() function
|
H A D | etcsnoop.c | 10 * It'll catch some openat syscalls related to the dynamic linked and 64 augmented_filename_syscall_enter(openat); variable
|
H A D | augmented_syscalls.c | 9 * It'll catch some openat syscalls related to the dynamic linked and 72 augmented_filename_syscall(openat); variable
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | openat-syscall.c | 45 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event()
|
H A D | openat-syscall-tp-fields.c | 86 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
|
H A D | openat-syscall-all-cpus.c | 82 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | openat-syscall.c | 49 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event() 75 TEST_CASE_REASON("Detect openat syscall event", 82 .desc = "Detect openat syscall event",
|
H A D | openat-syscall-all-cpus.c | 85 fd = openat(0, "/etc/passwd", O_RDONLY); in test__openat_syscall_event_on_all_cpus() 129 TEST_CASE_REASON("Detect openat syscall event on all cpus", 136 .desc = "Detect openat syscall event on all cpus",
|
H A D | openat-syscall-tp-fields.c | 88 openat(AT_FDCWD, filename, flags); in test__syscall_openat_tp_fields()
|
/kernel/linux/linux-6.6/tools/testing/selftests/fchmodat2/ |
H A D | fchmodat2_test.c | 32 ret = openat(dfd, "regfile", O_CREAT | O_WRONLY | O_TRUNC, 0644); in setup_testdir()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | print-events.c | 89 dir_fd = openat(events_fd, sys_dirent->d_name, O_PATH); in print_tracepoint_events() 105 evt_fd = openat(dir_fd, evt_path, O_RDONLY); in print_tracepoint_events()
|
/kernel/linux/linux-5.10/samples/pidfd/ |
H A D | pidfd-metadata.c | 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
|
/kernel/linux/linux-6.6/samples/pidfd/ |
H A D | pidfd-metadata.c | 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/pidfd/ |
H A D | pidfd_setns_test.c | 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()
|