/darwin-on-arm/xnu/bsd/machine/ |
H A D | exec.h | 37 char path[MAXPATHLEN];
|
/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | realpath.c | 39 #define MAXPATHLEN 1024 macro 76 char path[MAXPATHLEN];
|
H A D | chdir.c | 42 #define MAXPATHLEN 1024 macro 106 char buf[MAXPATHLEN]; 115 if (optg && (getcwd(buf, MAXPATHLEN) == NULL)) {
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | imageboot.c | 83 MALLOC_ZONE(root_path, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 88 if (!(PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) || 89 PE_parse_boot_argn("rp", root_path, MAXPATHLEN) || 90 PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN))) { 104 if (!(PE_parse_boot_argn("rp1", root_path, MAXPATHLEN) || 105 PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN))) { 118 FREE_ZONE(root_path, MAXPATHLEN, M_NAMEI); 213 MALLOC_ZONE(root_path, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 216 if(PE_parse_boot_argn(IMAGEBOOT_CONTAINER_ARG, root_path, MAXPATHLEN) == TRUE) { 226 if (PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) [all...] |
H A D | netboot.c | 339 MALLOC_ZONE(root_path, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 342 if (PE_parse_boot_argn("rp0", root_path, MAXPATHLEN) == TRUE 343 || PE_parse_boot_argn("rp", root_path, MAXPATHLEN) == TRUE 344 || PE_parse_boot_argn("rootpath", root_path, MAXPATHLEN) == TRUE) { 409 if (PE_parse_boot_argn(IMAGEBOOT_ROOT_ARG, root_path, MAXPATHLEN) 410 || PE_parse_boot_argn("rp1", root_path, MAXPATHLEN)) { 420 FREE_ZONE(root_path, MAXPATHLEN, M_NAMEI);
|
H A D | posix_sem.c | 382 MALLOC_ZONE(pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 388 pathlen = MAXPATHLEN; 389 error = copyinstr(uap->name, pnbuf, MAXPATHLEN, &pathlen); 604 FREE_ZONE(pnbuf, MAXPATHLEN, M_NAMEI); 636 FREE_ZONE(pnbuf, MAXPATHLEN, M_NAMEI); 672 MALLOC_ZONE(pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 676 pathlen = MAXPATHLEN; 677 error = copyinstr(uap->name, pnbuf, MAXPATHLEN, &pathlen); 768 FREE_ZONE(pnbuf, MAXPATHLEN, M_NAMEI);
|
H A D | posix_shm.c | 395 MALLOC_ZONE(pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 401 pathlen = MAXPATHLEN; 402 error = copyinstr(uap->name, (void *)pnbuf, MAXPATHLEN, &pathlen); 618 FREE_ZONE(pnbuf, MAXPATHLEN, M_NAMEI); 651 FREE_ZONE(pnbuf, MAXPATHLEN, M_NAMEI); 1017 MALLOC_ZONE(pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 1021 pathlen = MAXPATHLEN; 1022 error = copyinstr(uap->name, (void *)pnbuf, MAXPATHLEN, &pathlen); 1141 FREE_ZONE(pnbuf, MAXPATHLEN, M_NAMEI);
|
H A D | kern_core.c | 274 MALLOC(alloced_name, char *, MAXPATHLEN, M_TEMP, M_NOWAIT | M_ZERO); 280 core_proc->p_pid, alloced_name, MAXPATHLEN)) {
|
H A D | proc_info.c | 735 count = MAXPATHLEN; 737 pinfo->pvip.vip_path[MAXPATHLEN-1] = 0; 817 count = MAXPATHLEN; 820 preginfo.prp_vip.vip_path[MAXPATHLEN-1] = 0; 863 count = MAXPATHLEN; 865 pvninfo.pvi_cdir.vip_path[MAXPATHLEN-1] = 0; 878 count = MAXPATHLEN; 880 pvninfo.pvi_rdir.vip_path[MAXPATHLEN-1] = 0; 997 size = MAXPATHLEN; 1250 count = MAXPATHLEN; [all...] |
/darwin-on-arm/xnu/tools/tests/libMicro/apple/ |
H A D | create_file.c | 79 #define MAXPATHLEN 1024 macro 124 optf = malloc(MAXPATHLEN);
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | pf_ruleset.c | 262 p = (char *)rs_malloc(MAXPATHLEN); 263 bzero(p, MAXPATHLEN); 264 strlcpy(p, path, MAXPATHLEN); 276 strlcpy(p, path, MAXPATHLEN); 286 MAXPATHLEN - PF_ANCHOR_NAME_SIZE - 1)) { 380 path = (char *)rs_malloc(MAXPATHLEN); 381 bzero(path, MAXPATHLEN); 383 strlcpy(path, name + 1, MAXPATHLEN); 390 strlcpy(path, s->anchor->path, MAXPATHLEN); 405 strlcat(path, "/", MAXPATHLEN); [all...] |
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_boot.c | 207 MALLOC_ZONE(nd->nd_root.ndm_path, char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 213 MALLOC_ZONE(nd->nd_root.ndm_mntfrom, char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 225 nd->nd_root.ndm_path, MAXPATHLEN) == TRUE) { 267 MALLOC_ZONE(nd->nd_private.ndm_path, char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 273 MALLOC_ZONE(nd->nd_private.ndm_mntfrom, char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 286 MALLOC_ZONE(check_path, char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 292 snprintf(check_path, MAXPATHLEN, "%s/private", nd->nd_root.ndm_path); 295 && (strncmp(check_path, nd->nd_private.ndm_path, MAXPATHLEN) == 0)) { 299 FREE_ZONE(check_path, MAXPATHLEN, M_NAMEI); 367 endp = dp + MAXPATHLEN [all...] |
H A D | nfs_vfsops.c | 911 MAXPATHLEN, M_NAMEI); 914 MAXPATHLEN, M_NAMEI); 917 MAXPATHLEN, M_NAMEI); 920 MAXPATHLEN, M_NAMEI); 1014 FREE_ZONE(nd.nd_root.ndm_mntfrom, MAXPATHLEN, M_NAMEI); 1016 FREE_ZONE(nd.nd_root.ndm_path, MAXPATHLEN, M_NAMEI); 1018 FREE_ZONE(nd.nd_private.ndm_mntfrom, MAXPATHLEN, M_NAMEI); 1020 FREE_ZONE(nd.nd_private.ndm_path, MAXPATHLEN, M_NAMEI); 1313 (void) copystr(mntname, mp->mnt_vfsstat.f_mntonname, MAXPATHLEN - 1, 0); 1314 (void) copystr(ndmntp->ndm_mntfrom, mp->mnt_vfsstat.f_mntfromname, MAXPATHLEN [all...] |
/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_bsm_klib.c | 719 len = MAXPATHLEN; 725 if (len < MAXPATHLEN) 727 strlcpy(cpath + len, bufp, MAXPATHLEN - len); 729 strlcpy(cpath, bufp, MAXPATHLEN);
|
H A D | audit_arg.c | 444 ar->k_ar.ar_arg_text = malloc(MAXPATHLEN, M_AUDITTEXT, 447 strncpy(ar->k_ar.ar_arg_text, text, MAXPATHLEN); 685 *pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK); 759 *pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK); 768 len = MAXPATHLEN;
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_lookup.c | 244 MALLOC_ZONE(cnp->cn_pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 251 cnp->cn_pnlen = MAXPATHLEN; 275 MALLOC_ZONE(realpath, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK); 280 * MAXPATHLEN characters. In other failure cases, we may be dealing with a path 283 if ((realpath_err= vfs_getrealpath(&cnp->cn_pnbuf[6], realpath, MAXPATHLEN, ctx))) { 284 FREE_ZONE(realpath, MAXPATHLEN, M_NAMEI); 294 cnp->cn_pnlen = MAXPATHLEN; 1315 MALLOC_ZONE(cp, char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 1324 uio_addiov(auio, CAST_USER_ADDR_T(cp), MAXPATHLEN); 1329 FREE_ZONE(cp, MAXPATHLEN, M_NAME [all...] |
H A D | vfs_fslog.c | 421 MALLOC(path, char *, MAXPATHLEN, M_TEMP, M_WAITOK); 423 len = MAXPATHLEN; 430 err = escape_str(path, len, MAXPATHLEN);
|
H A D | vfs_fsevents.c | 199 #define IS_TLD(x) strnstr((char *) path, x, MAXPATHLEN) 368 static char last_str[MAXPATHLEN]; 630 pathbuff_len = MAXPATHLEN; 641 strlcpy(pathbuff, vp->v_mount->mnt_vfsstat.f_mntonname, MAXPATHLEN); 651 pathbuff_len = MAXPATHLEN; 2013 // 2*MAXPATHLEN + 2*sizeof(fse_info) + sizeof(int) 2291 MALLOC_ZONE(path, char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 2302 FREE_ZONE(path, MAXPATHLEN, M_NAMEI); 2356 char pathbuf[MAXPATHLEN]; 2415 MALLOC_ZONE(path, char *, MAXPATHLEN, M_NAME [all...] |
H A D | vfs_syscalls.c | 131 MALLOC_ZONE((x), char *, MAXPATHLEN, M_NAMEI, M_WAITOK); 133 FREE_ZONE((x), MAXPATHLEN, M_NAMEI); 597 strncpy(mp->mnt_vfsstat.f_mntonname, cnp->cn_pnbuf, MAXPATHLEN); 673 strncpy(mp->mnt_vfsstat.f_mntfromname, nd.ni_cnd.cn_pnbuf, MAXPATHLEN); 1133 strlcpy(mp->mnt_vfsstat.f_mntfromname, nd.ni_cnd.cn_pnbuf, MAXPATHLEN); 1380 MALLOC(old_mntonname, char*, MAXPATHLEN, M_TEMP, M_WAITOK); 1456 strncpy(old_mntonname, mp->mnt_vfsstat.f_mntonname, MAXPATHLEN); 1457 strncpy(mp->mnt_vfsstat.f_mntonname, cnp->cn_pnbuf, MAXPATHLEN); 1482 strncpy(mp->mnt_vfsstat.f_mntonname, old_mntonname, MAXPATHLEN); 1517 char qfpath[MAXPATHLEN]; [all...] |
/darwin-on-arm/xnu/bsd/sys/ |
H A D | proc_info.h | 286 char vip_path[MAXPATHLEN]; /* tail end of it */ 522 char psem_name[MAXPATHLEN]; 535 char pshm_name[MAXPATHLEN]; 635 #define PROC_PIDPATHINFO_SIZE (MAXPATHLEN) 636 #define PROC_PIDPATHINFO_MAXSIZE (4*MAXPATHLEN)
|
H A D | param.h | 201 * MAXPATHLEN defines the longest permissable path length after expanding 209 #define MAXPATHLEN PATH_MAX macro
|
H A D | mount.h | 98 #define MNAMELEN MAXPATHLEN /* length of buffer for returned name */ 117 char f_mntonname[MAXPATHLEN]; /* directory on which mounted */ \ 118 char f_mntfromname[MAXPATHLEN]; /* mounted filesystem */ \ 177 char f_mntonname[MAXPATHLEN];/* directory on which mounted */ 178 char f_mntfromname[MAXPATHLEN];/* mounted filesystem */
|
/darwin-on-arm/xnu/bsd/hfs/ |
H A D | hfs_fsctl.h | 49 typedef char pathname_t[MAXPATHLEN];
|
/darwin-on-arm/xnu/SETUP/config/ |
H A D | mkheaders.c | 252 static char hbuf[MAXPATHLEN]; 254 hbuf[MAXPATHLEN-1] = '\0';
|
/darwin-on-arm/xnu/bsd/miscfs/devfs/ |
H A D | devfs_vfsops.c | 219 bzero(mp->mnt_vfsstat.f_mntfromname, MAXPATHLEN); 561 (void) copystr(mntname, mp->mnt_vfsstat.f_mntonname, MAXPATHLEN - 1, 0);
|