Home
last modified time | relevance | path

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

/src/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)`
/src/lib/libsys/
H A Dauxv.c73 static char *canary, *pagesizes, *execpath; variable
113 execpath = (char *)(aux->a_un.a_ptr); in init_aux()
216 execpath = (char *)(aux->a_un.a_ptr); in _init_aux_powerpc_fixup()
305 if (execpath == NULL) in _elf_aux_info()
310 if (strlcpy(buf, execpath, buflen) >= in _elf_aux_info()
/src/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()
/src/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
H A Dproc_rtld.c62 if (strcmp(lop->rdl_path, phdl->execpath) == 0 && in map_iter()
/src/sys/kern/
H A Dkern_exec.c508 imgp->execpath = args->fname; in do_execve()
513 newbinname, nd.ni_cnd.cn_namelen, &imgp->execpath, in do_execve()
515 imgp->execpath = args->fname; in do_execve()
524 if (vn_fullpath(newtextvp, &imgp->execpath, in do_execve()
526 imgp->execpath = args->fname; in do_execve()
546 if (vn_fullpath(newtextvp, &imgp->execpath, in do_execve()
548 imgp->execpath = args->fname; in do_execve()
714 imgp->execpath = NULL; in do_execve()
736 imgp->execpath != NULL ? imgp->execpath : "<unresolved>"); in do_execve()
950 ent.fullpath = imgp->execpath; in do_execve()
[all …]
/src/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()
/src/sys/compat/linux/
H A Dlinux_elf.c346 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in copyout_strings()
347 execpath_len = strlen(imgp->execpath) + 1; in copyout_strings()
351 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in copyout_strings()
/src/sys/sys/
H A Dimgact.h76 char *execpath; member
/src/sys/dev/filemon/
H A Dfilemon_wrapper.c124 imgp->execpath != NULL ? imgp->execpath : "<unknown>"); in filemon_event_process_exec()
/src/sys/amd64/linux32/
H A Dlinux32_sysvec.c631 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in linux_copyout_strings()
632 execpath_len = strlen(imgp->execpath) + 1; in linux_copyout_strings()
636 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in linux_copyout_strings()
/src/contrib/ntp/sntp/m4/
H A Dntp_openssl.m4111 # and we do a reality check on execpath and the headers/libraries.
/src/sys/compat/freebsd32/
H A Dfreebsd32_misc.c3671 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in freebsd32_copyout_strings()
3672 execpath_len = strlen(imgp->execpath) + 1; in freebsd32_copyout_strings()
3675 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in freebsd32_copyout_strings()