| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | execpath.sh | 39 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-14.2/lib/libc/gen/ |
| H A D | auxv.c | 68 static char *canary, *pagesizes, *execpath; variable 100 execpath = (char *)(aux->a_un.a_ptr); in init_aux() 191 execpath = (char *)(aux->a_un.a_ptr); in _init_aux_powerpc_fixup() 278 if (execpath == NULL) in _elf_aux_info() 283 if (strlcpy(buf, execpath, buflen) >= in _elf_aux_info()
|
| /freebsd-14.2/usr.sbin/pmcstat/ |
| H A D | pmcpl_gprof.c | 316 const char *execpath; in pmcpl_gmon_initimage() local 328 execpath = pmcstat_string_unintern(pi->pi_execpath); in pmcpl_gmon_initimage() 329 if ((snbuf = strdup(execpath)) == NULL) in pmcpl_gmon_initimage() 330 err(EX_OSERR, "ERROR: Cannot copy \"%s\"", execpath); in pmcpl_gmon_initimage() 332 err(EX_OSERR, "ERROR: Cannot process \"%s\"", execpath); in pmcpl_gmon_initimage()
|
| /freebsd-14.2/lib/libproc/ |
| H A D | proc_create.c | 95 error = procstat_getpathname(phdl->procstat, kp, phdl->execpath, in proc_init() 96 sizeof(phdl->execpath)); in proc_init() 102 if ((fd = open(phdl->execpath, O_RDONLY)) < 0) { in proc_init()
|
| H A D | _libproc.h | 78 char execpath[PATH_MAX]; /* Path to program executable. */ member
|
| H A D | proc_rtld.c | 62 if (strcmp(lop->rdl_path, phdl->execpath) == 0 && in map_iter()
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_exec.c | 496 imgp->execpath = args->fname; in do_execve() 501 newbinname, nd.ni_cnd.cn_namelen, &imgp->execpath, in do_execve() 503 imgp->execpath = args->fname; in do_execve() 512 if (vn_fullpath(newtextvp, &imgp->execpath, in do_execve() 514 imgp->execpath = args->fname; in do_execve() 534 if (vn_fullpath(newtextvp, &imgp->execpath, in do_execve() 536 imgp->execpath = args->fname; in do_execve() 702 imgp->execpath = NULL; in do_execve() 724 imgp->execpath != NULL ? imgp->execpath : "<unresolved>"); in do_execve() 1687 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in exec_copyout_strings() [all …]
|
| /freebsd-14.2/contrib/openbsm/bin/auditdistd/ |
| H A D | auditdistd.c | 625 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-14.2/sys/compat/linux/ |
| H A D | linux_elf.c | 346 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-14.2/sys/sys/ |
| H A D | imgact.h | 76 char *execpath; member
|
| /freebsd-14.2/sys/dev/filemon/ |
| H A D | filemon_wrapper.c | 125 imgp->execpath != NULL ? imgp->execpath : "<unknown>"); in filemon_event_process_exec()
|
| /freebsd-14.2/sys/amd64/linux32/ |
| H A D | linux32_sysvec.c | 630 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-14.2/contrib/ntp/sntp/m4/ |
| H A D | ntp_openssl.m4 | 111 # and we do a reality check on execpath and the headers/libraries.
|
| /freebsd-14.2/sys/compat/freebsd32/ |
| H A D | freebsd32_misc.c | 3628 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in freebsd32_copyout_strings() 3629 execpath_len = strlen(imgp->execpath) + 1; in freebsd32_copyout_strings() 3632 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in freebsd32_copyout_strings()
|