atatat
29e15c7932
Move sysctlbyname(), sysctlnametomib(), and sysctlgetmibinfo() from
...
sysctl(8) into libc, making the minor number jump. Add prototypes to
sys/sysctl.h, fix sets, modify man pages, etc. That oughta cover it.
2004-03-25 19:36:26 +00:00
wiz
bb06082698
Remove duplicate and superfluous words.
2004-03-24 23:49:13 +00:00
atatat
b7dd417f09
Remove #define of __USE_NEW_SYSCTL. I'm not even sure I remember what
...
I used it for, but we certainly don't need it now.
2004-03-24 20:20:44 +00:00
atatat
2de2c6ed07
This file should have a copyright notice on it.
2004-03-24 20:17:59 +00:00
snj
463ea56ee8
Bump date for last.
2004-03-24 19:11:06 +00:00
atatat
4723bb21ba
Bring sysctl man pages up to date (wrt new query interface, the
...
versioning, and descriptions).
2004-03-24 18:22:30 +00:00
atatat
38c4183b04
Implement sysctl descriptions. Now all that remains is actually to
...
write them.
2004-03-24 18:11:09 +00:00
atatat
c6abd47f96
New node version and layout. This should take care of the netbsd32
...
emulation problem, formalizes the versioning (should it ever be needed
again), and provides a slot for descriptions.
2004-03-24 17:21:02 +00:00
atatat
d42aae36c0
The new sysctl query interface returns the same information as the old
...
one, but you must pass in an empty node that indicates the version
you're using.
2004-03-24 16:34:34 +00:00
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
atatat
299501e0d7
A little syntactic sugar
2004-03-20 05:22:41 +00:00
atatat
f99654532c
Make this:
...
% sysctl -A kern.cp_time
(and also "sysctl -A" without the kern.cp_time argument) print this:
kern.cp_time: user = 851648, nice = 683496, sys = 69383, ...
kern.cp_time.0: user = 85648, nice = 68496, sys = 6983, ...
...
instead of just:
kern.cp_time.0: user = 85648, nice = 68496, sys = 6983, ...
...
2004-02-20 05:27:39 +00:00
atatat
589a080332
More better display of kern.cp_time for MP machines. Now we use one
...
sysctl() call to query for each of three different display modes:
(1) sum across all cpus
% sysctl kern.cp_time
kern.cp_time: user = 93240, nice = 1507, sys = 17252, ...
(2) data for just cpu 0
% sysctl kern.cp_time.0
kern.cp_time.0: user = 93282, nice = 1507, sys = 17264, ...
(3) each cpu individually up to hw.ncpu
% sysctl -A kern.cp_time
kern.cp_time.0: user = 93349, nice = 1507, sys = 17280, ...
kern.cp_time.1: user = 93403, nice = 1507, sys = 17291, ...
...
2004-02-19 06:51:11 +00:00
atatat
5e111b3c0a
Miscellaneous display bugfixes.
2004-02-19 06:44:18 +00:00
atatat
a44f68529b
Rename sysctlnametomib() to sysctlgetmibinfo() and add FreeBSD
...
compatible sysctlnametomib() and sysctlbyname() functions.
These are intended to move to libc real soon now.
2004-02-19 06:40:14 +00:00
atatat
8012158924
Avoid using things that don't smell like they're the right size (the
...
size should be a multiple of sizeof(struct sysctlnode)), and avoid
leaking memory in the case of things that don't have children.
2004-02-19 03:16:24 +00:00
wiz
5b067ce441
Bump date for previous.
2004-01-22 07:31:53 +00:00
jonathan
7fde685464
Document net.bpf.maxbufsize in sysctl(8).
...
NB: bpf isn't a PF_, so where to list it in sysctl(3)?
2004-01-22 03:50:18 +00:00
atatat
bc0bdd10f7
Used to say "type=", but now says "size=" since that's what it's
...
supposed to say.
2004-01-08 03:44:48 +00:00
jmmv
b635f565e7
Homogenize usage messages: make the 'usage' word all lowercase, as this seems
...
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz
a96b21c57d
Simplify Oo/Oc to Op, since it has only one simple short argument.
2003-12-31 01:21:49 +00:00
atatat
fd2ec30242
Update sysctl.8 man page to cover all the new stuff.
2003-12-30 14:17:41 +00:00
atatat
ea73edd395
sysctlnametomib() is a private function for the moment.
2003-12-04 20:07:59 +00:00
atatat
c915b3168c
New sysctl(8) binary. Performs auto-discovery and can add/remove
...
nodes from the tree. Never needs to be recompiled again.
2003-12-04 19:49:39 +00:00
jonathan
88ba77e705
Make per-protocol network input queue stats visible to userland via
...
sysctl. Add a protocol-independent sysctl handler to show the per-protocol
"struct ifq' statistics. Add IP(v4) specific call to the handler.
Other protocols can show their per-protocol input statistics by
allocating a sysclt node and calling sysctl_ifq() with their own struct ifq *.
As posted to tech-kern plus improvements/cleanup suggested by Andrew Brown.
2003-11-10 20:03:29 +00:00
wiz
33261e069b
Slight option ordering change.
2003-10-15 19:58:24 +00:00
dsl
4cb1ff990c
Forgot the date....
2003-09-27 19:07:12 +00:00
dsl
0188e8d8ce
Add kern.drivers and kern.root_partition to match recent kern_sysctl.c
...
Add kern.root_device which was absent.
2003-09-27 18:57:05 +00:00
wiz
0ba80f40e8
Combine multiple single-letter options.
2003-09-21 15:23:55 +00:00
grant
76036fea3c
add -e flag to set the separator to '=' where the default is ' = '.
...
this allows sysctl output to fed back into itself. inspired by
FreeBSD's sysctl(8).
ok'd by atatat.
2003-09-20 17:02:17 +00:00
grant
9bf724618c
put flags in a list with descriptions. add proper description of -w.
2003-09-17 18:24:47 +00:00
wiz
bf2d0ca599
Mention /etc/sysctl.conf. Bump date. Closes PR 22213.
2003-08-07 10:11:02 +00:00
agc
276d62f603
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-08-07 10:04:22 +00:00
wiz
f4e5486eb2
Bump date for last, and replace some \*[Lt]/\*[Gt] with .Aq.
2003-07-04 13:32:13 +00:00
ragge
9e60a88e86
Add somaxkva.
2003-07-03 20:15:28 +00:00
simonb
7eb2ec40b2
Remove the KERN_DRIVERS case handler (prototype code?).
2003-06-17 03:34:23 +00:00
dsl
f8f6959024
Print hw.cnmagic as escaped hex bytes (unless -n given).
...
Change 'special' to be a numeral not a bit, it isn't ever used as a bit
and I can't see why it should ever be used that way.
2003-06-16 21:52:58 +00:00
thorpej
56962fed64
Avoid a strict-alias warning in gcc 3.3.
2003-05-31 23:42:23 +00:00
itojun
8138cbd1bf
simplify more
2003-05-18 02:07:20 +00:00
itojun
ebf587df1a
simplify by strlcpy/cat
2003-05-18 02:06:28 +00:00
christos
7e60cdc11e
add tcp.ident.
2003-04-19 21:55:48 +00:00
christos
a16e9fc559
add checkinterface
2003-04-12 04:32:54 +00:00
lukem
ea56af7b9d
Tweak behaviour introduced in rev 1.50;
...
* by default, warning messages go to stderr
* if -A or -a is used, send warning messages to stdout instead.
The behaviour in 1.50 meant that
somevar=`sysctl -n machdep.booted_kernel 2>/dev/null`
could end up with $somevar="machdep.booted_kernel: the value is not available"
rather than the more useful $somevar="".
(This way, "sysctl -A | grep ..." is still useful.)
2003-04-06 05:19:03 +00:00
wiz
676e42ffce
Consistent tab usage.
2003-03-17 08:00:38 +00:00
wiz
83de4abed2
Use "its" instead of "it's" where appropriate.
...
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
fvdl
74cc14e0d0
Quell formwat warning for LP64 for the diskinfo printf.
2003-03-07 00:42:04 +00:00
thorpej
5fbe4e61de
hw.physpages -> hw.physmem64, hw.userpages -> hw.usermem64
2003-03-06 20:36:51 +00:00
thorpej
3cdf0a27ee
Document net.inet.tcp.init_win_local.
2003-03-01 04:43:42 +00:00
thorpej
b4271997ce
Document hw.physpages and hw.userpages.
2003-02-27 01:42:10 +00:00
kleink
71d7654509
Add sysconf(3) knobs for recent additions.
2003-02-02 20:33:05 +00:00