Age | Commit message (Collapse) | Author |
|
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.
Work done and verified by Ashton Fagg <ashton@fagg.id.au>
ok deraadt@ semarie@ claudio@
|
|
|
|
|
|
in these 3 related programs (they borrow parts of each other using .PATH)
Hopefully no regressions, ktrace checks by myself and mestre
|
|
|
|
OK kettenis@
|
|
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
unusedNN.
Missing man page bits pointed out by
jmc@. Ports source scan by sthen@.
ok deraadt@ guenther@
|
|
While here, delete some extra #includes and apply style(9) sort rules.
ok deraadt@ krw@ mpi@
|
|
ok jmc, krw, deraadt
|
|
|
|
|
|
their number.
While here print the amount of memory in M instead of K to make the output
fit it 80 columns.
Reminded by tb@, ok visa@
|
|
ok deraadt, guenther, tedu
|
|
Use uint64_t for the KERN_INTRCNT_CNT sysctl()
ok krw@
|
|
|
|
|
|
ok tb@
|
|
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
|
|
convert atoi to strtonum.
ok deraadt
|
|
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)
|
|
|
|
ok tedu@
|
|
related to disk stastics for almost 17 years, and the remaining
userland-visible defines duplicate those found in <sys/sched.h>.
Move the remaining _KERNEL defines to <sys/tty.h> where they belong, and
update all users to cope with this.
ok kettenis@
|
|
|
|
ok deraadt@
|
|
don't need to be married.
ok guenther miod beck jsing kettenis
|
|
|
|
pools struct out. however, struct pool in the kernel contains lots
of things that userland probably isnt interested in, like actual
mutexes, and probably shouldnt get easy access to, like pointers
to kernel memory via all the lists/trees.
this implements a kinfo_pool structure that has only the data that
userland needs to know about. it cuts the sysctl code over to
building it from struct pool as required and copying that out
instead, and cuts userland over to only handling kinfo_pool.
the only problem with this is vmstat, which can read kernel images
via kvm, which needs some understanding of struct pool. to cope,
the struct pool definition is guarded by if defined(_KERNEL) ||
defined(_LIBKVM) as inspired by sysctl which needs to do the same
thing sometimes. struct pool itself is generally not visible to
userland though, which is good.
matthew@ suggested struct kinfo_pool instead of struct pool_info.
the kinfo prefix has precedent.
lots of people liked this.
|
|
include <sys/vmmeter.h> where it is needed instead of relying on
it being included by <uvm/uvm_extern.h>.
miod@ likes it, ok guenther@
|
|
ok okan
|
|
ok mikeb@ bluhm@
|
|
|
|
so that averages/rates are over the actual time-running-not-suspended.
For kernel cores, peek at the 'time_uptime' and 'naptime' variables.
original report by and ok mlarkin@
|
|
suggestions and ok millert@
|
|
lines in dopool_sysctl() have been removed from vmstat.c revision
1.116. Remove uvm_km_pages_free from dopool_kvm() to allow analysing
a core dump.
OK guenther@ miod@
|
|
|
|
found the hard way by otto.
|
|
|
|
tedu agreed with an idea, tested by Luis Useche and me; ok deraadt
|
|
the : and uid components out -- otherwise these two programs will work
poorly.
|
|
ok thib@
|
|
changes it was returing a constant 0, changing to cope
with those changes makes less sense then just removing
as it provides the user with no usefull information.
sthen@ grepped the port's tree for me and found not hits,
thanks!
OK deraadt@, matthew@
|
|
ok matthew@ millert@ deraadt@
|
|
add a -c count option to netstat.
tweak spacing to not smear fields in vmstat.
ok deraadt sthen
|
|
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
|
|
zap the PCT() macro that was a holdover from before we had prototypes.
ok gilles@, deraadt@
|
|
do until when we tweak struct uvmexp to have unsigned 64 bit counters,
and when we do, it will not break.
from PR 4046, ok millert
|
|
deraadt@ art@
|
|
ok jmc@
|