summaryrefslogtreecommitdiff
path: root/usr.bin/fstat
AgeCommit message (Collapse)Author
2024-05-21remove prototypes with no matching function and externs with no varJonathan Gray
partly checked by millert@
2022-06-20Remove unused struct fileops field fo_poll and callbacks.Visa Hankala
OK mpi@
2021-07-17Remove setpassent(3) leftoverskn
Those should have gone with the switch to uid_from_user(3) in r1.95; OK millert
2020-08-22Support looking up unix domain sockets by file name.Todd C. Miller
The best that we can do is string comparison of the file name. Previously, "fstat /var/run/foo.sock" would return no results. The -f option still won't work for sockets since they are not file system objects. OK kn@
2020-08-21Print unp_path for unix domain sockets. OK kn@ mvs@Todd C. Miller
2019-03-31fix Bl;Jason McIntyre
2019-03-31Document 'p' flag for file descriptors.Richard Procter
ok deraadt@
2019-02-05dev_t is signed to permit passing -1 as an invalid condition, but theTheo de Raadt
decomposition into major and minor is unsigned, so we should print them with %u instead of %d. ok guenther
2019-01-30Document that we now have support for multiple -p and -u flags.Martijn van Duren
Triggered by Marcus MERIGHI Input and OK jmc@
2019-01-28Allow fstat to filter multiple pids and multiple users at the same time.Martijn van Duren
OK deraadt@
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2019-01-21explicitly handle printing the AF_KEY socket type as "pfkey"David Gwynne
i was looking for it and had to think very hard and read /usr/include/sys/socket.h before i found it here. ok deraadt@ ok claudio@ who wanted it to look like AF_ROUTE output
2018-09-16Use uid_from_user(3) and gid_from_group(3) in utilities thatTodd C. Miller
do repeated lookups. OK tb@
2018-09-16Use user_from_uid(3) and group_from_gid(3) in a few more placesTodd C. Miller
that do repeated lookups. OK tb@
2018-09-13Fix warnings caused by user_from_uid() and group_from_gid() nowTodd C. Miller
returning const char *.
2018-04-10print rtable for internet sockets unless it's the default; based on a diffStuart Henderson
from Peter J. Philipp but printing slightly differently to avoid the need for a flag. ok claudio@ bluhm@
2018-04-06Print a 'p' flag for file descriptors that were opened after pledge(2).Alexander Bluhm
OK deraadt@
2018-03-16improve markup quality in the cases found by the new "--" style messageIngo Schwarze
2017-12-08repair columns; from kshe59@zohu.euTheo de Raadt
2017-10-17add missing HISTORY; based on CVS logs and release announcementsIngo Schwarze
2017-05-10Explain about 0x0 PCB addresses in fstat(1) output. Suggestions/ok bluhm@ jmc@Stuart Henderson
2017-01-21Expose the close-on-exec flag near the R/W flags.Theo de Raadt
ok guenther
2016-10-02Indicate with an asterisk when a file has been unlinked.Philip Guenther
from Sebastien Marie
2016-05-04Kill #ifdef INET6 occurrences in userland.Jeremie Courreges-Anglas
Prompted by and ok millert@ (tcpdump and libpcap left untouched, the #ifdef force is too strong with those)
2016-04-25remove systrace supportTed Unangst
2016-01-03Fix description of fuser -u: what's usually reported in brackets is thetb
username, as determined by the real user id, not the real user id itself. ok jmc@
2016-01-02fixes fuser(1) when invoking with -u: it requires "getpw" promise.Sebastien Marie
problem reported by Michael Reed m.reed at mykolab dot com. ok tb@ and benno@ (which as provided near the same diff, but 5min later :p)
2015-12-30Declare usage() as __dead, and while here align a few variables to the rest ofmestre
the list and also ANSI one function. No functional change. OK tb@
2015-11-17Missing "getpw" pledges, these were unnoticed because nobody expectsTheo de Raadt
a user_from_uid(3) call...
2015-10-23getnameinfo() no longer needs pledge "route". this drops toTheo de Raadt
pledge "stdio rpath".
2015-10-12in fuser mode with -k or -s mode, kill(2) might be called andTheo de Raadt
route lookups won't be needed; so expand the pledge setup to handle 3 codepaths. from theo buehler
2015-10-10pledge "stdio rpath route" seems to be working. route is needed forTheo de Raadt
pretty printing some addresses.
2015-01-31removing two instances of "c.f." - it seems actually "cf." is correct, butJason McIntyre
i removed/reworded these as in the case of ftp.1 it read badly anyway, and for fstat.1 it meant i could zap an escape sequence; while here i replaced some sequences of <space><tab> where a single <tab> was sufficient;
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-10-26Move the #define _KERNEL wrapping to only cover <sys/file.h>Philip Guenther
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-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-10expected user.h fallout; _KERNEL case needs manual pull of ucred.hTheo de Raadt
2014-05-30AF_NATM support was removed before 5.5Philip Guenther
2014-03-20this util is marked xsi;Jason McIntyre
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-07tweak previous;Jason McIntyre
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-10-02dislays -> displays; from David VasekJason McIntyre
2011-07-09rmove rotten netatalk bitsHenning Brauer
2011-05-02no need to escape `|'; as discussed with schwartzeJason McIntyre