summaryrefslogtreecommitdiffstats
path: root/usr.bin/fstat/fstat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+5
| | | | | | | | | 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 userland bits related to the crypto(4) interface; ok deraadtmikeb2014-08-201-18/+1
|
* Don't need to know how to format bluetooth socket info hereguenther2014-08-101-7/+1
|
* AF_NATM support was removed before 5.5guenther2014-05-301-7/+1
|
* - add UNIX-domain socket info to struct kinfo_file2guenther2013-10-221-30/+30
| | | | | | | | | | - 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@
* A space got lost in fstat state output, put it back.bluhm2013-03-311-2/+2
| | | | OK deraadt@
* Do not leak kernel pointers, unless operating as root. Some other displayderaadt2013-03-241-32/+57
| | | | | | functionality is lost, but one can argue that privacy was being violated there... ok various, including bluhm and guenther
* makes cloned devices line up well with the rest of the output;mikeb2012-11-301-2/+2
| | | | ok guenther, krw
* Add rtable id and thread id to struct kinfo_proc (and fix process id)guenther2012-01-071-67/+169
| | | | | | | | | | | 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@
* rmove rotten netatalk bitshenning2011-07-091-7/+1
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-12/+1
| | | | | | | 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
* Accept numeric UIDs as well as usernames like pgrep etc.nicm2009-07-121-5/+11
| | | | ok millert
* Add POSIX-compliant fuser mode to fstat. Originally based onmillert2009-07-081-51/+159
| | | | | a diff from Peter Werner but largely rewritten to use kinfo_file2. OK deraadt@ with man fixes from jmc@ and sobrado@
* Do not print non-vnode information if asked to report information on amiod2009-06-151-7/+12
| | | | | particular file, regression introduced in 1.66 and reported by Navan Carson on misc@.
* remove unused variableschl2009-06-111-4/+3
| | | | ok millert@
* Use the new kvm_getfile2 interface to do the dirty work. OK deraadt@millert2009-06-071-645/+230
|
* Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@jj2009-06-031-16/+16
|
* Don't define NFS before including kernel header files,thib2009-05-311-4/+2
| | | | | | | besides it being gnarly its useless since no magic is done if it is define. pointed out by deraadt@
* Do not display file offsets and a few other pieces of information, exceptderaadt2008-10-071-8/+26
| | | | | | 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
* bring cloning up too date; Munge it so it will work with atleastthib2008-04-081-4/+47
| | | | | | | | | 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@
* sort the fields in manual page in the same order as in fstat output;sobrado2007-10-011-7/+7
| | | | | | | | | | 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@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-3/+3
|
* use strtonum, from jason dixontedu2007-04-071-5/+7
|
* oops, forgot \n at end of kqueue lines; Nicholas Marriottderaadt2006-06-191-3/+3
|
* do per file io accounting and show that in fstat as well; pedro@ marco@ okmickey2006-03-261-31/+53
|
* Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes.pedro2005-12-281-5/+5
| | | | No functional change, okay tedu@.
* Remove the 'on disk' inode (dinode) from the 'in memory' inode in UFS.pedro2005-12-171-2/+22
| | | | | | 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.
* give inode 8 positions (new ver w/ missing spaces deraadt pt out); millert@ krw@ okmickey2005-12-131-6/+6
|
* make these use setres[ug]id for simple privilege dropping;djm2005-07-041-8/+10
| | | | ok deraadt@ millert@ moritz@
* null removal fallouttedu2005-05-261-83/+2
|
* remove NI_WITHSCOPEID (which is not standard)itojun2004-11-171-7/+3
|
* Convert to kvm_getproc2(); ok deraadt@millert2004-01-081-18/+16
|
* add missing -o and sort options in usage();jmc2003-09-091-4/+4
| | | | from Andrey Matveev;
* protosderaadt2003-07-021-5/+7
|
* cleanupderaadt2003-06-281-5/+5
|
* protosderaadt2003-06-251-4/+3
|
* mostly ansi cleanup; pval okderaadt2003-06-101-5/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* repair damage after layer fs changestedu2003-05-131-3/+3
|
* move kvm opening to earliest possible placederaadt2002-08-041-17/+17
|
* ansideraadt2002-07-131-52/+19
|
* a real pid_t cleanup.mpech2002-06-121-20/+28
| | | | | | espie@ ok for make/, deraadt@ one extra eye, millert@ ok
* misc cleanups, and grok systrace betterderaadt2002-05-191-29/+28
|
* grok crypto/kqueue/systrace vnodesderaadt2002-05-181-2/+78
|
* Remove \n from err/errx/warn/warnx().mpech2002-03-141-3/+3
| | | | millert@ ok
* 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-16/+16
|
* KNFderaadt2001-12-011-19/+22
|
* fix AF_INET6 dgram socket printing (missing curly brace)itojun2001-11-261-3/+4
|
* kill more registersmpech2001-11-191-7/+7
| | | | millert@ ok
* first pass at a -Wall cleanupderaadt2001-07-121-5/+8
|