/third_party/ltp/testcases/kernel/syscalls/getcwd/ |
H A D | getcwd04.c | 38 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() 75 SAFE_GETCWD(init_cwd, PATH_MAX); in setup() 86 char c_name[PATH_MAX] = "testfile", n_name[PATH_MAX]; in do_child() 91 snprintf(n_name, PATH_MAX, "testfile%u", i++); in do_child() 93 strncpy(c_name, n_name, PATH_MAX); in do_child()
|
/third_party/ltp/testcases/kernel/syscalls/openat/ |
H A D | openat03.c | 85 char path[PATH_MAX], tmp[PATH_MAX]; in test01() 108 snprintf(path, PATH_MAX, "/proc/self/fd/%d", fd); in test01() 109 SAFE_READLINK(cleanup, path, tmp, PATH_MAX); in test01() 142 char path[PATH_MAX]; in test02() 146 snprintf(path, PATH_MAX, "tst02_%d", i); in test02() 156 snprintf(path, PATH_MAX, "tst02_%d", i); in test02() 175 char path1[PATH_MAX], path2[PATH_MAX]; in link_tmp_file() 177 snprintf(path1, PATH_MAX, "/pro in link_tmp_file() [all...] |
/third_party/ltp/testcases/kernel/syscalls/open/ |
H A D | open14.c | 74 char path[PATH_MAX], tmp[PATH_MAX]; in test01() 97 snprintf(path, PATH_MAX, "/proc/self/fd/%d", fd); in test01() 98 SAFE_READLINK(cleanup, path, tmp, PATH_MAX); in test01() 131 char path[PATH_MAX]; in test02() 135 snprintf(path, PATH_MAX, "tst02_%d", i); in test02() 145 snprintf(path, PATH_MAX, "tst02_%d", i); in test02() 164 char path1[PATH_MAX], path2[PATH_MAX]; in link_tmp_file() 166 snprintf(path1, PATH_MAX, "/pro in link_tmp_file() [all...] |
/third_party/ltp/lib/ |
H A 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()
|
H A 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]; 150 char dirobj[PATH_MAX]; in purge_dir() 151 static char err_msg[PATH_MAX + 1280]; in purge_dir() 197 static char err_msg[PATH_MAX + 1280]; in rmobj() 262 char template[PATH_MAX]; in tst_tmpdir() 272 snprintf(template, PATH_MAX, "%s/LTP_%.3sXXXXXX", env_tmpdir, TCID); in tst_tmpdir()
|
H A D | tst_device.c | 36 static char dev_path[PATH_MAX]; 85 char buf[PATH_MAX]; in tst_find_free_loopdev() 426 char line[PATH_MAX]; in tst_is_mounted() 449 char cdir[PATH_MAX], mpath[PATH_MAX]; in tst_is_mounted_at_tmpdir() 452 if (!getcwd(cdir, PATH_MAX)) { in tst_is_mounted_at_tmpdir() 457 ret = snprintf(mpath, PATH_MAX, "%s/%s", cdir, path); in tst_is_mounted_at_tmpdir() 458 if (ret < 0 || ret >= PATH_MAX) { in tst_is_mounted_at_tmpdir() 461 PATH_MAX, ret); in tst_is_mounted_at_tmpdir() 496 char dev_stat_path[PATH_MAX]; in tst_dev_bytes_written() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
H A D | 5-1.c | 20 * name length is greater than PATH_MAX or a component length is greater than 24 * -> If PATH_MAX is positive, 25 * -> create a semaphore with a name bigger than PATH_MAX. 84 #ifdef PATH_MAX 85 #undef PATH_MAX macro 101 long PATH_MAX, NAME_MAX; in main() local 107 /* Get PATH_MAX value */ in main() 108 PATH_MAX = pathconf("/", _PC_PATH_MAX); in main() 111 output("PATH_MAX: %ld\n", PATH_MAX); in main() [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | faccessat.c | 33 char ptr[PATH_MAX] = {0}; in faccessat_0100() 50 char ptr[PATH_MAX] = {0}; in faccessat_0200() 66 char ptr[PATH_MAX] = {0}; in faccessat_0300() 83 char ptr[PATH_MAX] = {0}; in faccessat_0400() 100 char ptr[PATH_MAX] = {0}; in faccessat_0500() 120 char ptr[PATH_MAX] = {0}; in faccessat_0600() 137 char ptr[PATH_MAX] = {0}; in faccessat_0700() 154 char ptr[PATH_MAX] = {0}; in faccessat_0800() 171 char ptr[PATH_MAX] = {0}; in faccessat_0900() 190 char ptr[PATH_MAX] in faccessat_1000() [all...] |
/third_party/python/Include/ |
H A D | osdefs.h | 30 #ifndef PATH_MAX 31 #define PATH_MAX MAXPATHLEN macro 36 #if defined(PATH_MAX) && PATH_MAX > 1024 37 #define MAXPATHLEN PATH_MAX
|
/third_party/rust/crates/rustix/tests/fs/ |
H A D | long_paths.rs | 10 const PATH_MAX: usize = libc::PATH_MAX as usize; in test_long_paths() consts 12 const PATH_MAX: usize = linux_raw_sys::general::PATH_MAX as usize; in test_long_paths() consts 17 for _ in 0..PATH_MAX / 5 { in test_long_paths() 22 for _ in 0..PATH_MAX / 4 { in test_long_paths()
|
/third_party/ltp/lib/tests/ |
H A 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()
|
H A 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()
|
H A 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()
|
/third_party/curl/src/ |
H A D | tool_doswin.c | 46 # undef PATH_MAX macro 47 # define PATH_MAX MAX_PATH macro 136 max_sanitized_len = PATH_MAX-1; in sanitize_file_name() 140 FILENAME_MAX is often the same as PATH_MAX, in other words it is 260 and in sanitize_file_name() 142 max_sanitized_len = (PATH_MAX-1 > 255) ? 255 : PATH_MAX-1; in sanitize_file_name() 316 char dos_name[PATH_MAX]; in msdosify() 335 if(strlen(file_name) > PATH_MAX-1 && in msdosify() 337 truncate_dryrun(file_name, PATH_MAX-1))) in msdosify() 468 char fname[PATH_MAX]; in rename_if_reserved_dos_device_name() [all...] |
/third_party/cups-filters/filter/foomatic-rip/ |
H A D | foomaticrip.h | 78 #ifndef PATH_MAX 79 #define PATH_MAX 4096 macro 110 extern char cupsfilterpath[PATH_MAX]; 116 extern char gspath[PATH_MAX]; 117 extern char echopath[PATH_MAX];
|
H A D | pdf.c | 116 static int pdf_extract_pages(char filename[PATH_MAX], in pdf_extract_pages() 122 char filename_arg[PATH_MAX], first_arg[50], last_arg[50]; in pdf_extract_pages() 127 snprintf(filename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir()); in pdf_extract_pages() 132 snprintf(filename_arg, PATH_MAX, "-sOutputFile=%s", filename); in pdf_extract_pages() 160 char tmpfile[PATH_MAX]; in render_pages_with_generic_command() 293 char tmpfilename[PATH_MAX] = ""; in print_pdf() 303 snprintf(tmpfilename, PATH_MAX, "%s/foomatic-XXXXXX", temp_dir()); in print_pdf()
|
H A D | spooler.c | 43 char path [PATH_MAX] = ""; in init_cups() 54 strncpy(path, getenv("CUPS_FONTPATH"), PATH_MAX - 1); in init_cups() 56 strncpy(path, getenv("CUPS_DATADIR"), PATH_MAX - 1); in init_cups() 57 strncat(path, "/fonts", PATH_MAX - strlen(path) - 1); in init_cups() 60 strncat(path, ":", PATH_MAX - strlen(path) - 1); in init_cups() 61 strncat(path, getenv("GS_LIB"), PATH_MAX - strlen(path) - 1); in init_cups() 199 char user_default_path [PATH_MAX]; in init_direct()
|
/third_party/curl/lib/ |
H A D | curl_path.h | 32 # undef PATH_MAX macro 33 # define PATH_MAX MAX_PATH macro 39 #ifndef PATH_MAX 40 #define PATH_MAX 1024 /* just an extra precaution since there are systems that macro
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount07.c | 34 static char test_file[PATH_MAX]; 35 static char link_file[PATH_MAX]; 36 static char temp_link_file[PATH_MAX]; 119 snprintf(test_file, PATH_MAX, "%s/%s/test_file", tst_get_tmpdir(), in setup() 121 snprintf(link_file, PATH_MAX, "%s/%s/link_file", tst_get_tmpdir(), in setup() 123 snprintf(temp_link_file, PATH_MAX, "%s/%s/temp_link_file", in setup()
|
H A D | mount03.c | 44 static char file[PATH_MAX]; 45 static char dir[PATH_MAX]; 51 snprintf(file, PATH_MAX, "%s/rdonly", MNTPOINT); in test_rdonly() 57 snprintf(file, PATH_MAX, "%s/nodev", MNTPOINT); in test_nodev() 65 snprintf(file, PATH_MAX, "%s/noexec", MNTPOINT); in test_noexec() 73 snprintf(file, PATH_MAX, "%s/remount", MNTPOINT); in test_remount() 108 snprintf(file, PATH_MAX, "%s/noatime", MNTPOINT); in test_file_dir_noatime() 111 snprintf(dir, PATH_MAX, "%s/nodiratime", MNTPOINT); in test_file_dir_noatime()
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/ |
H A D | lstat.c | 34 char ptr[PATH_MAX] = {0}; in lstat_0100() 56 char ptr[PATH_MAX] = {0}; in lstat_time64_0100() 91 char ptr[PATH_MAX] = {0}; in lstat_0300() 92 char ptrlink[PATH_MAX] = {0}; in lstat_0300() 97 char cmd[PATH_MAX] = {0}; in lstat_0300()
|
/third_party/node/deps/openssl/openssl/fuzz/ |
H A D | test-corpus.c | 25 #if defined(_WIN32) && defined(_MAX_PATH) && !defined(PATH_MAX) 26 # define PATH_MAX _MAX_PATH macro 29 #ifndef PATH_MAX 30 # define PATH_MAX 4096 macro 79 pathname = malloc(PATH_MAX); in main()
|
/third_party/openssl/fuzz/ |
H A D | test-corpus.c | 25 #if defined(_WIN32) && defined(_MAX_PATH) && !defined(PATH_MAX) 26 # define PATH_MAX _MAX_PATH macro 29 #ifndef PATH_MAX 30 # define PATH_MAX 4096 macro 79 pathname = malloc(PATH_MAX); in main()
|
/third_party/libwebsockets/win32port/dirent/ |
H A D | dirent-win32.h | 157 #if !defined(PATH_MAX) 158 # define PATH_MAX MAX_PATH macro 213 #define _D_ALLOC_NAMLEN(p) ((PATH_MAX)+1) 239 wchar_t d_name[PATH_MAX+1]; 279 char d_name[PATH_MAX+1]; 492 * to PATH_MAX characters and zero-terminate the buffer. in _wreaddir_r() 495 while (n < PATH_MAX && datap->cFileName[n] != 0) { in _wreaddir_r() 695 wchar_t wname[PATH_MAX + 1]; in opendir() 700 &n, wname, PATH_MAX + 1, dirname, PATH_MAX in opendir() [all...] |
/third_party/mesa3d/src/util/tests/ |
H A D | process_test.c | 34 #if DETECT_OS_WINDOWS && !defined(PATH_MAX) 36 #define PATH_MAX MAX_PATH macro 81 char path[PATH_MAX]; in test_util_get_process_exec_path() 82 if (util_get_process_exec_path(path, PATH_MAX) == 0) { in test_util_get_process_exec_path()
|