Home
last modified time | relevance | path

Searched refs:execpath (Results 1 – 14 of 14) sorted by relevance

/freebsd-13.1/lib/libc/gen/
H A Dauxv.c72 static char *canary, *pagesizes, *execpath; variable
103 execpath = (char *)(aux->a_un.a_ptr); in init_aux()
186 execpath = (char *)(aux->a_un.a_ptr); in _init_aux_powerpc_fixup()
273 if (execpath == NULL) in _elf_aux_info()
278 if (strlcpy(buf, execpath, buflen) >= in _elf_aux_info()
/freebsd-13.1/usr.sbin/pmcstat/
H A Dpmcpl_gprof.c318 const char *execpath; in pmcpl_gmon_initimage() local
330 execpath = pmcstat_string_unintern(pi->pi_execpath); in pmcpl_gmon_initimage()
331 if ((snbuf = strdup(execpath)) == NULL) in pmcpl_gmon_initimage()
332 err(EX_OSERR, "ERROR: Cannot copy \"%s\"", execpath); in pmcpl_gmon_initimage()
334 err(EX_OSERR, "ERROR: Cannot process \"%s\"", execpath); in pmcpl_gmon_initimage()
/freebsd-13.1/lib/libproc/
H A Dproc_create.c97 error = procstat_getpathname(phdl->procstat, kp, phdl->execpath, in proc_init()
98 sizeof(phdl->execpath)); in proc_init()
104 if ((fd = open(phdl->execpath, O_RDONLY)) < 0) { in proc_init()
H A D_libproc.h80 char execpath[PATH_MAX]; /* Path to program executable. */ member
H A Dproc_rtld.c65 if (strcmp(lop->rdl_path, phdl->execpath) == 0 && in map_iter()
/freebsd-13.1/sys/kern/
H A Dkern_exec.c495 imgp->execpath = args->fname; in do_execve()
500 newbinname, nd.ni_cnd.cn_namelen, &imgp->execpath, in do_execve()
502 imgp->execpath = args->fname; in do_execve()
521 if (vn_fullpath(newtextvp, &imgp->execpath, in do_execve()
523 imgp->execpath = args->fname; in do_execve()
698 imgp->execpath = NULL; in do_execve()
716 imgp->execpath != NULL ? imgp->execpath : "<unresolved>"); in do_execve()
1713 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in exec_copyout_strings()
1714 execpath_len = strlen(imgp->execpath) + 1; in exec_copyout_strings()
1718 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in exec_copyout_strings()
/freebsd-13.1/contrib/openbsm/bin/auditdistd/
H A Dauditdistd.c625 const char *execpath, *pidfile; in main() local
631 execpath = argv[0]; in main()
632 if (execpath[0] != '/') { in main()
685 if (proto_set("execpath", execpath) == -1) in main()
/freebsd-13.1/sys/arm64/linux/
H A Dlinux_sysvec.c239 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in linux_copyout_strings()
240 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
244 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-13.1/sys/sys/
H A Dimgact.h78 char *execpath; member
/freebsd-13.1/sys/dev/filemon/
H A Dfilemon_wrapper.c127 imgp->execpath != NULL ? imgp->execpath : "<unknown>"); in filemon_event_process_exec()
/freebsd-13.1/sys/amd64/linux/
H A Dlinux_sysvec.c335 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in linux_copyout_strings()
336 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
340 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-13.1/sys/i386/linux/
H A Dlinux_sysvec.c291 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in linux_copyout_strings()
292 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
296 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-13.1/sys/amd64/linux32/
H A Dlinux32_sysvec.c747 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in linux_copyout_strings()
748 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
752 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-13.1/sys/compat/freebsd32/
H A Dfreebsd32_misc.c3403 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in freebsd32_copyout_strings()
3404 execpath_len = strlen(imgp->execpath) + 1; in freebsd32_copyout_strings()
3407 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in freebsd32_copyout_strings()