NetBSD/sys
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
..
altq
arch Don't define ELFSIZE 2017-11-07 14:55:30 +00:00
coda
compat unconst machine_arch32 for sysctl data .. pointed out by Riccardo Mottola 2017-10-31 16:10:25 +00:00
conf
crypto
ddb remove more DB_ELFSIZE 2017-11-06 04:08:02 +00:00
dev Add driver for Broadcom 802.11a/b/g/n/ac SDIO wireless devices, based on 2017-11-07 16:30:32 +00:00
dist/pf PR/52682: David Binderman: Fix wrong assignment (in the !__NetBSD__ code) 2017-10-31 15:00:03 +00:00
external Use IPL_VM and IST_MPSAFE instead of IPL_SCHED 2017-11-05 09:11:43 +00:00
fs
gdbscripts
ipkdb
kern Store full executable path in p->p_path as discussed in tech-kern. 2017-11-07 19:44:04 +00:00
lib Avoid negative shift. 2017-11-02 16:09:33 +00:00
miscfs
modules
net
net80211
netatalk
netbt
netcan
netinet
netinet6 Fix usages of ipsec_used 2017-11-05 07:03:37 +00:00
netipsec
netisdn
netkey
netmpls
netnatm
netsmb
nfs
opencrypto
rump
secmodel
stand
sys Store full executable path in p->p_path as discussed in tech-kern. 2017-11-07 19:44:04 +00:00
ufs
uvm
Makefile