Searched refs:execpath (Results 1 – 12 of 12) sorted by relevance
| /freebsd/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/lib/libsys/ |
| H A D | auxv.c | 73 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()
|
| /freebsd/usr.sbin/pmcstat/ |
| H A D | pmcpl_gprof.c | 315 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 D | proc_create.c | 94 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.h | 78 char execpath[PATH_MAX]; /* Path to program executable. */ member
|
| /freebsd/sys/kern/ |
| H A D | kern_exec.c | 508 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 …]
|
| /freebsd/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/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/sys/sys/ |
| H A D | imgact.h | 76 char *execpath; member
|
| /freebsd/sys/dev/filemon/ |
| H A D | filemon_wrapper.c | 124 imgp->execpath != NULL ? imgp->execpath : "<unknown>"); in filemon_event_process_exec()
|
| /freebsd/sys/amd64/linux32/ |
| H A D | linux32_sysvec.c | 631 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()
|
| /freebsd/sys/compat/freebsd32/ |
| H A D | freebsd32_misc.c | 3722 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in freebsd32_copyout_strings() 3723 execpath_len = strlen(imgp->execpath) + 1; in freebsd32_copyout_strings() 3726 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in freebsd32_copyout_strings()
|