Home
last modified time | relevance | path

Searched refs:PATH_MAX (Results 1 – 25 of 569) sorted by relevance

12345678910>>...23

/external/ltp/testcases/kernel/syscalls/getcwd/
Dgetcwd04.c38 static char init_cwd[PATH_MAX];
43 char cur_cwd[PATH_MAX]; in verify_getcwd()
51 SAFE_GETCWD(cur_cwd, PATH_MAX); in verify_getcwd()
52 if (strncmp(init_cwd, cur_cwd, PATH_MAX)) { in verify_getcwd()
78 SAFE_GETCWD(init_cwd, PATH_MAX); in setup()
89 char c_name[PATH_MAX] = "testfile", n_name[PATH_MAX]; in do_child()
94 snprintf(n_name, PATH_MAX, "testfile%u", i++); in do_child()
96 strncpy(c_name, n_name, PATH_MAX); in do_child()
/external/ltp/testcases/kernel/syscalls/open/
Dopen14.c75 char path[PATH_MAX], tmp[PATH_MAX]; in test01()
98 snprintf(path, PATH_MAX, "/proc/self/fd/%d", fd); in test01()
99 SAFE_READLINK(cleanup, path, tmp, PATH_MAX); in test01()
132 char path[PATH_MAX]; in test02()
136 snprintf(path, PATH_MAX, "tst02_%d", i); in test02()
146 snprintf(path, PATH_MAX, "tst02_%d", i); in test02()
165 char path1[PATH_MAX], path2[PATH_MAX]; in link_tmp_file()
167 snprintf(path1, PATH_MAX, "/proc/self/fd/%d", fd); in link_tmp_file()
168 snprintf(path2, PATH_MAX, "tmpfile_%d", fd); in link_tmp_file()
180 char path[PATH_MAX]; in test03()
[all …]
/external/google-breakpad/src/common/linux/
Dsafe_readlink_unittest.cc48 char buffer[PATH_MAX]; in TEST()
55 char buffer2[PATH_MAX]; in TEST()
58 EXPECT_EQ(0, strncmp(buffer, buffer2, PATH_MAX)); in TEST()
65 char buffer[PATH_MAX]; in TEST()
70 char actual_path[PATH_MAX]; in TEST()
73 char buffer[PATH_MAX]; in TEST()
78 char buffer[PATH_MAX]; in TEST()
85 char buffer2[PATH_MAX]; in TEST()
88 EXPECT_EQ(0, strncmp(buffer, buffer2, PATH_MAX)); in TEST()
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat03.c86 char path[PATH_MAX], tmp[PATH_MAX]; in test01()
109 snprintf(path, PATH_MAX, "/proc/self/fd/%d", fd); in test01()
110 SAFE_READLINK(cleanup, path, tmp, PATH_MAX); in test01()
143 char path[PATH_MAX]; in test02()
147 snprintf(path, PATH_MAX, "tst02_%d", i); in test02()
157 snprintf(path, PATH_MAX, "tst02_%d", i); in test02()
176 char path1[PATH_MAX], path2[PATH_MAX]; in link_tmp_file()
178 snprintf(path1, PATH_MAX, "/proc/self/fd/%d", fd); in link_tmp_file()
179 snprintf(path2, PATH_MAX, "tmpfile_%d", fd); in link_tmp_file()
191 char path[PATH_MAX]; in test03()
[all …]
/external/ltp/lib/
Dtst_resource.c29 #ifndef PATH_MAX
31 #define PATH_MAX MAXPATHLEN macro
33 #define PATH_MAX 1024 macro
38 static char dataroot[PATH_MAX];
44 char curdir[PATH_MAX]; in tst_dataroot_init()
52 ret = snprintf(dataroot, PATH_MAX, "%s/testcases/data/%s", in tst_dataroot_init()
57 if (getcwd(curdir, PATH_MAX) == NULL) { in tst_dataroot_init()
64 ret = snprintf(dataroot, PATH_MAX, "%s/datafiles", startdir); in tst_dataroot_init()
67 if (ret < 0 || ret >= PATH_MAX) in tst_dataroot_init()
Dtst_tmpdir.c83 #ifndef PATH_MAX
85 #define PATH_MAX MAXPATHLEN macro
87 #define PATH_MAX 1024 macro
97 static char test_start_work_dir[PATH_MAX];
127 char dirobj[PATH_MAX]; in rmobj()
234 char template[PATH_MAX]; in tst_tmpdir()
256 snprintf(template, PATH_MAX, "%s/%.3sXXXXXX", env_tmpdir, TCID); in tst_tmpdir()
258 snprintf(template, PATH_MAX, "%s/%.3sXXXXXX", TEMPDIR, TCID); in tst_tmpdir()
/external/openssh/
Dsftp-realpath.c66 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; in sftp_realpath()
76 resolved = malloc(PATH_MAX); in sftp_realpath()
92 if (getcwd(resolved, PATH_MAX) == NULL) { in sftp_realpath()
96 strlcpy(resolved, ".", PATH_MAX); in sftp_realpath()
102 if (left_len >= sizeof(left) || resolved_len >= PATH_MAX) { in sftp_realpath()
127 if (resolved_len + 1 >= PATH_MAX) { in sftp_realpath()
157 resolved_len = strlcat(resolved, next_token, PATH_MAX); in sftp_realpath()
158 if (resolved_len >= PATH_MAX) { in sftp_realpath()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D5-1.c93 long PATH_MAX, NAME_MAX; in main() local
100 PATH_MAX = pathconf("/", _PC_PATH_MAX); in main()
103 output("PATH_MAX: %ld\n", PATH_MAX); in main()
106 if (PATH_MAX > 0) { in main()
108 sem_name = calloc(PATH_MAX + 1, sizeof(char)); in main()
118 sem_name[PATH_MAX] = '\0'; in main()
120 memset(sem_name + 1, 'P', PATH_MAX - 1); in main()
/external/ltp/testcases/kernel/syscalls/mount/
Dmount03.c70 static char path_name[PATH_MAX];
71 static char file[PATH_MAX];
141 snprintf(file, PATH_MAX, "%stmp", path_name); in test_rwflag()
157 snprintf(file, PATH_MAX, "%smynod_%d_%d", path_name, getpid(), in test_rwflag()
180 snprintf(file, PATH_MAX, "%stmp1", path_name); in test_rwflag()
200 snprintf(file, PATH_MAX, "%s%s", path_name, TEMP_FILE); in test_rwflag()
250 snprintf(file, PATH_MAX, "%stmp2", path_name); in test_rwflag()
264 snprintf(file, PATH_MAX, "%smount03_setuid_test", path_name); in test_rwflag()
292 snprintf(file, PATH_MAX, "%satime", path_name); in test_rwflag()
339 char path[PATH_MAX]; in setup()
[all …]
/external/python/cpython3/Include/
Dosdefs.h30 #ifndef PATH_MAX
31 #define PATH_MAX MAXPATHLEN macro
36 #if defined(PATH_MAX) && PATH_MAX > 1024
37 #define MAXPATHLEN PATH_MAX
/external/curl/src/
Dtool_doswin.c43 # undef PATH_MAX
44 # define PATH_MAX MAX_PATH macro
133 max_sanitized_len = PATH_MAX-1; in sanitize_file_name()
139 max_sanitized_len = (PATH_MAX-1 > 255) ? 255 : PATH_MAX-1; in sanitize_file_name()
313 char dos_name[PATH_MAX]; in msdosify()
332 if(strlen(file_name) > PATH_MAX-1 && in msdosify()
334 truncate_dryrun(file_name, PATH_MAX-1))) in msdosify()
465 char fname[PATH_MAX]; in rename_if_reserved_dos_device_name()
491 if(strlen(file_name) > PATH_MAX-1 && in rename_if_reserved_dos_device_name()
493 truncate_dryrun(file_name, PATH_MAX-1))) in rename_if_reserved_dos_device_name()
[all …]
/external/oss-fuzz/projects/firefox/
Dtarget.c14 char path[PATH_MAX] = {0}; in main()
18 if (!getcwd(path, PATH_MAX - 1)) { in main()
25 if (strlen(path) + strlen(*argv) + 40 >= PATH_MAX) { in main()
34 char ld_path[PATH_MAX] = {0}; in main()
44 char blacklist_path[PATH_MAX] = {0}; in main()
64 char ff_path[PATH_MAX] = {0}; in main()
/external/python/cpython2/Include/
Dosdefs.h42 #ifndef PATH_MAX
43 #define PATH_MAX MAXPATHLEN macro
48 #if defined(PATH_MAX) && PATH_MAX > 1024
49 #define MAXPATHLEN PATH_MAX
/external/ltp/lib/tests/
Dtst_tmpdir_test.c38 #ifndef PATH_MAX
40 #define PATH_MAX MAXPATHLEN macro
42 #define PATH_MAX 1024 macro
52 char *start_dir = getcwd(NULL, PATH_MAX); in main()
59 changed_dir = getcwd(NULL, PATH_MAX); in main()
Dtst_dataroot02.c34 if (strncmp(p1, p2, PATH_MAX) == 0) in cmp_paths()
43 char curdir[PATH_MAX], tmp[PATH_MAX]; in main()
45 if (getcwd(curdir, PATH_MAX) == NULL) in main()
51 snprintf(tmp, PATH_MAX, "%s/datafiles", curdir); in main()
Dtst_dataroot03.c34 if (strncmp(p1, p2, PATH_MAX) == 0) in cmp_paths()
43 char curdir[PATH_MAX], tmp[PATH_MAX]; in main()
45 if (getcwd(curdir, PATH_MAX) == NULL) in main()
51 snprintf(tmp, PATH_MAX, "%s/datafiles", curdir); in main()
/external/libxml2/
DtestModule.c26 #define PATH_MAX _MAX_PATH macro
33 #ifndef PATH_MAX
35 #define PATH_MAX _POSIX_PATH_MAX macro
37 #define PATH_MAX 4096 macro
44 xmlChar filename[PATH_MAX]; in main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dcgroup_helpers.c46 char path[PATH_MAX + 1]; in enable_all_controllers()
47 char buf[PATH_MAX]; in enable_all_controllers()
101 char cgroup_workdir[PATH_MAX - 24]; in setup_cgroup_environment()
145 char cgroup_procs_path[PATH_MAX + 1]; in join_cgroup_from_top()
180 char cgroup_path[PATH_MAX + 1]; in join_cgroup()
201 char cgroup_workdir[PATH_MAX + 1]; in cleanup_cgroup_environment()
220 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup()
253 char cgroup_workdir[PATH_MAX + 1]; in get_cgroup_id()
/external/oss-fuzz/projects/spidermonkey-ufi/
Dtarget.c14 char path[PATH_MAX] = {0}; in main()
18 if (!getcwd(path, PATH_MAX - 1)) { in main()
25 if (strlen(path) + strlen(*argv) + 40 >= PATH_MAX) { in main()
34 char ld_path[PATH_MAX] = {0}; in main()
61 char js_path[PATH_MAX] = {0}; in main()
/external/curl/lib/
Dcurl_path.h30 # undef PATH_MAX
31 # define PATH_MAX MAX_PATH macro
37 #ifndef PATH_MAX
38 #define PATH_MAX 1024 /* just an extra precaution since there are systems that macro
/external/mesa3d/src/util/
Dprocess_test.c34 #if DETECT_OS_WINDOWS && !defined(PATH_MAX)
36 #define PATH_MAX MAX_PATH macro
67 char path[PATH_MAX]; in test_util_get_process_exec_path()
68 if (util_get_process_exec_path(path, PATH_MAX) == 0) { in test_util_get_process_exec_path()
/external/arm-trusted-firmware/tools/fiptool/
Dwin_posix.h24 #ifndef PATH_MAX
26 # define PATH_MAX MAX_PATH macro
30 # define PATH_MAX _MAX_PATH macro
32 # define PATH_MAX 260 macro
/external/e2fsprogs/util/
Dsymlinks.c32 #ifndef PATH_MAX
33 #define PATH_MAX 1024 macro
123 static char dir[PATH_MAX]; in shorten_path()
168 static char lpath[PATH_MAX], new[PATH_MAX], abspath[PATH_MAX]; in fix_symlink()
325 static char path[PATH_MAX+2];
328 static char path[PATH_MAX+2], cwd[PATH_MAX+2];
342 if (NULL == getcwd(cwd,PATH_MAX)) {
/external/e2fsprogs/misc/
De4defrag.c164 char msg_buffer[PATH_MAX + 1]; /* pathname of the file */
167 static char lost_found_dir[PATH_MAX + 1];
269 char file_path[PATH_MAX + 1]; in is_ext4()
317 strncpy(lost_found_dir, mnt->mnt_dir, PATH_MAX); in is_ext4()
1054 char msg_buffer[PATH_MAX + 24]; in file_statistic()
1071 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_statistic()
1251 PATH_MAX)); in file_statistic()
1264 strnlen(file, PATH_MAX)); in file_statistic()
1417 char tmp_inode_name[PATH_MAX + 8]; in file_defrag()
1436 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_defrag()
[all …]
/external/strace/tests-m32/
Dtest_printpath.c74 if (p <= efault - PATH_MAX) in test_efault()
83 char *p = tail_alloc(PATH_MAX); in test_enametoolong()
84 memset(p, '/', PATH_MAX); in test_enametoolong()
87 PATH_MAX - 1, p, sprintrc(chdir(p))); in test_enametoolong()

12345678910>>...23