Home
last modified time | relevance | path

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

1234

/xnu-10063.141.1/bsd/net/
H A Dpf_ruleset.c298 p = (char *)rs_malloc_data(MAXPATHLEN); in pf_find_or_create_ruleset()
299 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
312 strlcpy(p, path, MAXPATHLEN); in pf_find_or_create_ruleset()
314 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
323 MAXPATHLEN - PF_ANCHOR_NAME_SIZE - 1)) { in pf_find_or_create_ruleset()
324 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
329 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
346 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
361 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
381 rs_free_data(p, MAXPATHLEN); in pf_find_or_create_ruleset()
[all …]
/xnu-10063.141.1/bsd/kern/
H A Dbsd_init.c299 char dyld_alt_path[MAXPATHLEN];
457 if (PE_parse_boot_argn("rd", dev_path, MAXPATHLEN)) { in bsd_rooted_ramdisk()
1348 len = strlcpy(dmgbasepath, "/System/Volumes/Recovery/", MAXPATHLEN); in bsd_find_basesystem_dmg()
1349 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1360 char boot_obj_path[MAXPATHLEN] = ""; in bsd_find_basesystem_dmg()
1367 len = strlcat(dmgbasepath, boot_obj_path, MAXPATHLEN); in bsd_find_basesystem_dmg()
1368 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1373 len = strlcat(dmgbasepath, "/usr/standalone/firmware/", MAXPATHLEN); in bsd_find_basesystem_dmg()
1374 if (len > MAXPATHLEN) { in bsd_find_basesystem_dmg()
1380 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()
1022 if (PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN) == TRUE) { in imageboot_setup_new()
1032 if (PE_parse_boot_argn(IMAGEBOOT_AUTHROOT_ARG, root_path, MAXPATHLEN) == FALSE && in imageboot_setup_new()
1033 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.c329 if (PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) == TRUE in netboot_info_init()
330 || PE_parse_boot_argn("rp", root_path, MAXPATHLEN) == TRUE in netboot_info_init()
331 || PE_parse_boot_argn("rootpath", root_path, MAXPATHLEN) == TRUE) { in netboot_info_init()
364 if (PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) in netboot_info_init()
365 || PE_parse_boot_argn("rp1", root_path, MAXPATHLEN)) { in netboot_info_init()
/xnu-10063.141.1/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-10063.141.1/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];
/xnu-10063.141.1/osfmk/kern/
H A Darcade.c52 #if !defined(MAXPATHLEN)
53 #define MAXPATHLEN 4096 macro
310 path = kalloc_data(MAXPATHLEN, Z_WAITOK | Z_ZERO); in arcade_ast()
311 retval = proc_pidpathinfo_internal(p, 0, path, MAXPATHLEN, NULL); in arcade_ast()
313 kr = vm_map_copyin(kernel_map, (vm_map_address_t)path, MAXPATHLEN, FALSE, &copy); in arcade_ast()
315 kfree_data(path, MAXPATHLEN); in arcade_ast()
321 kr = __MAKING_UPCALL_TO_ARCADE_VALIDATION_SERVICE__(port, copy, MAXPATHLEN, offset, &should_kill); in arcade_ast()
/xnu-10063.141.1/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 Dzero_to_n_tests.c53 char tracefile_path[MAXPATHLEN] = "zn.artrace"; in run_zn()
54 snprintf(tracefile_path, MAXPATHLEN, "%s.artrace", name); in run_zn()
H A Dsched_overloaded_runqueue.c161 char compressed_path[MAXPATHLEN]; in save_collected_ktrace()
162 snprintf(compressed_path, MAXPATHLEN, "%s.tar.gz", ktrace_file_short_name); in save_collected_ktrace()
263 char filepath_arr[MAXPATHLEN] = "";
H A Diopolicy.c34 static char g_testfile[MAXPATHLEN];
61 snprintf(g_testfile, MAXPATHLEN, "%s/%s", tmpdir, TEST_FILE);
H A Daudit_session.c814 char path[MAXPATHLEN];
815 snprintf(path, MAXPATHLEN, "%s/" NEW_SESSION_CHECK_CHILD_FILENAME, dt_tmpdir());
855 char path[MAXPATHLEN];
856 snprintf(path, MAXPATHLEN, "%s/" NEW_SESSION_CHECK_CHILD_FILENAME, dt_tmpdir());
879 char tmppath[MAXPATHLEN];
880 snprintf(tmppath, MAXPATHLEN, "%s/" NEW_SESSION_CLEANUP_FILENAME "~", dt_tmpdir());
891 char path[MAXPATHLEN];
892 snprintf(path, MAXPATHLEN, "%s/" NEW_SESSION_CLEANUP_FILENAME, dt_tmpdir());
903 char path[MAXPATHLEN];
904 snprintf(path, MAXPATHLEN, "%s/" NEW_SESSION_CLEANUP_FILENAME, dt_tmpdir());
[all …]
/xnu-10063.141.1/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-10063.141.1/bsd/sys/
H A Dproc_info.h309 char vip_path[MAXPATHLEN]; /* tail end of it */
330 char prpo_path[MAXPATHLEN];
564 char psem_name[MAXPATHLEN];
577 char pshm_name[MAXPATHLEN];
737 #define PROC_PIDPATHINFO_SIZE (MAXPATHLEN)
738 #define PROC_PIDPATHINFO_MAXSIZE (4*MAXPATHLEN)
/xnu-10063.141.1/bsd/vfs/
H A Dvfs_lookup.c254 cnp->cn_pnlen = MAXPATHLEN; in namei()
262 assert(bytes_copied <= MAXPATHLEN); in namei()
301 if ((realpath_err = vfs_getrealpath(&cnp->cn_pnbuf[6], realpath, MAXPATHLEN, ctx))) { in namei()
313 cnp->cn_pnlen = MAXPATHLEN; in namei()
1480 pp = path + (MAXPATHLEN - 1);
1700 uio_addiov(auio, CAST_USER_ADDR_T(cp), MAXPATHLEN);
1707 assert(resid <= MAXPATHLEN);
1709 if (resid == MAXPATHLEN) {
1717 linklen = (u_int)strnlen(cp, MAXPATHLEN - (u_int)resid);
1722 } else if (linklen + ndp->ni_pathlen + rsrclen > MAXPATHLEN) {
[all …]
/xnu-10063.141.1/tests/vfs/
H A Do_search.c30 static char g_testfile[MAXPATHLEN];
60 snprintf(g_testfile, MAXPATHLEN, "%s/%s", tmpdir, TEST_FILE);
/xnu-10063.141.1/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-10063.141.1/SETUP/config/
H A Dmkheaders.c206 static char hbuf[MAXPATHLEN]; in toheader()
208 hbuf[MAXPATHLEN - 1] = '\0'; in toheader()
/xnu-10063.141.1/bsd/machine/
H A Dexec.h38 char path[MAXPATHLEN];

1234