| /freebsd-13.1/lib/libc/gen/ |
| H A D | auxv.c | 72 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 D | pmcpl_gprof.c | 318 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 D | proc_create.c | 97 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.h | 80 char execpath[PATH_MAX]; /* Path to program executable. */ member
|
| H A D | proc_rtld.c | 65 if (strcmp(lop->rdl_path, phdl->execpath) == 0 && in map_iter()
|
| /freebsd-13.1/sys/kern/ |
| H A D | kern_exec.c | 495 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 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-13.1/sys/arm64/linux/ |
| H A D | linux_sysvec.c | 239 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 D | imgact.h | 78 char *execpath; member
|
| /freebsd-13.1/sys/dev/filemon/ |
| H A D | filemon_wrapper.c | 127 imgp->execpath != NULL ? imgp->execpath : "<unknown>"); in filemon_event_process_exec()
|
| /freebsd-13.1/sys/amd64/linux/ |
| H A D | linux_sysvec.c | 335 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 D | linux_sysvec.c | 291 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 D | linux32_sysvec.c | 747 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 D | freebsd32_misc.c | 3403 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()
|