Home
last modified time | relevance | path

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

1234

/xnu-8020.101.4/bsd/net/
H A Dpf_ruleset.c263 p = (char *)rs_malloc_data(MAXPATHLEN); in pf_find_or_create_ruleset()
264 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
277 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
279 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
288 MAXPATHLEN - PF_ANCHOR_NAME_SIZE - 1)) { in pf_find_or_create_ruleset()
289 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
294 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
311 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
325 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
344 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
[all …]
/xnu-8020.101.4/bsd/kern/
H A Dbsd_init.c305 char dyld_alt_path[MAXPATHLEN];
442 if (PE_parse_boot_argn("rd", dev_path, MAXPATHLEN)) { in bsd_rooted_ramdisk()
1279 len = strlcpy(dmgbasepath, "/System/Volumes/Recovery/", MAXPATHLEN); in bsd_find_basesystem_dmg()
1280 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1291 char boot_obj_path[MAXPATHLEN] = ""; in bsd_find_basesystem_dmg()
1298 len = strlcat(dmgbasepath, boot_obj_path, MAXPATHLEN); in bsd_find_basesystem_dmg()
1299 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1304 len = strlcat(dmgbasepath, "/usr/standalone/firmware/", MAXPATHLEN); in bsd_find_basesystem_dmg()
1305 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1311 len = strlcpy(dmgpath, dmgbasepath, MAXPATHLEN); in bsd_find_basesystem_dmg()
[all …]
H A Dimageboot.c125 if (!(PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) || in imageboot_desired()
127 PE_parse_boot_argn("arp0", root_path, MAXPATHLEN) || in imageboot_desired()
129 PE_parse_boot_argn("rp", root_path, MAXPATHLEN) || in imageboot_desired()
130 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) || in imageboot_desired()
131 PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN))) { in imageboot_desired()
166 if (!(PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) || in imageboot_needed()
167 PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN))) { in imageboot_needed()
1016 if (PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN) == TRUE) { in imageboot_setup_new()
1026 if (PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN) == FALSE && in imageboot_setup_new()
1027 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()
H A Dnetboot.c330 if (PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) == TRUE in netboot_info_init()
331 || PE_parse_boot_argn("rp", root_path, MAXPATHLEN) == TRUE in netboot_info_init()
332 || PE_parse_boot_argn("rootpath", root_path, MAXPATHLEN) == TRUE) { in netboot_info_init()
397 if (PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) in netboot_info_init()
398 || PE_parse_boot_argn("rp1", root_path, MAXPATHLEN)) { in netboot_info_init()
/xnu-8020.101.4/libsyscall/wrappers/
H A Dsystem-version-compat.c69 size_t path_str_len = strnlen(orig_path, MAXPATHLEN); in _system_version_compat_check_path_suffix()
85 if (path_str_len == MAXPATHLEN) { in _system_version_compat_check_path_suffix()
90 if ((compat_len - SYSTEM_VERSION_PLIST_FILENAMELEN) > (MAXPATHLEN - path_str_len - 1)) { in _system_version_compat_check_path_suffix()
140 char new_path[MAXPATHLEN]; in _system_version_compat_open_shim()
158 size_t newpathlen = strnlen(new_path, MAXPATHLEN); in _system_version_compat_open_shim()
178 …at(new_path, SYSTEM_VERSION_COMPAT_PLIST_FILENAME(PLAT_PREFIX_IOS, COMPAT_SUFFIX_IOS), MAXPATHLEN); in _system_version_compat_open_shim()
180 …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-8020.101.4/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()
H A Dperfindex-file_create.c8 char tempdir[MAXPATHLEN];
H A Dperfindex-ram_file_create.c9 char ramdisk_path[MAXPATHLEN];
H A Dperfindex-file_write.c8 char tempdir[MAXPATHLEN];
H A Dperfindex-file_read.c7 char tempdir[MAXPATHLEN];
H A Dramdisk.c20 snprintf(path, MAXPATHLEN, "/Volumes/%s", name); in setup_ram_volume()
/xnu-8020.101.4/osfmk/kern/
H A Darcade.c51 #if !defined(MAXPATHLEN)
52 #define MAXPATHLEN 4096 macro
309 kr = kmem_alloc(ipc_kernel_map, (vm_offset_t *)&path, MAXPATHLEN, VM_KERN_MEMORY_IPC); in arcade_ast()
314 bzero(path, MAXPATHLEN); in arcade_ast()
315 retval = proc_pidpathinfo_internal(p, 0, path, MAXPATHLEN, NULL); in arcade_ast()
319 vm_map_round_page((vm_offset_t)path + MAXPATHLEN, VM_MAP_PAGE_MASK(ipc_kernel_map)), in arcade_ast()
322 kr = vm_map_copyin(ipc_kernel_map, (vm_map_address_t)path, MAXPATHLEN, TRUE, &copy); in arcade_ast()
329 kr = __MAKING_UPCALL_TO_ARCADE_VALIDATION_SERVICE__(port, copy, MAXPATHLEN, offset, &should_kill); in arcade_ast()
/xnu-8020.101.4/tests/
H A Dtrial_experiments.c122 char stdout_path[MAXPATHLEN] = "apple_array.txt"; in get_apple_array()
123 dt_resultfile(stdout_path, MAXPATHLEN); in get_apple_array()
125 char binary_path[MAXPATHLEN], binary_dir[MAXPATHLEN]; in get_apple_array()
134 uint32_t name_size = MAXPATHLEN; in get_apple_array()
140 snprintf(binary_path, MAXPATHLEN, "%s/%s", binary_dir, PRINT_APPLE_ARRAY_TOOL); 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 Dzero_to_n_tests.c51 char tracefile_path[MAXPATHLEN] = "zn.artrace"; in run_zn()
52 snprintf(tracefile_path, MAXPATHLEN, "%s.artrace", name); in run_zn()
/xnu-8020.101.4/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-8020.101.4/bsd/vfs/
H A Dvfs_lookup.c261 cnp->cn_pnlen = MAXPATHLEN; in namei()
269 assert(bytes_copied <= MAXPATHLEN); in namei()
308 if ((realpath_err = vfs_getrealpath(&cnp->cn_pnbuf[6], realpath, MAXPATHLEN, ctx))) { in namei()
320 cnp->cn_pnlen = MAXPATHLEN; in namei()
1479 pp = path + (MAXPATHLEN - 1);
1699 uio_addiov(auio, CAST_USER_ADDR_T(cp), MAXPATHLEN);
1706 assert(resid <= MAXPATHLEN);
1708 if (resid == MAXPATHLEN) {
1716 linklen = (u_int)strnlen(cp, MAXPATHLEN - (u_int)resid);
1721 } else if (linklen + ndp->ni_pathlen + rsrclen > MAXPATHLEN) {
[all …]
/xnu-8020.101.4/bsd/sys/
H A Dproc_info.h373 char vip_path[MAXPATHLEN]; /* tail end of it */
394 char prpo_path[MAXPATHLEN];
628 char psem_name[MAXPATHLEN];
641 char pshm_name[MAXPATHLEN];
810 #define PROC_PIDPATHINFO_SIZE (MAXPATHLEN)
811 #define PROC_PIDPATHINFO_MAXSIZE (4*MAXPATHLEN)
H A Dmount.h99 #define MNAMELEN MAXPATHLEN /* length of buffer for returned name */
120 char f_mntonname[MAXPATHLEN]; /* directory on which mounted */ \
121 char f_mntfromname[MAXPATHLEN]; /* mounted filesystem */ \
181 char f_mntonname[MAXPATHLEN];/* directory on which mounted */
182 char f_mntfromname[MAXPATHLEN];/* mounted filesystem */
/xnu-8020.101.4/bsd/security/audit/
H A Daudit_bsm_klib.c852 len = MAXPATHLEN; in audit_canon_path()
858 if (len < MAXPATHLEN) { in audit_canon_path()
861 strlcpy(cpath + len, bufp, MAXPATHLEN - len); in audit_canon_path()
863 strlcpy(cpath, bufp, MAXPATHLEN); in audit_canon_path()
/xnu-8020.101.4/SETUP/config/
H A Dmkheaders.c206 static char hbuf[MAXPATHLEN]; in toheader()
208 hbuf[MAXPATHLEN - 1] = '\0'; in toheader()
/xnu-8020.101.4/bsd/machine/
H A Dexec.h38 char path[MAXPATHLEN];

1234