summaryrefslogtreecommitdiff
path: root/sbin/sysctl
AgeCommit message (Collapse)Author
2004-01-08Used to say "type=", but now says "size=" since that's what it'satatat
supposed to say.
2004-01-05Homogenize usage messages: make the 'usage' word all lowercase, as this seemsjmmv
to be the most common practice in our tree.
2003-12-31Simplify Oo/Oc to Op, since it has only one simple short argument.wiz
2003-12-30Update sysctl.8 man page to cover all the new stuff.atatat
2003-12-04sysctlnametomib() is a private function for the moment.atatat
2003-12-04New sysctl(8) binary. Performs auto-discovery and can add/removeatatat
nodes from the tree. Never needs to be recompiled again.
2003-11-10Make per-protocol network input queue stats visible to userland viajonathan
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-10-15Slight option ordering change.wiz
2003-09-27Forgot the date....dsl
2003-09-27Add kern.drivers and kern.root_partition to match recent kern_sysctl.cdsl
Add kern.root_device which was absent.
2003-09-21Combine multiple single-letter options.wiz
2003-09-20add -e flag to set the separator to '=' where the default is ' = '.grant
this allows sysctl output to fed back into itself. inspired by FreeBSD's sysctl(8). ok'd by atatat.
2003-09-17put flags in a list with descriptions. add proper description of -w.grant
2003-08-07Mention /etc/sysctl.conf. Bump date. Closes PR 22213.wiz
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22308, verified by myself.
2003-07-04Bump date for last, and replace some \*[Lt]/\*[Gt] with .Aq.wiz
2003-07-03Add somaxkva.ragge
2003-06-17Remove the KERN_DRIVERS case handler (prototype code?).simonb
2003-06-16Print hw.cnmagic as escaped hex bytes (unless -n given).dsl
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-05-31Avoid a strict-alias warning in gcc 3.3.thorpej
2003-05-18simplify moreitojun
2003-05-18simplify by strlcpy/catitojun
2003-04-19add tcp.ident.christos
2003-04-12add checkinterfacechristos
2003-04-06Tweak behaviour introduced in rev 1.50;lukem
* 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-03-17Consistent tab usage.wiz
2003-03-15Use "its" instead of "it's" where appropriate.wiz
From Soren Jacobsen in PR 20730.
2003-03-07Quell formwat warning for LP64 for the diskinfo printf.fvdl
2003-03-06hw.physpages -> hw.physmem64, hw.userpages -> hw.usermem64thorpej
2003-03-01Document net.inet.tcp.init_win_local.thorpej
2003-02-27Document hw.physpages and hw.userpages.thorpej
2003-02-02Add sysconf(3) knobs for recent additions.kleink
2003-02-01Add several missing items, and be less rageous about memory locking.kleink
2003-01-22display machdep.diskinfo for i386 and x86_84dsl
(agreed by christos)
2002-12-24On Darwin, mach_init is the system bootstrap process. It is responsiblemanu
for forking the traditional UNIX init(8) and it does the Mach port naming service. We need mach_init for the naming service, but unfortunately, it will only act as such if its PID is 1. We introduce a sysctl (emul.darwin.init_pid) to fool a given process into thinking its PID is 1. That way we can get mach_init into behaving as the name server. Typical use: /sbin/sysctl -w emul.darwin.init_pid=$$ ; exec /emul/darwin/sbin/mach_init
2002-12-11Add kern.forkfsleep sysctl - set/get time (in miliseconds) for whichjdolecek
process would be forced to sleep in fork() if it hits either global or user maxproc limit. Default is zero (no forced sleep). Maximum is 20 seconds.
2002-12-11Add two sysctls: kern.labelsector and kern.labeloffset.scw
These are of use to userland code which previously depended on the hard-coded values of LABELSECTOR and LABELOFFSET to figure out the location of the disklabel for a particular platform. With the introduction of umbrella ports such as evbarm, evbmips, etc, the location of the disklabel may vary between kernels for the same MACHINE. This sysctl will allow userland programs to remain independent of the particular flavour of MACHINE in such cases.
2002-11-30tweaks for fparseln(3) move from libutil to libc:lukem
- remove #include <util.h> if nothing else needed it - remove LDFLAGS+=-lutil if nothing else needed it
2002-11-09Added sysctl to change all IRIX kernel values reported by uname and systeminfo:manu
OS name, hw name, kernel version, and so forth.
2002-11-07Added two sysctl-able flags: proc.curproc.stopfork and proc.curproc.stopexecmanu
that can be used to block a process after fork(2) or exec(2) calls. The new process is created in the SSTOP state and is never scheduled for running. This feature is designed so that it is esay to attach the process using gdb before it has done anything. It works also with sproc, kthread_create, clone...
2002-11-03When printing out nodes of type "string", don't print anything ifsimonb
sysctl() reports that 0 bytes were returned. Reported by Matt Green with "sysctl hw.disknames" on a system with no disks.
2002-10-03New sentence, new line. From Robert Elz.wiz
2002-10-01Replace some \*[Lt]...\*[Gt] with .Aq ...wiz
2002-08-19Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/pathlukem
2002-05-29document vfs.nfs.iothreadsmsaitoh
2002-05-28document net.inet6.ip6.maxfragsitojun
2002-05-19document net.key.* sysctl. provide sysctl MIB for controllingitojun
proposal payload on ACQUIRE message. sync w/kame
2002-05-14rename: net.inet6.ip6.bindv6only -> net.inet6.ip6.v6onlyitojun
sync w/kame.
2002-03-24Add -q flag, for use with -w and -f, which suppresses output after a set.sommerfeld
2002-03-20remove debugging line.christos