Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rename variable to avoid shadow. from Brian Callahan | 2017-05-30 | 1 | -7/+7 | |
| | |||||
* | straightforward realloc -> reallocarray conversion | 2016-09-04 | 1 | -53/+53 | |
| | | | | ok deraadt, guenther, tedu | ||||
* | Replace bzero with memset. No binary change. | 2015-12-24 | 1 | -6/+6 | |
| | | | | ok tb@ | ||||
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 1 | -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 anything | 2014-09-15 | 1 | -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 truncate | 2010-09-24 | 1 | -2/+13 | |
| | | | | | the : and uid components out -- otherwise these two programs will work poorly. | ||||
* | Remove setresguid since it is no longer needed. | 2010-07-20 | 1 | -11/+1 | |
| | | | | ok matthew@ millert@ deraadt@ | ||||
* | typos; ok jmc@ | 2007-11-26 | 1 | -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 calls | 2007-10-24 | 1 | -1/+19 | |
| | | | | Ok gilles@ moritz@ | ||||
* | add missing checks against NULL on last.dk_rbytes and last.dk_wbytes | 2007-10-23 | 1 | -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@ | ||||
* | spacing | 2006-03-31 | 1 | -7/+7 | |
| | |||||
* | lint-driven cleanup. nothing too scary in this diff. | 2006-03-31 | 1 | -17/+21 | |
| | |||||
* | delint; from David Hill | 2006-03-13 | 1 | -4/+4 | |
| | |||||
* | Use queue macros instead of directly accessing fields. ok pat@ "put it | 2005-10-17 | 1 | -4/+4 | |
| | | | | in" deraadt@ | ||||
* | make these use setres[ug]id for simple privilege dropping; | 2005-07-04 | 1 | -7/+9 | |
| | | | | ok deraadt@ millert@ moritz@ | ||||
* | Fix pasto in realloc portion of dkreadstats; from Pedro Martelletto | 2004-04-22 | 1 | -3/+3 | |
| | | | | OK drahn@ | ||||
* | new arg to disk_unbusy, to record separate read/write statistics. | 2004-02-15 | 1 | -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 3322 | 2003-06-18 | 1 | -9/+6 | |
| | |||||
* | Make systat(1), iostat(8) and vmstat(8) automatically update their disk | 2002-12-16 | 1 | -25/+162 | |
| | | | | statistics when a device is added/removed. ok deraadt@ | ||||
* | ansi | 2002-09-17 | 1 | -8/+5 | |
| | |||||
* | only open kvm once between these two | 2002-08-04 | 1 | -3/+12 | |
| | |||||
* | wrap NOKVM variables too | 2002-06-28 | 1 | -1/+9 | |
| | |||||
* | mark which nlist[] kmem entries are not needed in the sysctl case, and which are | 2002-06-19 | 1 | -14/+14 | |
| | |||||
* | Missing newline at end of file. from krause | 2002-06-08 | 1 | -2/+2 | |
| | |||||
* | if NOKVM is defined, do not do the KVM stuff at all | 2002-05-23 | 1 | -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. | 2002-02-16 | 1 | -2/+2 | |
| | |||||
* | plug mem leak; zero right amount of mem | 2001-07-21 | 1 | -2/+3 | |
| | |||||
* | Read struct diskstats from the kernel. | 2001-06-03 | 1 | -10/+11 | |
| | |||||
* | No need to use calloc gratuitously. | 2001-05-14 | 1 | -3/+3 | |
| | |||||
* | Use warn() consistently. | 2001-05-14 | 1 | -6/+6 | |
| | |||||
* | Use the sysctl-based diskstats for live kernels. deraadt@ ok | 2001-05-14 | 1 | -43/+135 | |
| | |||||
* | check for another allocation failure | 2001-01-02 | 1 | -4/+6 | |
| | |||||
* | More format string paranoia; deraadt@ ok | 2000-10-03 | 1 | -2/+2 | |
| | |||||
* | warnx?/errx? paranoia (use "%s" not a bare string unless it is a | 2000-06-30 | 1 | -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 *. | 1999-06-21 | 1 | -2/+2 | |
| | |||||
* | Move prototypes into dkstats.h so systat can get at them. | 1997-06-23 | 1 | -4/+1 | |
| | |||||
* | deleted warnx() about "no drives attached" since dkinit() is used in curses apps like systat | 1997-02-04 | 1 | -4/+1 | |
| | |||||
* | rcsid | 1996-06-26 | 1 | -0/+1 | |
| | |||||
* | libutil | 1996-05-22 | 1 | -4/+4 | |
| | |||||
* | Working disk statistics; NetBSD PR 2160 | 1996-03-03 | 1 | -0/+271 | |