Home
last modified time | relevance | path

Searched refs:fdpath (Results 1 - 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/openat2/
H A Dopenat2_test.c90 char *fdpath = NULL; in test_openat2_struct() local
122 fdpath = fdreadlink(fd); in test_openat2_struct()
130 if (fdpath) in test_openat2_struct()
131 ksft_print_msg("%d['%s']\n", fd, fdpath); in test_openat2_struct()
146 free(fdpath); in test_openat2_struct()
232 char *path, *fdpath = NULL; in test_openat2_flags() local
264 fdpath = fdreadlink(fd); in test_openat2_flags()
287 if (fdpath) in test_openat2_flags()
289 fd, fdpath, fdflags, in test_openat2_flags()
302 free(fdpath); in test_openat2_flags()
[all...]
H A Dhelpers.c73 char *fdpath, *dfdpath, *other; in fdequal() local
76 fdpath = fdreadlink(fd); in fdequal()
86 cmp = !strcmp(fdpath, other); in fdequal()
88 free(fdpath); in fdequal()
H A Dresolve_test.c443 char *fdpath = NULL; in test_openat2_opath_tests() local
472 fdpath = fdreadlink(fd); in test_openat2_opath_tests()
481 if (fdpath) in test_openat2_opath_tests()
482 ksft_print_msg("%d['%s']\n", fd, fdpath); in test_openat2_opath_tests()
496 free(fdpath); in test_openat2_opath_tests()
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/
H A Dopenat2_test.c94 char *fdpath = NULL; in test_openat2_struct() local
126 fdpath = fdreadlink(fd); in test_openat2_struct()
134 if (fdpath) in test_openat2_struct()
135 ksft_print_msg("%d['%s']\n", fd, fdpath); in test_openat2_struct()
150 free(fdpath); in test_openat2_struct()
247 char *path, *fdpath = NULL; in test_openat2_flags() local
279 fdpath = fdreadlink(fd); in test_openat2_flags()
302 if (fdpath) in test_openat2_flags()
304 fd, fdpath, fdflags, in test_openat2_flags()
317 free(fdpath); in test_openat2_flags()
[all...]
H A Dhelpers.c73 char *fdpath, *dfdpath, *other; in fdequal() local
76 fdpath = fdreadlink(fd); in fdequal()
86 cmp = !strcmp(fdpath, other); in fdequal()
88 free(fdpath); in fdequal()
H A Dresolve_test.c443 char *fdpath = NULL; in test_openat2_opath_tests() local
472 fdpath = fdreadlink(fd); in test_openat2_opath_tests()
481 if (fdpath) in test_openat2_opath_tests()
482 ksft_print_msg("%d['%s']\n", fd, fdpath); in test_openat2_opath_tests()
496 free(fdpath); in test_openat2_opath_tests()
/kernel/linux/linux-5.10/include/linux/
H A Dbinfmts.h59 const char *fdpath; /* generated filename for execveat */ member
/kernel/linux/linux-6.6/include/linux/
H A Dbinfmts.h57 const char *fdpath; /* generated filename for execveat */ member
/kernel/linux/linux-5.10/fs/
H A Dexec.c1501 kfree(bprm->fdpath); in free_bprm()
1516 bprm->fdpath = kasprintf(GFP_KERNEL, "/dev/fd/%d", fd); in alloc_bprm()
1518 bprm->fdpath = kasprintf(GFP_KERNEL, "/dev/fd/%d/%s", in alloc_bprm()
1520 if (!bprm->fdpath) in alloc_bprm()
1523 bprm->filename = bprm->fdpath; in alloc_bprm()
1837 if (bprm->fdpath && get_close_on_exec(fd)) in bprm_execve()
/kernel/linux/linux-6.6/fs/
H A Dexec.c1512 kfree(bprm->fdpath); in free_bprm()
1527 bprm->fdpath = kasprintf(GFP_KERNEL, "/dev/fd/%d", fd); in alloc_bprm()
1529 bprm->fdpath = kasprintf(GFP_KERNEL, "/dev/fd/%d/%s", in alloc_bprm()
1531 if (!bprm->fdpath) in alloc_bprm()
1534 bprm->filename = bprm->fdpath; in alloc_bprm()
1852 if (bprm->fdpath && get_close_on_exec(fd)) in bprm_execve()

Completed in 10 milliseconds