summaryrefslogtreecommitdiff
path: root/usr.bin/vmstat/dkstats.c
AgeCommit message (Collapse)Author
2002-12-16Make systat(1), iostat(8) and vmstat(8) automatically update their diskThierry Deval
statistics when a device is added/removed. ok deraadt@
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
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
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
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).
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 ↵kstailey
apps like systat
1996-06-26rcsidTheo de Raadt
1996-05-22libutilTheo de Raadt
1996-03-03Working disk statistics; NetBSD PR 2160Thorsten Lockert