Go to file
christos 0011aa658c Store full executable path in p->p_path as discussed in tech-kern.
This means that the full executable path is always available.

- exec_elf.c: use p->path to set AT_SUN_EXECNAME, and since this is
  always set, do so unconditionally.
- kern_exec.c: simplify pathexec, use kmem_strfree where appropriate
  and set p->p_path
- kern_exit.c: free p->p_path
- kern_fork.c: set p->p_path for the child.
- kern_proc.c: use p->p_path to return the executable pathname; the
  NULL check for p->p_path, should be a KASSERT?
- exec.h: gc ep_path, it is not used anymore
- param.h: bump version, 'struct proc' size change

TODO:
1. reference count the path string, to save copy at fork and free
   just before exec?
2. canonicalize the pathname by changing namei() to LOCKPARENT
   vnode and then using getcwd() on the parent directory?
2017-11-07 19:44:04 +00:00
bin
common
compat
crypto no more ssh1 code in openssh, so no use defining WITH_SSH1 2017-11-06 10:26:13 +00:00
dist/pf
distrib kmem_str{dupsize,free} man pages. 2017-11-07 18:37:00 +00:00
doc
etc
external kill another wrong ELFSIZE setting. 2017-11-06 04:43:50 +00:00
extsrc
games
include
lib Assert that __cxa_atexit is not used with NULL as DSO. Don't use 2017-11-06 14:26:03 +00:00
libexec init/fini for the main program is handled by crt0.o, so ifunc handling 2017-11-06 21:16:03 +00:00
regress
rescue
sbin
share document kmem_strdupsize/kmem_strdupfree 2017-11-07 18:36:27 +00:00
sys Store full executable path in p->p_path as discussed in tech-kern. 2017-11-07 19:44:04 +00:00
tests Stop using bpfjit 2017-11-07 09:17:06 +00:00
tools
usr.bin
usr.sbin Mark expandm as preserving format strings. 2017-11-06 19:12:23 +00:00
BUILDING
Makefile
Makefile.inc
UPDATING
build.sh