Home
last modified time | relevance | path

Searched refs:pathbuf (Results 1 - 25 of 26) sorted by relevance

12

/third_party/ltp/testcases/realtime/func/pi-tests/
H A Dtestpi-0.c74 char *pathbuf; in main() local
80 pathbuf = malloc(n); in main()
81 if (!pathbuf) in main()
83 confstr(_CS_GNU_LIBC_VERSION, pathbuf, n); in main()
85 printf("LIBC_VERSION: %s\n", pathbuf); in main()
86 free(pathbuf); in main()
89 pathbuf = malloc(n); in main()
90 if (!pathbuf) in main()
92 confstr(_CS_GNU_LIBPTHREAD_VERSION, pathbuf, n); in main()
94 printf("LIBPTHREAD_VERSION: %s\n", pathbuf); in main()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIO_test_confstr_001.cpp35 char *pathbuf = nullptr; in testcase() local
42 pathbuf = (char *)malloc(n); in testcase()
43 if (pathbuf == NULL) { in testcase()
46 confstr(_CS_PATH, pathbuf, n); in testcase()
47 ICUNIT_ASSERT_NOT_EQUAL(pathbuf, NULL, -1); in testcase()
48 free(pathbuf); in testcase()
49 pathbuf = NULL; in testcase()
/kernel/linux/linux-5.10/security/integrity/ima/
H A Dima_main.c82 char **pathbuf, const char **pathname, in mmap_violation_check()
92 if (!*pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in mmap_violation_check()
93 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
114 char **pathbuf, in ima_rdwr_violation_check()
141 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
204 char *pathbuf = NULL; in process_measurement() local
245 &pathbuf, &pathname, filename); in process_measurement()
315 rc = mmap_violation_check(func, file, &pathbuf, in process_measurement()
348 if (!pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement()
349 pathname = ima_d_path(&file->f_path, &pathbuf, filenam in process_measurement()
81 mmap_violation_check(enum ima_hooks func, struct file *file, char **pathbuf, const char **pathname, char *filename) mmap_violation_check() argument
111 ima_rdwr_violation_check(struct file *file, struct integrity_iint_cache *iint, int must_measure, char **pathbuf, const char **pathname, char *filename) ima_rdwr_violation_check() argument
436 char *pathbuf = NULL; ima_file_mprotect() local
[all...]
H A Dima_api.c392 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument
396 *pathbuf = __getname(); in ima_d_path()
397 if (*pathbuf) { in ima_d_path()
398 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
400 __putname(*pathbuf); in ima_d_path()
401 *pathbuf = NULL; in ima_d_path()
H A Dima.h280 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
/third_party/gn/src/gn/
H A Dfilesystem_utils.cc508 char* pathbuf = path->empty() ? nullptr : &(*path)[0]; in NormalizePath() local
514 if (!path->empty() && pathbuf[0] == '/') { in NormalizePath()
517 if (path->size() > 1 && pathbuf[1] == '/') { in NormalizePath()
528 if (pathbuf[src_i] == '.') { in NormalizePath()
529 if (src_i == 0 || IsSlash(pathbuf[src_i - 1])) { in NormalizePath()
535 pathbuf[dest_i++] = pathbuf[src_i++]; in NormalizePath()
554 pathbuf[dest_i++] = '.'; in NormalizePath()
555 pathbuf[dest_i++] = '.'; in NormalizePath()
557 pathbuf[dest_ in NormalizePath()
[all...]
/third_party/python/Python/
H A Ddynload_shlib.c60 char pathbuf[260]; in _PyImport_FindSharedFuncptr() local
65 PyOS_snprintf(pathbuf, sizeof(pathbuf), "./%-.255s", pathname); in _PyImport_FindSharedFuncptr()
66 pathname = pathbuf; in _PyImport_FindSharedFuncptr()
/kernel/linux/linux-6.6/security/integrity/ima/
H A Dima_main.c86 char **pathbuf, const char **pathname, in mmap_violation_check()
97 if (!*pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in mmap_violation_check()
98 *pathname = ima_d_path(&file->f_path, pathbuf, in mmap_violation_check()
119 char **pathbuf, in ima_rdwr_violation_check()
146 *pathname = ima_d_path(&file->f_path, pathbuf, filename); in ima_rdwr_violation_check()
214 char *pathbuf = NULL; in process_measurement() local
258 &pathbuf, &pathname, filename); in process_measurement()
329 rc = mmap_violation_check(func, file, &pathbuf, in process_measurement()
363 if (!pathbuf) /* ima_rdwr_violation possibly pre-fetched */ in process_measurement()
364 pathname = ima_d_path(&file->f_path, &pathbuf, filenam in process_measurement()
85 mmap_violation_check(enum ima_hooks func, struct file *file, char **pathbuf, const char **pathname, char *filename) mmap_violation_check() argument
116 ima_rdwr_violation_check(struct file *file, struct integrity_iint_cache *iint, int must_measure, char **pathbuf, const char **pathname, char *filename) ima_rdwr_violation_check() argument
473 char *pathbuf = NULL; ima_file_mprotect() local
[all...]
H A Dima_api.c432 const char *ima_d_path(const struct path *path, char **pathbuf, char *namebuf) in ima_d_path() argument
436 *pathbuf = __getname(); in ima_d_path()
437 if (*pathbuf) { in ima_d_path()
438 pathname = d_absolute_path(path, *pathbuf, PATH_MAX); in ima_d_path()
440 __putname(*pathbuf); in ima_d_path()
441 *pathbuf = NULL; in ima_d_path()
H A Dima_appraise.c709 char *path = NULL, *pathbuf = NULL; in validate_hash_algo() local
738 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in validate_hash_algo()
739 if (!pathbuf) in validate_hash_algo()
742 path = dentry_path(dentry, pathbuf, PATH_MAX); in validate_hash_algo()
747 kfree(pathbuf); in validate_hash_algo()
H A Dima.h286 const char *ima_d_path(const struct path *path, char **pathbuf, char *filename);
/third_party/musl/src/misc/
H A Dnftw.c151 char pathbuf[PATH_MAX+1];
160 memcpy(pathbuf, path, l+1);
163 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL);
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dnftw.c111 char pathbuf[PATH_MAX+1]; in nftw() local
120 memcpy(pathbuf, path, l+1); in nftw()
123 r = do_nftw(pathbuf, fn, fd_limit, flags, NULL); in nftw()
/kernel/linux/linux-5.10/drivers/firmware/tegra/
H A Dbpmp-debugfs.c374 char *buf, *pathbuf; in bpmp_populate_debugfs_inband() local
385 pathbuf = kzalloc(pathlen, GFP_KERNEL); in bpmp_populate_debugfs_inband()
386 if (!pathbuf) { in bpmp_populate_debugfs_inband()
415 len = snprintf(pathbuf, pathlen, "%s%s/", ppath, name); in bpmp_populate_debugfs_inband()
422 pathbuf); in bpmp_populate_debugfs_inband()
440 kfree(pathbuf); in bpmp_populate_debugfs_inband()
/kernel/linux/linux-5.10/kernel/cgroup/
H A Dcgroup-v1.c798 char *pathbuf, *agentbuf;
807 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
809 if (!pathbuf || !agentbuf)
818 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns);
823 argv[1] = pathbuf;
834 kfree(pathbuf);
/kernel/linux/linux-6.6/drivers/firmware/tegra/
H A Dbpmp-debugfs.c412 char *buf, *pathbuf; in bpmp_populate_debugfs_inband() local
423 pathbuf = kzalloc(pathlen, GFP_KERNEL); in bpmp_populate_debugfs_inband()
424 if (!pathbuf) { in bpmp_populate_debugfs_inband()
453 len = snprintf(pathbuf, pathlen, "%s%s/", ppath, name); in bpmp_populate_debugfs_inband()
460 pathbuf); in bpmp_populate_debugfs_inband()
478 kfree(pathbuf); in bpmp_populate_debugfs_inband()
/kernel/linux/linux-6.6/kernel/cgroup/
H A Dcgroup-v1.c789 char *pathbuf, *agentbuf;
798 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL);
800 if (!pathbuf || !agentbuf)
809 ret = cgroup_path_ns(cgrp, pathbuf, PATH_MAX, &init_cgroup_ns);
814 argv[1] = pathbuf;
825 kfree(pathbuf);
/third_party/ltp/testcases/kernel/mem/lib/
H A Dmem.c632 char pathbuf[PATH_MAX]; in path_exist() local
635 vsnprintf(pathbuf, sizeof(pathbuf), path, ap); in path_exist()
638 return access(pathbuf, F_OK) == 0; in path_exist()
/kernel/linux/linux-5.10/fs/
H A Dcoredump.c163 char *pathbuf, *path, *ptr; in cn_print_exe_file() local
170 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cn_print_exe_file()
171 if (!pathbuf) { in cn_print_exe_file()
176 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file()
190 kfree(pathbuf); in cn_print_exe_file()
/kernel/linux/linux-6.6/fs/
H A Dcoredump.c164 char *pathbuf, *path, *ptr; in cn_print_exe_file() local
171 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in cn_print_exe_file()
172 if (!pathbuf) { in cn_print_exe_file()
177 path = file_path(exe_file, pathbuf, PATH_MAX); in cn_print_exe_file()
191 kfree(pathbuf); in cn_print_exe_file()
/third_party/libuv/src/unix/
H A Dkqueue.c468 char pathbuf[MAXPATHLEN]; in uv__fs_event() local
484 if (fcntl(handle->event_watcher.fd, F_GETPATH, pathbuf) == 0) in uv__fs_event()
485 path = uv__basename_r(pathbuf); in uv__fs_event()
/third_party/node/deps/uv/src/unix/
H A Dkqueue.c471 char pathbuf[MAXPATHLEN]; in uv__fs_event() local
487 if (fcntl(handle->event_watcher.fd, F_GETPATH, pathbuf) == 0) in uv__fs_event()
488 path = uv__basename_r(pathbuf); in uv__fs_event()
/third_party/ffmpeg/libavformat/
H A Dhttp.c2048 char auth[1024], pathbuf[1024], *path; in http_proxy_open() local
2060 pathbuf, sizeof(pathbuf), uri); in http_proxy_open()
2062 path = pathbuf; in http_proxy_open()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
H A Df_mass_storage.c2759 char *pathbuf, *p; in fsg_common_create_lun() local
2811 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun()
2815 if (pathbuf) { in fsg_common_create_lun()
2816 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun()
2826 kfree(pathbuf); in fsg_common_create_lun()
/kernel/linux/linux-6.6/drivers/usb/gadget/function/
H A Df_mass_storage.c2876 char *pathbuf = NULL, *p = "(no medium)"; in fsg_common_create_lun() local
2928 pathbuf = kmalloc(PATH_MAX, GFP_KERNEL); in fsg_common_create_lun()
2929 if (pathbuf) { in fsg_common_create_lun()
2930 p = file_path(lun->filp, pathbuf, PATH_MAX); in fsg_common_create_lun()
2940 kfree(pathbuf); in fsg_common_create_lun()

Completed in 45 milliseconds

12