Home
last modified time | relevance | path

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

/freebsd-12.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-12.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-12.1/sys/kern/
H A Dkern_exec.c574 imgp->execpath = args->fname; in do_execve()
577 if (vn_fullpath(td, imgp->vp, &imgp->execpath, in do_execve()
579 imgp->execpath = args->fname; in do_execve()
645 imgp->execpath = NULL; in do_execve()
665 imgp->execpath != NULL ? imgp->execpath : "<unresolved>"); in do_execve()
1497 if (imgp->execpath != NULL && imgp->auxargs != NULL) in exec_copyout_strings()
1498 execpath_len = strlen(imgp->execpath) + 1; in exec_copyout_strings()
1526 copyout(imgp->execpath, (void *)destp, execpath_len); in exec_copyout_strings()
/freebsd-12.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-12.1/sys/arm64/linux/
H A Dlinux_sysvec.c233 if (imgp->execpath != NULL && imgp->auxargs != NULL) in linux_copyout_strings()
234 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
247 copyout(imgp->execpath, (void *)imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-12.1/sys/sys/
H A Dimgact.h80 char *execpath; member
/freebsd-12.1/sys/dev/filemon/
H A Dfilemon_wrapper.c127 imgp->execpath != NULL ? imgp->execpath : "<unknown>"); in filemon_event_process_exec()
/freebsd-12.1/sys/amd64/linux/
H A Dlinux_sysvec.c320 if (imgp->execpath != NULL && imgp->auxargs != NULL) in linux_copyout_strings()
321 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
334 copyout(imgp->execpath, (void *)imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-12.1/sys/amd64/linux32/
H A Dlinux32_sysvec.c779 if (imgp->execpath != NULL && imgp->auxargs != NULL) in linux_copyout_strings()
780 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
792 copyout(imgp->execpath, (void *)imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-12.1/sys/i386/linux/
H A Dlinux_sysvec.c294 if (imgp->execpath != NULL && imgp->auxargs != NULL) in linux_copyout_strings()
295 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
311 copyout(imgp->execpath, (void *)imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd-12.1/sys/compat/freebsd32/
H A Dfreebsd32_misc.c3151 if (imgp->execpath != NULL && imgp->auxargs != NULL) in freebsd32_copyout_strings()
3152 execpath_len = strlen(imgp->execpath) + 1; in freebsd32_copyout_strings()
3179 copyout(imgp->execpath, (void *)destp, execpath_len); in freebsd32_copyout_strings()