Home
last modified time | relevance | path

Searched refs:MAXPATHLEN (Results 1 – 25 of 121) sorted by relevance

12345

/xnu-12377.61.12/bsd/net/
H A Dpf_ruleset.c326 p = (char *__bidi_indexable) rs_malloc_data(MAXPATHLEN); in pf_find_or_create_ruleset()
327 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
344 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
346 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
355 MAXPATHLEN - PF_ANCHOR_NAME_SIZE - 1)) { in pf_find_or_create_ruleset()
356 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
361 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
377 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
392 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
412 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
[all …]
/xnu-12377.61.12/bsd/kern/
H A Dbsd_init.c302 char dyld_alt_path[MAXPATHLEN];
460 if (PE_parse_boot_argn("rd", dev_path, MAXPATHLEN)) { in bsd_rooted_ramdisk()
1360 len = strlcpy(dmgbasepath, "/System/Volumes/Recovery/", MAXPATHLEN); in bsd_find_basesystem_dmg()
1361 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1372 char boot_obj_path[MAXPATHLEN] = ""; in bsd_find_basesystem_dmg()
1379 len = strlcat(dmgbasepath, boot_obj_path, MAXPATHLEN); in bsd_find_basesystem_dmg()
1380 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1385 len = strlcat(dmgbasepath, "/usr/standalone/firmware/", MAXPATHLEN); in bsd_find_basesystem_dmg()
1386 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1392 len = strlcpy(dmgpath, dmgbasepath, MAXPATHLEN); in bsd_find_basesystem_dmg()
[all …]
H A Dimageboot.c126 if (!(PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) || in imageboot_desired()
128 PE_parse_boot_argn("arp0", root_path, MAXPATHLEN) || in imageboot_desired()
130 PE_parse_boot_argn("rp", root_path, MAXPATHLEN) || in imageboot_desired()
131 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) || in imageboot_desired()
132 PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN))) { in imageboot_desired()
167 if (!(PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) || in imageboot_needed()
168 PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN))) { in imageboot_needed()
1065 if (PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN) == TRUE) { in imageboot_setup_new()
1075 if (PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN) == FALSE && in imageboot_setup_new()
1076 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) == FALSE) { in imageboot_setup_new()
[all …]
H A Dchunklist.c97 construct_chunklist_path(char path[static MAXPATHLEN], const char *root_path) in construct_chunklist_path() argument
101 len = strnlen(root_path, MAXPATHLEN); in construct_chunklist_path()
102 if (len < MAXPATHLEN && len > strlen(".dmg")) { in construct_chunklist_path()
109 len = strlcpy(path, root_path, MAXPATHLEN); in construct_chunklist_path()
110 if (len >= MAXPATHLEN) { in construct_chunklist_path()
116 len = strlcat(path, ".chunklist", MAXPATHLEN); in construct_chunklist_path()
117 if (len >= MAXPATHLEN) { in construct_chunklist_path()
/xnu-12377.61.12/libsyscall/wrappers/
H A Dsystem-version-compat.c76 size_t path_str_len = strnlen(orig_path, MAXPATHLEN); in _system_version_compat_check_path_suffix()
92 if (path_str_len == MAXPATHLEN) { in _system_version_compat_check_path_suffix()
97 if ((compat_len - SYSTEM_VERSION_PLIST_FILENAMELEN) > (MAXPATHLEN - path_str_len - 1)) { in _system_version_compat_check_path_suffix()
147 char new_path[MAXPATHLEN]; in _system_version_compat_open_shim()
165 size_t newpathlen = strnlen(new_path, MAXPATHLEN); in _system_version_compat_open_shim()
199 …at(new_path, SYSTEM_VERSION_COMPAT_PLIST_FILENAME(PLAT_PREFIX_IOS, COMPAT_SUFFIX_IOS), MAXPATHLEN); in _system_version_compat_open_shim()
201 …ew_path, SYSTEM_VERSION_COMPAT_PLIST_FILENAME(PLAT_PREFIX_MACOS, COMPAT_SUFFIX_MACOS), MAXPATHLEN); in _system_version_compat_open_shim()
H A Dpersona.c42 kpersona_palloc(struct kpersona_info *info, uid_t *id, char path[MAXPATHLEN]) in kpersona_palloc() argument
63 kpersona_getpath(uid_t id, char path[MAXPATHLEN]) in kpersona_getpath() argument
/xnu-12377.61.12/tools/tests/perf_index/
H A Dtest_file_helper.c35 char filepath[MAXPATHLEN]; in test_file_create()
38 snprintf(filepath, MAXPATHLEN, "%s/file_create-%d-%lld", path, thread_id, i); in test_file_create()
46 snprintf(filepath, MAXPATHLEN, "%s/file_create-%d-%lld", path, thread_id, i); in test_file_create()
58 char filepath[MAXPATHLEN]; in test_file_read_setup()
94 char filepath[MAXPATHLEN]; in test_file_read()
129 char filepath[MAXPATHLEN]; in test_file_read_cleanup()
143 char filepath[MAXPATHLEN]; in test_file_write_setup()
200 char filepath[MAXPATHLEN]; in test_file_write_cleanup()
H A Dperf_index.c62 char binpath[MAXPATHLEN]; in find_test()
71 snprintf(test_path, MAXPATHLEN, "%s/perfindex-%s.dylib", dirpath, test_name); in find_test()
166 char test_path[MAXPATHLEN]; in main()
/xnu-12377.61.12/osfmk/kern/
H A Darcade.c52 #if !defined(MAXPATHLEN)
53 #define MAXPATHLEN 4096 macro
311 path = kalloc_data(MAXPATHLEN, Z_WAITOK | Z_ZERO); in arcade_ast()
312 retval = proc_pidpathinfo_internal(p, 0, path, MAXPATHLEN, NULL); in arcade_ast()
314 kr = vm_map_copyin(kernel_map, (vm_map_address_t)path, MAXPATHLEN, FALSE, &copy); in arcade_ast()
316 kfree_data(path, MAXPATHLEN); in arcade_ast()
322 kr = __MAKING_UPCALL_TO_ARCADE_VALIDATION_SERVICE__(port, copy, MAXPATHLEN, offset, &should_kill); in arcade_ast()
/xnu-12377.61.12/tests/vfs/
H A Dpwrite_appendonly.c51 static char g_testfile[MAXPATHLEN];
52 static char g_testdir[MAXPATHLEN];
72 snprintf(g_testdir, MAXPATHLEN, "%s/%s", tmpdir, TEST_DIR); in create_test_file()
77 snprintf(g_testfile, MAXPATHLEN, "%s/%s", g_testdir, TEST_FILE); in create_test_file()
H A Ddevfs_fdesc.c51 char path[MAXPATHLEN]; in docheck()
129 char fdesc_path[MAXPATHLEN];
130 char temp_dir[MAXPATHLEN];
169 char fdesc_path[MAXPATHLEN];
170 char temp_dir[MAXPATHLEN];
H A Dopen_symlink.c43 static char template[MAXPATHLEN];
72 char namebuf[MAXPATHLEN + 1];
73 char namebuf2[MAXPATHLEN + 1];
H A Dunion_getdirentries.c54 static char template[MAXPATHLEN];
89 char zero_path[MAXPATHLEN];
90 char dir_path[MAXPATHLEN];
H A Dsandbox_fstat.c41 static char template[MAXPATHLEN];
122 char testdir_path[MAXPATHLEN];
H A Do_search.c30 static char g_testfile[MAXPATHLEN];
60 snprintf(g_testfile, MAXPATHLEN, "%s/%s", tmpdir, TEST_FILE);
H A Dchroot_unmount_stress.c50 static char template[MAXPATHLEN];
52 static char chroot_path[MAXPATHLEN];
H A Dunique.c38 static char template[MAXPATHLEN];
39 static char testdir_path[MAXPATHLEN + 1];
40 static char file_path[MAXPATHLEN];
/xnu-12377.61.12/tests/
H A Dlibmalloc_apple_array.c125 char stdout_path[MAXPATHLEN] = "apple_array.txt"; in get_apple_array()
126 dt_resultfile(stdout_path, MAXPATHLEN); in get_apple_array()
128 char binary_path[MAXPATHLEN], binary_dir[MAXPATHLEN]; in get_apple_array()
137 uint32_t name_size = MAXPATHLEN; in get_apple_array()
143 snprintf(binary_path, MAXPATHLEN, "%s/%s", binary_dir, filename); in get_apple_array()
H A Dposix_spawn_alt_rosetta_helper.c20 char path_buffer[MAXPATHLEN + 1] = {0}; in main()
29 err = proc_regionfilename(getpid(), address, path_buffer, MAXPATHLEN); in main()
H A Dposix_sem.c138 char binpath[MAXPATHLEN]; in find_helper()
147 snprintf(test_path, MAXPATHLEN, "%s/posix_sem_namespace_helper_team%d", dirpath, team_id); in find_helper()
202 char team0_helper[MAXPATHLEN], team1_helper[MAXPATHLEN];
/xnu-12377.61.12/bsd/miscfs/routefs/
H A Droutefs.h40 char route_path[MAXPATHLEN];/* path name of the target route */
45 char route_path[MAXPATHLEN];/* path name of the target route */
/xnu-12377.61.12/tests/sched/
H A Dsched_test_utils.c605 char *name = (char *)malloc(sizeof(char) * MAXPATHLEN); in begin_collect_trace_fmt()
608 vsnprintf(name, MAXPATHLEN, fmt, args); in begin_collect_trace_fmt()
611 char *full_filename = (char *)malloc(sizeof(char) * MAXPATHLEN); in begin_collect_trace_fmt()
612 memset(full_filename, 0, MAXPATHLEN); in begin_collect_trace_fmt()
613 snprintf(full_filename, MAXPATHLEN, "%s/%s.atrc", dt_tmpdir(), handle->short_name); in begin_collect_trace_fmt()
615 char *filename = (char *)malloc(sizeof(char) * MAXPATHLEN); in begin_collect_trace_fmt()
616 memset(filename, 0, MAXPATHLEN); in begin_collect_trace_fmt()
617 snprintf(filename, MAXPATHLEN, "%s.atrc", handle->short_name); in begin_collect_trace_fmt()
728 char compressed_path[MAXPATHLEN]; in save_collected_trace()
729 snprintf(compressed_path, MAXPATHLEN, "%s.aar", trace_state->short_name); in save_collected_trace()
[all …]
H A Doverloaded_runqueue.c159 char compressed_path[MAXPATHLEN]; in save_collected_ktrace()
160 snprintf(compressed_path, MAXPATHLEN, "%s.tar.gz", ktrace_file_short_name); in save_collected_ktrace()
269 char filepath_arr[MAXPATHLEN] = "";
/xnu-12377.61.12/bsd/sys/
H A Dproc_info.h321 char vip_path[MAXPATHLEN]; /* tail end of it */
342 char prpo_path[MAXPATHLEN];
581 char psem_name[MAXPATHLEN];
594 char pshm_name[MAXPATHLEN];
754 #define PROC_PIDPATHINFO_SIZE (MAXPATHLEN)
755 #define PROC_PIDPATHINFO_MAXSIZE (4*MAXPATHLEN)
/xnu-12377.61.12/bsd/vfs/
H A Dvfs_lookup.c296 cnp->cn_pnbuf = namei_alloc(MAXPATHLEN); in namei()
298 cnp->cn_pnlen = MAXPATHLEN; in namei()
399 realpathlen = MAXPATHLEN; in namei()
1712 path = namei_alloc(MAXPATHLEN);
1719 pp = path + (MAXPATHLEN - 1);
1756 namei_free(path, MAXPATHLEN);
1964 if (!(cnp->cn_flags & HASBUF) || cnp->cn_pnlen == MAXPATHLEN) {
1965 cplen = MAXPATHLEN;
1976 uio_addiov(auio, CAST_USER_ADDR_T(cp), MAXPATHLEN);
1983 assert(resid <= MAXPATHLEN);
[all …]

12345