| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
do repeated lookups. OK tb@
|
| |
|
|
|
|
|
|
| |
the default.
okay millert@
|
|
|
|
|
|
|
|
|
|
|
| |
- no need to declare main() prototype;
- mark all functions as static;
- add __dead marker to usage(), since it doesn't return;
- zap extern *optarg/optind in main(), It is already done in unistd.h;
- return from main instead of exit(3) that enables stack protector;
- fix err() eval in pledge()s error path.
OK millert@
|
|
|
|
|
|
|
|
|
|
|
|
| |
correctly - logically complete that now by removing MLINKS from base;
authors need only to ensure there is an entry in NAME for any function/
util being added. MLINKS will still work, and remain for perl to ease
upgrades;
ok nicm (curses) bcook (ssl)
ok schwarze, who provided a lot of feedback and assistance
ok tb natano jung
|
|
|
|
|
|
|
| |
arguments using kvm_getargs, after the pledge() has been made. someone
brave should refactor this, hoisting the argument fetching to between
kvm_getprocs() and pledge() - storing the argument data as neccessary.
the current situation is also a race -- it fetches the data twice.
|
|
|
|
|
|
| |
first. it can pledge to "stdio" (pgrep case) or "stdio proc" (pkill case)
before parsing and matching the expression.
ok doug
|
|
|
|
|
|
|
|
|
| |
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
them via sysctl(KERN_PROC). In struct kinfo_proc the per-process
flags move to p_psflags, leaving the per-thread flags in p_flags.
Flag descriptions in ps(1) updated to be less obtuse.
discussed with matthew@ some time ago; ok jca@, manpage bits ok jmc@
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
and printing it
discussed with and ok millert@
|
|
|
|
| |
ok espie@
|
|
|
|
| |
"obviously okay" espie@
|
|
|
|
| |
okay ajacoutot@, guenther@
|
|
|
|
|
|
| |
flag is passed
ok lum@
|
|
|
|
|
|
| |
This lets new binaries work (at least w/o the -H option) with old kernels.
ok pirofti@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This expands the already bloated FILL_KPROC macro to take an extra
parameter that indicates if the callee is a thread or a process.
The userland bits are adjusted accordingly and ps(1) and top(1) now
display per thread usage times when -H is used.
Also pkill(1) had to be adjusted so that duplicates don't pop up.
libkvm does basically the same thing as the kernel bits.
Okay guenther@.
|
| |
|
| |
|
|
|
|
|
| |
fix proposed by lum actually happened in netbsd -r1.16, some 6 years ago;
ok lum
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
signalled using the "Long" format, like pgrep.
Original diff from FreeBSD, modified somewhat on tech@, with feedback from nicm@
Man page input from jmc@
|
|
|
|
|
|
| |
that we've got name we want for the API we want
"ZAP!" deraadt@
|
| |
|
|
|
|
|
|
|
| |
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
|
|
|
|
|
|
|
|
|
| |
are tracked to match the command name;
pointed out by fgsch
diff adapted from text from gad@freebsd
ok fgsch sobrado millert
|
| |
|
|
|
|
| |
ok dtucker@, jmc@
|
|
|
|
|
|
|
|
|
| |
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
|
|
|
|
| |
of a typo in rcs.c;
|
|
|
|
| |
OK jmc@ henning@ oga@ mikeb@
|
|
|
|
| |
originally requested by sobrado, and now Pierre Riteau
|
| |
|
|
|
|
|
| |
have multiple bits set, which lead to surprising results. Spotted by
Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@
|
|
|
|
| |
- do not use EXIT STATUS (non-standard in section 1)
|
| |
|
|
|
|
| |
ok millert@ robert@
|
| |
|
| |
|
|
|
|
| |
From: NetBSD; ok millert@
|
|
|
|
| |
<abs@netbsd>. ok millert@
|
|
|
|
| |
Problem found and OK by robert@
|
| |
|
|
|
|
|
|
| |
died on its own in the time between when the process list was consulted
and when we do the actual kill. This fixes an annoyance for privsep
processes (and others) where when you kill one the others die by themselves.
|
|
|
|
| |
millert@, otto@
|