Home
last modified time | relevance | path

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

12345678910>>...17

/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/ltp/testcases/kernel/syscalls/getcwd/
Dgetcwd04.c47 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/
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/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/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/curl/src/
Dtool_doswin.c68 # undef PATH_MAX
69 # define PATH_MAX MAX_PATH macro
158 max_sanitized_len = PATH_MAX-1; in sanitize_file_name()
164 max_sanitized_len = (PATH_MAX-1 > 255) ? 255 : PATH_MAX-1; in sanitize_file_name()
338 char dos_name[PATH_MAX]; in msdosify()
357 if(strlen(file_name) > PATH_MAX-1 && in msdosify()
359 truncate_dryrun(file_name, PATH_MAX-1))) in msdosify()
490 char fname[PATH_MAX]; in rename_if_reserved_dos_device_name()
516 if(strlen(file_name) > PATH_MAX-1 && in rename_if_reserved_dos_device_name()
518 truncate_dryrun(file_name, PATH_MAX-1))) in rename_if_reserved_dos_device_name()
[all …]
/external/syslinux/com32/modules/
Dpwd.c24 #ifndef PATH_MAX
26 # define PATH_MAX NAME_MAX macro
28 # define PATH_MAX FILENAME_MAX macro
30 # define PATH_MAX 256 macro
37 char pwd[PATH_MAX], *pwdptr; in main()
39 pwdptr = getcwd(pwd, PATH_MAX); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D5-1.c95 long PATH_MAX, NAME_MAX; in main() local
102 PATH_MAX = pathconf("/", _PC_PATH_MAX); in main()
105 output("PATH_MAX: %ld\n", PATH_MAX); in main()
108 if (PATH_MAX > 0) { in main()
110 sem_name = calloc(PATH_MAX + 1, sizeof(char)); in main()
120 sem_name[PATH_MAX] = '\0'; in main()
122 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 …]
Dmount06.c55 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/python/cpython3/Include/
Dosdefs.h26 #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/
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/curl/lib/
Dcurl_path.h28 # undef PATH_MAX
29 # define PATH_MAX MAX_PATH macro
35 #ifndef PATH_MAX
36 #define PATH_MAX 1024 /* just an extra precaution since there are systems that macro
/external/e2fsprogs/misc/
De4defrag.c162 char msg_buffer[PATH_MAX + 1]; /* pathname of the file */
165 static char lost_found_dir[PATH_MAX + 1];
267 char file_path[PATH_MAX + 1]; in is_ext4()
315 strncpy(lost_found_dir, mnt->mnt_dir, PATH_MAX); in is_ext4()
1049 char msg_buffer[PATH_MAX + 24]; in file_statistic()
1064 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_statistic()
1244 PATH_MAX)); in file_statistic()
1257 strnlen(file, PATH_MAX)); in file_statistic()
1410 char tmp_inode_name[PATH_MAX + 8]; in file_defrag()
1427 !memcmp(file, lost_found_dir, strnlen(lost_found_dir, PATH_MAX))) { in file_defrag()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/
Dcgroup_helpers.c46 char cgroup_workdir[PATH_MAX + 1]; in setup_cgroup_environment()
87 char cgroup_procs_path[PATH_MAX + 1]; in join_cgroup_from_top()
122 char cgroup_path[PATH_MAX + 1]; in join_cgroup()
143 char cgroup_workdir[PATH_MAX + 1]; in cleanup_cgroup_environment()
162 char cgroup_path[PATH_MAX + 1]; in create_and_get_cgroup()
/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/libvncserver/libvncserver/tightvnc-filetransfer/
Dhandlefiletransferrequest.c51 char ftproot[PATH_MAX];
110 if((path == NULL) || (strlen(path) == 0) || (strlen(path) > (PATH_MAX - 1))) { in SetFtpRoot()
139 memset(ftproot, 0, PATH_MAX); in SetFtpRoot()
200 char p[PATH_MAX]; in ConvertPath()
201 memset(p, 0, PATH_MAX); in ConvertPath()
205 (strlen(path)+strlen(ftproot) > PATH_MAX - 1) ) { in ConvertPath()
213 memset(path, 0, PATH_MAX); in ConvertPath()
259 char path[PATH_MAX]; /* PATH_MAX has the value 4096 and is defined in limits.h */ in HandleFileListRequest()
263 memset(path, 0, PATH_MAX); in HandleFileListRequest()
284 (msg.flr.dirNameSize > (PATH_MAX - 1))) { in HandleFileListRequest()
[all …]
/external/kmod/testsuite/
Dpath.c46 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/
Dnamespace.c19 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/valgrind/none/tests/solaris/
Dproc_aout.c12 char buf[PATH_MAX]; in test_readlink()
33 char buf[PATH_MAX]; in test_readlinkat()
53 char cwd[PATH_MAX]; in main()
54 char path[PATH_MAX]; in main()

12345678910>>...17