summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat/dkstats.c
AgeCommit message (Expand)Author
2017-05-30rename variable to avoid shadow. from Brian CallahanTed Unangst
2016-09-04straightforward realloc -> reallocarray conversionTheo Buehler
2015-12-24Replace bzero with memset. No binary change.mmcc
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
2014-09-15Remove non-standard <sys/dkstat.h> header. It has not contained anythingMiod Vallat
2010-09-24Now that HW_DISKNAMES returns xx0: or xx0:uid entries, we must truncateTheo de Raadt
2010-07-20Remove setresguid since it is no longer needed.lum
2007-11-26typos; ok jmc@Martynas Venckus
2007-10-24add missing checks against NULL after realloc callsCharles Longeau
2007-10-23add missing checks against NULL on last.dk_rbytes and last.dk_wbytesCharles Longeau
2006-03-31spacingTheo de Raadt
2006-03-31lint-driven cleanup. nothing too scary in this diff.Theo de Raadt
2006-03-13delint; from David HillOtto Moerbeek
2005-10-17Use queue macros instead of directly accessing fields. ok pat@ "put itOtto Moerbeek
2005-07-04make these use setres[ug]id for simple privilege dropping;Damien Miller
2004-04-22Fix pasto in realloc portion of dkreadstats; from Pedro MartellettoTodd C. Miller
2004-02-15new arg to disk_unbusy, to record separate read/write statistics.Ted Unangst
2003-06-18Add missing check for i < dk_ndrive in 2 loops; closes PR 3322Todd C. Miller
2002-12-16Make systat(1), iostat(8) and vmstat(8) automatically update their diskThierry Deval
2002-09-17ansiTheo de Raadt
2002-08-04only open kvm once between these twoTheo de Raadt
2002-06-28wrap NOKVM variables tooTheo de Raadt
2002-06-19mark which nlist[] kmem entries are not needed in the sysctl case, and which areTheo de Raadt
2002-06-08Missing newline at end of file. from krauseDale Rahn
2002-05-23if NOKVM is defined, do not do the KVM stuff at allTheo de Raadt
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ...Todd C. Miller
2001-07-21plug mem leak; zero right amount of memTheo de Raadt
2001-06-03Read struct diskstats from the kernel.Angelos D. Keromytis
2001-05-14No need to use calloc gratuitously.Angelos D. Keromytis
2001-05-14Use warn() consistently.Angelos D. Keromytis
2001-05-14Use the sysctl-based diskstats for live kernels. deraadt@ okAngelos D. Keromytis
2001-01-02check for another allocation failureTheo de Raadt
2000-10-03More format string paranoia; deraadt@ okAaron Campbell
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
1999-06-21stop casting the third argument to kvm_read to char *. it is a void *.Artur Grabowski
1997-06-23Move prototypes into dkstats.h so systat can get at them.Todd C. Miller
1997-02-04deleted warnx() about "no drives attached" since dkinit() is used in curses a...kstailey
1996-06-26rcsidTheo de Raadt
1996-05-22libutilTheo de Raadt
1996-03-03Working disk statistics; NetBSD PR 2160Thorsten Lockert