summaryrefslogtreecommitdiff
path: root/sbin/sysctl/sysctl.c
AgeCommit message (Collapse)Author
2006-10-19Add WATTHOUR and AMPHOURMarco Peereboom
ok jordan@
2006-06-05Simpler code for printing time sensors: no leak and no floatingOtto Moerbeek
point. ok deraadt@
2006-06-04print time offsets much nicerTheo de Raadt
2006-04-25for SENSOR_TIMEDELTA, store time in nanoseconds. discussion with kettenisTheo de Raadt
mbalmer will have to cope.
2006-04-25if the timeval has data, print it at the end of the lineTheo de Raadt
2006-04-20print timedelta; ok dlgTheo de Raadt
2006-04-18Discussed with jason@ that pfail means "partial fail". Now it translatesMarco Peereboom
to "degraded". ok jason@
2006-04-13Change how hw.sensors prints. Much simpler format, easier to read. WhileTheo de Raadt
there, stick to printing temperature measurements in just one sane unit. ok various people, no objections for the latter
2006-04-02malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaksDamien Miller
suggested by kjell@; ok otto@ pat@ millert@ jaredy@
2005-11-30add a sensor type for drive status and hook esm up with it.David Gwynne
ok marco@ grange@ deraadt@
2005-11-15Add support for light sensors.Mark Kettenis
ok dlg@
2005-11-12more memleaks plugged; evol@online.ptt.ruTheo de Raadt
2005-11-12memory leak; ok cloderTheo de Raadt
2005-10-23Add support for SENSOR_AMPS.Mark Kettenis
ok dlg@
2005-08-05add a sensor type that can report percentageDavid Gwynne
ok deraadt@
2005-08-04HW_PHYSMEM and HW_USERMEM should be unsigned; ok tdeval marcoTheo de Raadt
2005-08-04Support for SENSOR_INTEGER.Jonathan Gray
ok grange@, dlg@, henning@
2005-08-04a quick diff for marco, who wanted to see if his power supplies were on orDavid Gwynne
off. adds printing of the INDICATOR sensor type ok deraadt@
2005-08-03extend the sensors framework to allow it to report the state of theDavid Gwynne
sensor, not just its value. ok henning@ marco@ deraadt@ beck@ fixes and tweaks grange@
2005-07-20Print the last two kern.nchstats entries.Miod Vallat
2005-05-24add net.inet.ip.ifq for monitoring and changing ifqueue; similar to netbsdMarkus Friedl
ok henning
2005-04-24it is nice if this compiles on other systemsTheo de Raadt
2005-04-24Do down-sampling of the high-resolution touch pad events in kernel,Uwe Stuehler
and provide sysctls for fine-tuning the touch pad area that covers the screen. Reasonable defaults are provided, but each machine can be a bit different due to the manufacturing process.
2005-04-20actually error out when we would overflow by using the return value fromBob Beck
strlcpy, instead of just warning about out, and clobbering stuff anyway. ok millert@
2005-04-13avoid variable aliasingTheo de Raadt
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