Home
last modified time | relevance | path

Searched refs:fdpath (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/tools/testing/selftests/openat2/
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
254 fdpath = fdreadlink(fd); in test_openat2_flags()
277 if (fdpath) in test_openat2_flags()
279 fd, fdpath, fdflags, in test_openat2_flags()
292 free(fdpath); in test_openat2_flags()
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()
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()
/Linux-v5.10/include/linux/
Dbinfmts.h59 const char *fdpath; /* generated filename for execveat */ member
/Linux-v5.10/fs/
Dexec.c1480 kfree(bprm->fdpath); in free_bprm()
1495 bprm->fdpath = kasprintf(GFP_KERNEL, "/dev/fd/%d", fd); in alloc_bprm()
1497 bprm->fdpath = kasprintf(GFP_KERNEL, "/dev/fd/%d/%s", in alloc_bprm()
1499 if (!bprm->fdpath) in alloc_bprm()
1502 bprm->filename = bprm->fdpath; in alloc_bprm()
1811 if (bprm->fdpath && in bprm_execve()