| /xnu-12377.61.12/bsd/net/ |
| H A D | pf_ruleset.c | 326 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 D | bsd_init.c | 302 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 D | imageboot.c | 126 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 D | chunklist.c | 97 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 D | system-version-compat.c | 76 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 D | persona.c | 42 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 D | test_file_helper.c | 35 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 D | perf_index.c | 62 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 D | arcade.c | 52 #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, ©); 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 D | pwrite_appendonly.c | 51 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 D | devfs_fdesc.c | 51 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 D | open_symlink.c | 43 static char template[MAXPATHLEN]; 72 char namebuf[MAXPATHLEN + 1]; 73 char namebuf2[MAXPATHLEN + 1];
|
| H A D | union_getdirentries.c | 54 static char template[MAXPATHLEN]; 89 char zero_path[MAXPATHLEN]; 90 char dir_path[MAXPATHLEN];
|
| H A D | sandbox_fstat.c | 41 static char template[MAXPATHLEN]; 122 char testdir_path[MAXPATHLEN];
|
| H A D | o_search.c | 30 static char g_testfile[MAXPATHLEN]; 60 snprintf(g_testfile, MAXPATHLEN, "%s/%s", tmpdir, TEST_FILE);
|
| H A D | chroot_unmount_stress.c | 50 static char template[MAXPATHLEN]; 52 static char chroot_path[MAXPATHLEN];
|
| H A D | unique.c | 38 static char template[MAXPATHLEN]; 39 static char testdir_path[MAXPATHLEN + 1]; 40 static char file_path[MAXPATHLEN];
|
| /xnu-12377.61.12/tests/ |
| H A D | libmalloc_apple_array.c | 125 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 D | posix_spawn_alt_rosetta_helper.c | 20 char path_buffer[MAXPATHLEN + 1] = {0}; in main() 29 err = proc_regionfilename(getpid(), address, path_buffer, MAXPATHLEN); in main()
|
| H A D | posix_sem.c | 138 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 D | routefs.h | 40 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 D | sched_test_utils.c | 605 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 D | overloaded_runqueue.c | 159 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 D | proc_info.h | 321 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 D | vfs_lookup.c | 296 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 …]
|