summaryrefslogtreecommitdiff
path: root/sbin/sysctl/sysctl.c
AgeCommit message (Collapse)Author
2005-01-28Allow setting of kern.tty.*; now we can set kern.tty.maxptys. The kernelTodd C. Miller
itself will return an error if the user tries to set a read-only variable.
2004-09-14do not alias over libc ttyname(3)Theo de Raadt
2004-08-08spacingTheo de Raadt
2004-07-28This touches only MI code, and adds new time keeping code. TheThorsten Lockert
code is all conditionalized on __HAVE_TIMECOUNTER, and not enabled on any platforms. adjtime(2) support exists, courtesy of nordin@, sysctl(2) support and a concept of quality for each time source attached exists. High quality time sources exists for PIIX4 ACPI timer as well as some AMD power management chips. This will have to be redone once we actually add ACPI support (at that time we need to use the ACPI interfaces to get at these clocks). ok art@ ken@ miod@ jmc@ and many more
2004-04-15new world order for emulations. adjust, and become more robust.Ted Unangst
testing ok deraadt@
2004-03-21CPU_LONGRUN is gone. repair kern.emul.nemuls, strcmp on right stringTed Unangst
2004-02-25note that -w is optional and adjust accordingly;Jason McIntyre
remove -w from EXAMPLES; diffs from Paul de Weerd; ok deraadt@
2004-02-24deal with bpf nodeTed Unangst
2004-02-10Add flags field to the sensor structure and an only flag SENSOR_FINVALIDAlexander Yurchenko
which allows to drop information from broken, unwired, disabled, etc sensors. ok hshoexer@
2004-02-10Tell user to run pstat -t to get kern.tty.ttyinfo if they explicitlyTodd C. Miller
ask for it, else just ignore it. This is consistent with sysctl behavior and other entries of type CTLTYPE_STRUCT.
2004-02-10Don't hard-code type for tty sysctls to CTLTYPE_QUAD; some values areTodd C. Miller
now int.
2004-01-19little wflag fallout spotted by atle kristensenTed Unangst
2004-01-11Trivial changes to pass through -WallAlexander Yurchenko
ok millert@
2004-01-11remove the temporary -O flag..Theo de Raadt
2004-01-11Print output as "var=value" instead of "var = value". Also, any assignmentTheo de Raadt
implies -w. I have despised the existing behaviour for years. ok from henning, millert, grange
2004-01-09Tell the user to run ps if they try to view things under KERN_PROC2Todd C. Miller
(same handling as KERN_PROC).
2004-01-050K == -273.15C and sync computation with drivers; ok grangeMarkus Friedl
2003-10-17Common Address Redundancy ProtocolRyan Thomas McBride
Allows multiple hosts to share an IP address, providing high availability and load balancing. Based on code by mickey@, with additional help from markus@ and Marco_Pfatschbacher@genua.de ok deraadt@
2003-09-26check strdup failure; ok anil millertTheo de Raadt
2003-09-09slight cleanup of man page and sync usage();Jason McIntyre
2003-08-24don't print info about duplicate emuls. gives the illusion there is onlyTed Unangst
one linux emul and one freebsd emul. ok deraadt@
2003-08-21emulation is now controlled by sysctl. changes:Ted Unangst
add e_flags to struct emul. this stores on/off and native flags. check for emul enabled in check_exec(). gather all the emuls into a emulsw so a sysctl can find them. create sysctl. move maxhdrsiz calcualation into init_main so it cleans up sys_execve codepath. teach sysctl utility to grok kern.emul hierarchy. requested and ok deraadt@ some comments from mickey@
2003-06-11ansificationTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-26ignore longrun struct. eliminates a warningTed Unangst
2003-05-14Add the -q flag to suppress all output when setting a variableJean-Francois Brousseau
with -w ok jsyn@, millert@
2003-05-06KNF while I'm hereHenning Brauer
2003-05-06for hw.sensors, print stuff in a human friendly way - temperatures inHenning Brauer
degC and degF, fan speed in RPM, and voltages in (surprise) V. theo, millert, grange agree
2003-04-25Support for accessing the information from the hardware monitoring sensorsAlexander Yurchenko
via hw.sensors node. To get the information from the all sensors just do $ sysctl hw.sensors. To get the information from the particular sensor (number 5 e.g.) do $ sysctl hw.sensors.5 Tested and ok'ed by henning@ and millert@.
2003-04-25Very little tweak for consistency in space vs \tAlexander Yurchenko
2003-04-07strlcat; ok millertTheo de Raadt
2003-01-21add kern.watchdog sysctl and generic watchdog interface;Markus Friedl
based on feedback and discussions with mickey, henric, fgsch and jakob. ok art@, mickey@, jakob@, henric@
2002-12-17Make SysV-style shared memory and semaphore limits sysctl'able.Todd C. Miller
Instead of allocating a static amount of memory for the data structures via valloc() in allocsys(), allocate things dynamically using pool(9) when possible and malloc(9) when not. The various members of struct seminfo and struct shminfo are in kern.seminfo and kern.shminfo respectively (not all members of kern.seminfo are changable). The data structures used still leave something to be desired but things are not made worse in that respect by this commit.
2002-07-06Remove kernel support for NTP. ok deraadt@ and tholo@Thomas Nordin
2002-07-03ansiTheo de Raadt
2002-06-09rm trailing whitespaceTodd T. Fries
2002-06-09Print message for kern.mbstat (to use netstat)Angelos D. Keromytis
2002-05-26- CPU_MAXID and CPU_CHIPSET were swapped in cpu.hMatthieu Herrb
- add support to print machdep.chipset mib on alpha ok deraadt@
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-12-04Support for the new uvm sysctls.Artur Grabowski
2001-11-05No need to vm_param.h here.Artur Grabowski
2001-08-02nkmempages.Artur Grabowski
2001-07-13escape a wrning on msgbuf, under certain circumstancesMichael Shalayeff
2001-07-05IPComp support. angelos@ ok.Jean-Jacques Bernard-Gundol
2001-06-27UVM is no longer an optionArtur Grabowski
2001-06-22Fix more printf formats.Artur Grabowski
Add some missing prototypes.
2001-06-22Fix a bunch of u_int64_t formats.Artur Grabowski
2001-06-22more arguments than formatArtur Grabowski
2001-06-22block on msgbufMichael Shalayeff
2001-06-22unused variableArtur Grabowski