/external/ltp/testcases/kernel/syscalls/open/ |
D | open14.c | 75 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/ltp/testcases/kernel/syscalls/getcwd/ |
D | getcwd04.c | 47 static char init_cwd[PATH_MAX]; 52 char cur_cwd[PATH_MAX]; in verify_getcwd() 60 SAFE_GETCWD(cur_cwd, PATH_MAX); in verify_getcwd() 61 if (strncmp(init_cwd, cur_cwd, PATH_MAX)) { in verify_getcwd() 87 SAFE_GETCWD(init_cwd, PATH_MAX); in setup() 98 char c_name[PATH_MAX] = "testfile", n_name[PATH_MAX]; in do_child() 103 snprintf(n_name, PATH_MAX, "testfile%u", i++); in do_child() 105 strncpy(c_name, n_name, PATH_MAX); in do_child()
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat03.c | 86 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/google-breakpad/src/common/linux/ |
D | safe_readlink_unittest.cc | 48 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/lib/ |
D | tst_resource.c | 29 #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()
|
D | tst_tmpdir.c | 83 #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/openbsd-compat/ |
D | realpath.c | 68 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; in realpath() 78 resolved = malloc(PATH_MAX); in realpath() 94 if (getcwd(resolved, PATH_MAX) == NULL) { in realpath() 98 strlcpy(resolved, ".", PATH_MAX); in realpath() 104 if (left_len >= sizeof(left) || resolved_len >= PATH_MAX) { in realpath() 129 if (resolved_len + 1 >= PATH_MAX) { in realpath() 159 resolved_len = strlcat(resolved, next_token, PATH_MAX); in realpath() 160 if (resolved_len >= PATH_MAX) { in realpath()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
D | 5-1.c | 93 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/ |
D | mount03.c | 70 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 …]
|
D | mount06.c | 55 static char path_name[PATH_MAX]; 56 static char mntpoint_src[PATH_MAX]; 57 static char mntpoint_des[PATH_MAX]; 145 snprintf(mntpoint_src, PATH_MAX, "%s/%s", path_name, MNTPOINT_SRC); in setup() 146 snprintf(mntpoint_des, PATH_MAX, "%s/%s", path_name, MNTPOINT_DES); in setup()
|
/external/curl/src/ |
D | tool_doswin.c | 69 # undef PATH_MAX 70 # define PATH_MAX MAX_PATH macro 159 max_sanitized_len = PATH_MAX-1; in sanitize_file_name() 165 max_sanitized_len = (PATH_MAX-1 > 255) ? 255 : PATH_MAX-1; in sanitize_file_name() 339 char dos_name[PATH_MAX]; in msdosify() 358 if(strlen(file_name) > PATH_MAX-1 && in msdosify() 360 truncate_dryrun(file_name, PATH_MAX-1))) in msdosify() 491 char fname[PATH_MAX]; in rename_if_reserved_dos_device_name() 517 if(strlen(file_name) > PATH_MAX-1 && in rename_if_reserved_dos_device_name() 519 truncate_dryrun(file_name, PATH_MAX-1))) in rename_if_reserved_dos_device_name() [all …]
|
/external/python/cpython3/Include/ |
D | osdefs.h | 26 #ifndef PATH_MAX 27 #define PATH_MAX MAXPATHLEN macro 32 #if defined(PATH_MAX) && PATH_MAX > 1024 33 #define MAXPATHLEN PATH_MAX
|
/external/python/cpython2/Include/ |
D | osdefs.h | 42 #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/ |
D | tst_tmpdir_test.c | 38 #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()
|
D | tst_dataroot02.c | 34 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()
|
D | tst_dataroot03.c | 34 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/ |
D | testModule.c | 26 #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/curl/lib/ |
D | curl_path.h | 30 # 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/e2fsprogs/misc/ |
D | e4defrag.c | 164 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() 1051 char msg_buffer[PATH_MAX + 24]; in file_statistic() 1066 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_statistic() 1246 PATH_MAX)); in file_statistic() 1259 strnlen(file, PATH_MAX)); in file_statistic() 1412 char tmp_inode_name[PATH_MAX + 8]; in file_defrag() 1429 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_defrag() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 47 char cgroup_workdir[PATH_MAX + 1]; in setup_cgroup_environment() 88 char cgroup_procs_path[PATH_MAX + 1]; in join_cgroup_from_top() 123 char cgroup_path[PATH_MAX + 1]; in join_cgroup() 144 char cgroup_workdir[PATH_MAX + 1]; in cleanup_cgroup_environment() 163 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup() 196 char cgroup_workdir[PATH_MAX + 1]; in get_cgroup_id()
|
/external/e2fsprogs/util/ |
D | symlinks.c | 32 #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/kmod/testsuite/ |
D | path.c | 46 static const char *trap_path(const char *path, char buf[PATH_MAX * 2]) in trap_path() 55 if (len + rootpathlen > PATH_MAX * 2) { in trap_path() 105 char buf[PATH_MAX * 2]; \ 122 char buf[PATH_MAX * 2]; \ 139 char buf[PATH_MAX * 2]; \ 169 char buf[PATH_MAX * 2]; \
|
/external/iproute2/lib/ |
D | namespace.c | 19 char etc_netns_path[PATH_MAX]; in bind_etc() 20 char netns_name[PATH_MAX]; in bind_etc() 21 char etc_name[PATH_MAX]; in bind_etc() 47 char net_path[PATH_MAX]; in netns_switch() 93 char pathbuf[PATH_MAX]; in netns_get_fd()
|
/external/strace/tests/ |
D | test_printpath.c | 74 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()
|
/external/strace/tests-m32/ |
D | test_printpath.c | 74 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()
|