freebsd-nq/usr.bin/systat
Alexander Leidinger 99f6b270e3 Import OpenBSD's sysctl hardware sensors framework.
This commit includes the following core components:

 * sample configuration file for sensorsd
 * rc(8) script and glue code for sensorsd(8)
 * sysctl(3) doc fixes for CTL_HW tree
 * sysctl(3) documentation for hardware sensors
 * sysctl(8) documentation for hardware sensors
 * support for the sensor structure for sysctl(8)
 * rc.conf(5) documentation for starting sensorsd(8)
 * sensor_attach(9) et al documentation
 * /sys/kern/kern_sensors.c
   o sensor_attach(9) API for drivers to register ksensors
   o sensor_task_register(9) API for the update task
   o sysctl(3) glue code
   o hw.sensors shadow tree for sysctl(8) internal magic
 * <sys/sensors.h>
 * HW_SENSORS definition for <sys/sysctl.h>
 * sensors display for systat(1), including documentation
 * sensorsd(8) and all applicable documentation

The userland part of the framework is entirely source-code
compatible with OpenBSD 4.1, 4.2 and  -current as of today.

All sensor readings can be viewed with `sysctl hw.sensors`,
monitored in semi-realtime with `systat -sensors` and also
logged with `sensorsd`.

Submitted by:	Constantine A. Murenin <cnst@FreeBSD.org>
Sponsored by:	Google Summer of Code 2007 (GSoC2007/cnst-sensors)
Mentored by:	syrinx
Tested by:	many
OKed by:	kensmith
Obtained from:	OpenBSD (parts)
2007-10-14 10:45:31 +00:00
..
cmds.c
cmdtab.c Import OpenBSD's sysctl hardware sensors framework. 2007-10-14 10:45:31 +00:00
convtbl.c Fix definitions of kilobits etc. 2007-01-18 09:24:08 +00:00
convtbl.h Add the Tera scale factor, which is an easy job now. 2006-11-27 16:33:44 +00:00
devs.c
devs.h
extern.h Import OpenBSD's sysctl hardware sensors framework. 2007-10-14 10:45:31 +00:00
fetch.c
icmp6.c Remove trailing whitespace. 2006-04-30 04:47:23 +00:00
icmp.c Remove trailing whitespace. 2006-04-30 04:47:23 +00:00
ifcmds.c Keep all convtbl-related constants and strings in convtbl.[ch]. 2006-11-27 16:14:32 +00:00
ifstat.c Remove a wrong "const" qualifier. 2006-11-27 16:59:08 +00:00
iostat.c Consistently mark percentage scales as such. 2006-11-27 20:19:05 +00:00
ip6.c Remove trailing whitespace. 2006-04-30 04:47:23 +00:00
ip.c Remove trailing whitespace. 2006-04-30 04:47:23 +00:00
keyboard.c
main.c Remove trailing whitespace. 2006-04-30 04:47:23 +00:00
Makefile Import OpenBSD's sysctl hardware sensors framework. 2007-10-14 10:45:31 +00:00
mbufs.c Remove MT_FTABLE printout in systat, as MT_FTABLE mbufs are no longer 2006-07-24 01:49:24 +00:00
mode.c
mode.h
netcmds.c
netstat.c The logic of fetchnetstat_sysctl() isn't too complex: if idx is 0, 2006-11-27 17:34:40 +00:00
pigs.c - Move all of the PS_ flags into either p_flag or td_flags. 2007-09-17 05:31:39 +00:00
sensors.c Import OpenBSD's sysctl hardware sensors framework. 2007-10-14 10:45:31 +00:00
swap.c Add missing things: a prototype and a const qualifier. 2006-12-23 22:39:38 +00:00
systat.1 Import OpenBSD's sysctl hardware sensors framework. 2007-10-14 10:45:31 +00:00
systat.h Remove trailing whitespace. 2006-04-30 04:47:23 +00:00
tcp.c Expand TCP counters from 9 digits to 12. 2007-06-15 18:12:58 +00:00
vmstat.c - Revert signedness type changes to "struct vmtotal"; by making 2006-11-28 12:46:02 +00:00