Home
last modified time | relevance | path

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

/freebsd/tools/test/stress2/misc/
H A Dexecpath.sh39 sed '1,/^EOF/d' < $odir/$0 > $dir/execpath.c
40 mycc -o execpath -Wall -Wextra -O0 -g execpath.c || exit 1
41 rm -f execpath.c
66 mv /tmp/execpath d1
67 ln d1/execpath d2/execpath
69 r=`./d1/execpath`
71 r=`./d2/execpath`
73 r=`(cd d1; ./execpath)`
75 r=`(cd d2; ./execpath)`
/freebsd/usr.sbin/pmcstat/
H A Dpmcpl_gprof.c315 const char *execpath; in pmcpl_gmon_initimage() local
327 execpath = pmcstat_string_unintern(pi->pi_execpath); in pmcpl_gmon_initimage()
328 if ((snbuf = strdup(execpath)) == NULL) in pmcpl_gmon_initimage()
329 err(EX_OSERR, "ERROR: Cannot copy \"%s\"", execpath); in pmcpl_gmon_initimage()
331 err(EX_OSERR, "ERROR: Cannot process \"%s\"", execpath); in pmcpl_gmon_initimage()
/freebsd/lib/libproc/
H A Dproc_create.c94 error = procstat_getpathname(phdl->procstat, kp, phdl->execpath, in proc_init()
95 sizeof(phdl->execpath)); in proc_init()
101 if ((fd = open(phdl->execpath, O_RDONLY)) < 0) { in proc_init()
H A D_libproc.h78 char execpath[PATH_MAX]; /* Path to program executable. */ member
/freebsd/sys/kern/
H A Dkern_exec.c505 imgp->execpath = args->fname; in do_execve()
510 newbinname, nd.ni_cnd.cn_namelen, &imgp->execpath, in do_execve()
512 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()
543 if (vn_fullpath(newtextvp, &imgp->execpath, in do_execve()
545 imgp->execpath = args->fname; in do_execve()
711 imgp->execpath = NULL; in do_execve()
733 imgp->execpath != NULL ? imgp->execpath : "<unresolved>"); in do_execve()
1696 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in exec_copyout_strings()
[all …]
/freebsd/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/sys/compat/linux/
H A Dlinux_elf.c346 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in __linuxN()
347 execpath_len = strlen(imgp->execpath) + 1; in __linuxN()
351 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in __linuxN()
/freebsd/sys/sys/
H A Dimgact.h76 char *execpath; member
/freebsd/sys/dev/filemon/
H A Dfilemon_wrapper.c125 imgp->execpath != NULL ? imgp->execpath : "<unknown>"); in filemon_event_process_exec()
/freebsd/sys/amd64/linux32/
H A Dlinux32_sysvec.c630 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in linux_copyout_strings()
631 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
635 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in linux_copyout_strings()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c3631 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in freebsd32_copyout_strings()
3632 execpath_len = strlen(imgp->execpath) + 1; in freebsd32_copyout_strings()
3635 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in freebsd32_copyout_strings()