Searched refs:MAXPATHLEN (Results 1 - 25 of 53) sorted by relevance

123

/darwin-on-arm/xnu/bsd/machine/
H A Dexec.h37 char path[MAXPATHLEN];
/darwin-on-arm/xnu/tools/tests/libMicro/
H A Drealpath.c39 #define MAXPATHLEN 1024 macro
76 char path[MAXPATHLEN];
H A Dchdir.c42 #define MAXPATHLEN 1024 macro
106 char buf[MAXPATHLEN];
115 if (optg && (getcwd(buf, MAXPATHLEN) == NULL)) {
/darwin-on-arm/xnu/bsd/kern/
H A Dimageboot.c83 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 Dnetboot.c339 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 Dposix_sem.c382 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 Dposix_shm.c395 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 Dkern_core.c274 MALLOC(alloced_name, char *, MAXPATHLEN, M_TEMP, M_NOWAIT | M_ZERO);
280 core_proc->p_pid, alloced_name, MAXPATHLEN)) {
H A Dproc_info.c735 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 Dcreate_file.c79 #define MAXPATHLEN 1024 macro
124 optf = malloc(MAXPATHLEN);
/darwin-on-arm/xnu/bsd/net/
H A Dpf_ruleset.c262 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 Dnfs_boot.c207 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 Dnfs_vfsops.c911 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 Daudit_bsm_klib.c719 len = MAXPATHLEN;
725 if (len < MAXPATHLEN)
727 strlcpy(cpath + len, bufp, MAXPATHLEN - len);
729 strlcpy(cpath, bufp, MAXPATHLEN);
H A Daudit_arg.c444 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 Dvfs_lookup.c244 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 Dvfs_fslog.c421 MALLOC(path, char *, MAXPATHLEN, M_TEMP, M_WAITOK);
423 len = MAXPATHLEN;
430 err = escape_str(path, len, MAXPATHLEN);
H A Dvfs_fsevents.c199 #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 Dvfs_syscalls.c131 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 Dproc_info.h286 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 Dparam.h201 * MAXPATHLEN defines the longest permissable path length after expanding
209 #define MAXPATHLEN PATH_MAX macro
H A Dmount.h98 #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 Dhfs_fsctl.h49 typedef char pathname_t[MAXPATHLEN];
/darwin-on-arm/xnu/SETUP/config/
H A Dmkheaders.c252 static char hbuf[MAXPATHLEN];
254 hbuf[MAXPATHLEN-1] = '\0';
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_vfsops.c219 bzero(mp->mnt_vfsstat.f_mntfromname, MAXPATHLEN);
561 (void) copystr(mntname, mp->mnt_vfsstat.f_mntonname, MAXPATHLEN - 1, 0);

Completed in 195 milliseconds

123