summaryrefslogtreecommitdiff
path: root/usr.bin/fstat/fstat.c
AgeCommit message (Collapse)Author
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-08-20Remove userland bits related to the crypto(4) interface; ok deraadtMike Belopuhov
2014-08-10Don't need to know how to format bluetooth socket info herePhilip Guenther
2014-05-30AF_NATM support was removed before 5.5Philip Guenther
2013-10-22- add UNIX-domain socket info to struct kinfo_file2Philip Guenther
- convert netstat from kvm_getfiles() to kvm_getfile2() using that - delete kvm_getfiles() and KERN_FILE as no longer used (bump libkvm's major) - rename kvm_getfile2() to kvm_getfiles(), kinfo_file2 to kinfo_file and KERN_FILE2 to KERN_FILE. ok deraadt@, millert@ ports scan sthen@
2013-03-31A space got lost in fstat state output, put it back.Alexander Bluhm
OK deraadt@
2013-03-24Do not leak kernel pointers, unless operating as root. Some other displayTheo de Raadt
functionality is lost, but one can argue that privacy was being violated there... ok various, including bluhm and guenther
2012-11-30makes cloned devices line up well with the rest of the output;Mike Belopuhov
ok guenther, krw
2012-01-07Add rtable id and thread id to struct kinfo_proc (and fix process id)Philip Guenthe
and add an 'rtableid' keyword to ps. Add rtable id, thread id, and socket splice info to struct kinfo_file2 and make fstat display socket splice information. Remove old KVM_PROC2 and kinfo_proc2 interfaces; bump libkvm major Socket splice info and corrections from bluhm@ "Lovely" deraadt@
2011-07-09rmove rotten netatalk bitsHenning Brauer
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-07-12Accept numeric UIDs as well as usernames like pgrep etc.Nicholas Marriott
ok millert
2009-07-08Add POSIX-compliant fuser mode to fstat. Originally based onTodd C. Miller
a diff from Peter Werner but largely rewritten to use kinfo_file2. OK deraadt@ with man fixes from jmc@ and sobrado@
2009-06-15Do not print non-vnode information if asked to report information on aMiod Vallat
particular file, regression introduced in 1.66 and reported by Navan Carson on misc@.
2009-06-11remove unused variablesCharles Longeau
ok millert@
2009-06-07Use the new kvm_getfile2 interface to do the dirty work. OK deraadt@Todd C. Miller
2009-06-03Arla client rename from xfs to nnpfs for later upgrades. Tested on various ↵Janne Johansson
arches. ok todd@ beck@
2009-05-31Don't define NFS before including kernel header files,Thordur I. Bjornsson
besides it being gnarly its useless since no magic is done if it is define. pointed out by deraadt@
2008-10-07Do not display file offsets and a few other pieces of information, exceptTheo de Raadt
to the user or the superuser. Display * for those fields instead. From PR 5113, but modified to use copyout correctly. comments from tedu, ok from others
2008-04-08bring cloning up too date; Munge it so it will work with atleastThordur I. Bjornsson
oga@'s upcoming DRM changes and too some degree ratchov@'s audio work. It still works for bpf's though. Parts from ratchov@; fstat(1) parts from Pedro Martelletto; tested by many, ok'ed by a few; "get going with cloning" deraadt@
2007-10-01sort the fields in manual page in the same order as in fstat output;Igor Sobrado
use the same name for fields in the manual page and command output; while here, fix spacing millert@ has observed that this change makes the header fields consistent with what is the output by NetBSD and FreeBSD too ok millert@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-04-07use strtonum, from jason dixonTed Unangst
2006-06-19oops, forgot \n at end of kqueue lines; Nicholas MarriottTheo de Raadt
2006-03-26do per file io accounting and show that in fstat as well; pedro@ marco@ okMichael Shalayeff
2005-12-28Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes.Pedro Martelletto
No functional change, okay tedu@.
2005-12-17Remove the 'on disk' inode (dinode) from the 'in memory' inode in UFS.Pedro Martelletto
Instead of having the dinode inside the inode structure itself, we now have just a pointer to it, and use a separate pool to allocate dinodes as needed. Inspiration from FreeBSD, various testing for a while, thanks.
2005-12-13give inode 8 positions (new ver w/ missing spaces deraadt pt out); millert@ ↵Michael Shalayeff
krw@ ok
2005-07-04make these use setres[ug]id for simple privilege dropping;Damien Miller
ok deraadt@ millert@ moritz@
2005-05-26null removal falloutTed Unangst
2004-11-17remove NI_WITHSCOPEID (which is not standard)Jun-ichiro itojun Hagino
2004-01-08Convert to kvm_getproc2(); ok deraadt@Todd C. Miller
2003-09-09add missing -o and sort options in usage();Jason McIntyre
from Andrey Matveev;
2003-07-02protosTheo de Raadt
2003-06-28cleanupTheo de Raadt
2003-06-25protosTheo de Raadt
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-13repair damage after layer fs changesTed Unangst
2002-08-04move kvm opening to earliest possible placeTheo de Raadt
2002-07-13ansiTheo de Raadt
2002-06-12a real pid_t cleanup.Mike Pechkin
espie@ ok for make/, deraadt@ one extra eye, millert@ ok
2002-05-19misc cleanups, and grok systrace betterTheo de Raadt
2002-05-18grok crypto/kqueue/systrace vnodesTheo de Raadt
2002-03-14Remove \n from err/errx/warn/warnx().Mike Pechkin
millert@ ok
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-12-01KNFTheo de Raadt
2001-11-26fix AF_INET6 dgram socket printing (missing curly brace)Jun-ichiro itojun Hagino
2001-11-19kill more registersMike Pechkin
millert@ ok
2001-07-12first pass at a -Wall cleanupTheo de Raadt