summaryrefslogtreecommitdiffstats
path: root/usr.bin/vmstat/dkstats.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rename variable to avoid shadow. from Brian Callahantedu2017-05-301-7/+7
|
* straightforward realloc -> reallocarray conversiontb2016-09-041-53/+53
| | | | ok deraadt, guenther, tedu
* Replace bzero with memset. No binary change.mmcc2015-12-241-6/+6
| | | | ok tb@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* Remove non-standard <sys/dkstat.h> header. It has not contained anythingmiod2014-09-151-2/+2
| | | | | | | | | | related to disk stastics for almost 17 years, and the remaining userland-visible defines duplicate those found in <sys/sched.h>. Move the remaining _KERNEL defines to <sys/tty.h> where they belong, and update all users to cope with this. ok kettenis@
* Now that HW_DISKNAMES returns xx0: or xx0:uid entries, we must truncatederaadt2010-09-241-2/+13
| | | | | the : and uid components out -- otherwise these two programs will work poorly.
* Remove setresguid since it is no longer needed.lum2010-07-201-11/+1
| | | | ok matthew@ millert@ deraadt@
* typos; ok jmc@martynas2007-11-261-2/+2
| | | | | sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
* add missing checks against NULL after realloc callschl2007-10-241-1/+19
| | | | Ok gilles@ moritz@
* add missing checks against NULL on last.dk_rbytes and last.dk_wbyteschl2007-10-231-6/+7
| | | | | | | | reorder operations to make it easier to read and check From Igor Zinovik <zinovik@cs.karelia.ru> "looks ok" otto@ "looks correct" ray@ ok gilles@ "looks fine" moritz@
* spacingderaadt2006-03-311-7/+7
|
* lint-driven cleanup. nothing too scary in this diff.deraadt2006-03-311-17/+21
|
* delint; from David Hillotto2006-03-131-4/+4
|
* Use queue macros instead of directly accessing fields. ok pat@ "put itotto2005-10-171-4/+4
| | | | in" deraadt@
* make these use setres[ug]id for simple privilege dropping;djm2005-07-041-7/+9
| | | | ok deraadt@ millert@ moritz@
* Fix pasto in realloc portion of dkreadstats; from Pedro Martellettomillert2004-04-221-3/+3
| | | | OK drahn@
* new arg to disk_unbusy, to record separate read/write statistics.tedu2004-02-151-40/+77
| | | | | looked at by various, testing henning@ mcbride@ dan weeks mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>
* Add missing check for i < dk_ndrive in 2 loops; closes PR 3322millert2003-06-181-9/+6
|
* Make systat(1), iostat(8) and vmstat(8) automatically update their disktdeval2002-12-161-25/+162
| | | | statistics when a device is added/removed. ok deraadt@
* ansideraadt2002-09-171-8/+5
|
* only open kvm once between these twoderaadt2002-08-041-3/+12
|
* wrap NOKVM variables tooderaadt2002-06-281-1/+9
|
* mark which nlist[] kmem entries are not needed in the sysctl case, and which arederaadt2002-06-191-14/+14
|
* Missing newline at end of file. from krausedrahn2002-06-081-2/+2
|
* if NOKVM is defined, do not do the KVM stuff at allderaadt2002-05-231-19/+29
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-2/+2
|
* plug mem leak; zero right amount of memderaadt2001-07-211-2/+3
|
* Read struct diskstats from the kernel.angelos2001-06-031-10/+11
|
* No need to use calloc gratuitously.angelos2001-05-141-3/+3
|
* Use warn() consistently.angelos2001-05-141-6/+6
|
* Use the sysctl-based diskstats for live kernels. deraadt@ okangelos2001-05-141-43/+135
|
* check for another allocation failurederaadt2001-01-021-4/+6
|
* More format string paranoia; deraadt@ okaaron2000-10-031-2/+2
|
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-2/+2
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
* stop casting the third argument to kvm_read to char *. it is a void *.art1999-06-211-2/+2
|
* Move prototypes into dkstats.h so systat can get at them.millert1997-06-231-4/+1
|
* deleted warnx() about "no drives attached" since dkinit() is used in curses apps like systatkstailey1997-02-041-4/+1
|
* rcsidderaadt1996-06-261-0/+1
|
* libutilderaadt1996-05-221-4/+4
|
* Working disk statistics; NetBSD PR 2160tholo1996-03-031-0/+271