OpenBSD CVS

CVS log for src/usr.bin/fstat/fstat.c


[BACK] Up to [local] / src / usr.bin / fstat

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.103 / (download) - annotate - [select for diffs], Mon Jun 20 01:39:44 2022 UTC (22 months, 4 weeks ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, HEAD
Changes since 1.102: +2 -3 lines
Diff to previous 1.102 (colored)

Remove unused struct fileops field fo_poll and callbacks.

OK mpi@

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jul 17 20:46:02 2021 UTC (2 years, 10 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.101: +1 -5 lines
Diff to previous 1.101 (colored)

Remove setpassent(3) leftovers

Those should have gone with the switch to uid_from_user(3) in r1.95;

OK millert

Revision 1.101 / (download) - annotate - [select for diffs], Sat Aug 22 18:34:29 2020 UTC (3 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.100: +27 -6 lines
Diff to previous 1.100 (colored)

Support looking up unix domain sockets by file name.
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@

Revision 1.100 / (download) - annotate - [select for diffs], Fri Aug 21 22:13:15 2020 UTC (3 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.99: +3 -1 lines
Diff to previous 1.99 (colored)

Print unp_path for unix domain sockets.  OK kn@ mvs@

Revision 1.99 / (download) - annotate - [select for diffs], Tue Feb 5 02:17:32 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

dev_t is signed to permit passing -1 as an invalid condition, but the
decomposition into major and minor is unsigned, so we should print them
with %u instead of %d.
ok guenther

Revision 1.98 / (download) - annotate - [select for diffs], Mon Jan 28 17:49:50 2019 UTC (5 years, 3 months ago) by martijn
Branch: MAIN
Changes since 1.97: +45 -15 lines
Diff to previous 1.97 (colored)

Allow fstat to filter multiple pids and multiple users at the same time.

OK deraadt@

Revision 1.97 / (download) - annotate - [select for diffs], Fri Jan 25 00:19:26 2019 UTC (5 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

I am retiring my old email address;  replace it with my OpenBSD one.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Jan 21 07:16:28 2019 UTC (5 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.95: +6 -1 lines
Diff to previous 1.95 (colored)

explicitly handle printing the AF_KEY socket type as "pfkey"

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

Revision 1.95 / (download) - annotate - [select for diffs], Sun Sep 16 02:44:06 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.94: +10 -5 lines
Diff to previous 1.94 (colored)

Use uid_from_user(3) and gid_from_group(3) in utilities that
do repeated lookups.  OK tb@

Revision 1.94 / (download) - annotate - [select for diffs], Thu Sep 13 15:23:32 2018 UTC (5 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.93: +2 -2 lines
Diff to previous 1.93 (colored)

Fix warnings caused by user_from_uid() and group_from_gid() now
returning const char *.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Apr 10 11:09:14 2018 UTC (6 years, 1 month ago) by sthen
Branch: MAIN
Changes since 1.92: +5 -1 lines
Diff to previous 1.92 (colored)

print rtable for internet sockets unless it's the default; based on a diff
from Peter J. Philipp but printing slightly differently to avoid the need
for a flag. ok claudio@ bluhm@

Revision 1.92 / (download) - annotate - [select for diffs], Fri Apr 6 14:05:06 2018 UTC (6 years, 1 month ago) by bluhm
Branch: MAIN
Changes since 1.91: +3 -1 lines
Diff to previous 1.91 (colored)

Print a 'p' flag for file descriptors that were opened after pledge(2).
OK deraadt@

Revision 1.91 / (download) - annotate - [select for diffs], Fri Dec 8 17:51:26 2017 UTC (6 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

repair columns; from kshe59@zohu.eu

Revision 1.90 / (download) - annotate - [select for diffs], Sat Jan 21 12:21:57 2017 UTC (7 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.89: +11 -8 lines
Diff to previous 1.89 (colored)

Expose the close-on-exec flag near the R/W flags.
ok guenther

Revision 1.89 / (download) - annotate - [select for diffs], Sun Oct 2 23:16:08 2016 UTC (7 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.88: +4 -2 lines
Diff to previous 1.88 (colored)

Indicate with an asterisk when a file has been unlinked.

from Sebastien Marie

Revision 1.88 / (download) - annotate - [select for diffs], Wed May 4 19:48:08 2016 UTC (8 years ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.87: +1 -11 lines
Diff to previous 1.87 (colored)

Kill #ifdef INET6 occurrences in userland.

Prompted by and ok millert@

(tcpdump and libpcap left untouched, the #ifdef force is too strong with
those)

Revision 1.87 / (download) - annotate - [select for diffs], Mon Apr 25 19:18:41 2016 UTC (8 years ago) by tedu
Branch: MAIN
Changes since 1.86: +1 -19 lines
Diff to previous 1.86 (colored)

remove systrace support

Revision 1.86 / (download) - annotate - [select for diffs], Sat Jan 2 13:22:52 2016 UTC (8 years, 4 months ago) by semarie
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.85: +14 -2 lines
Diff to previous 1.85 (colored)

fixes fuser(1) when invoking with -u: it requires "getpw" promise.

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)

Revision 1.85 / (download) - annotate - [select for diffs], Wed Dec 30 19:02:12 2015 UTC (8 years, 4 months ago) by mestre
Branch: MAIN
Changes since 1.84: +6 -7 lines
Diff to previous 1.84 (colored)

Declare usage() as __dead, and while here align a few variables to the rest of
the list and also ANSI one function. No functional change.

OK tb@

Revision 1.84 / (download) - annotate - [select for diffs], Tue Nov 17 17:17:24 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.83: +2 -2 lines
Diff to previous 1.83 (colored)

Missing "getpw" pledges, these were unnoticed because nobody expects
a user_from_uid(3) call...

Revision 1.83 / (download) - annotate - [select for diffs], Fri Oct 23 13:21:10 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

getnameinfo() no longer needs pledge "route".  this drops to
pledge "stdio rpath".

Revision 1.82 / (download) - annotate - [select for diffs], Mon Oct 12 14:09:32 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.81: +13 -3 lines
Diff to previous 1.81 (colored)

in fuser mode with -k or -s mode, kill(2) might be called and
route lookups won't be needed; so expand the pledge setup to handle
3 codepaths.
from theo buehler

Revision 1.81 / (download) - annotate - [select for diffs], Sat Oct 10 14:29:05 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.80: +4 -1 lines
Diff to previous 1.80 (colored)

pledge "stdio rpath route" seems to be working.  route is needed for
pretty printing some addresses.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:08 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.79: +5 -3 lines
Diff to previous 1.79 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

Revision 1.79 / (download) - annotate - [select for diffs], Wed Aug 20 11:23:42 2014 UTC (9 years, 9 months ago) by mikeb
Branch: MAIN
Changes since 1.78: +1 -18 lines
Diff to previous 1.78 (colored)

Remove userland bits related to the crypto(4) interface;  ok deraadt

Revision 1.78 / (download) - annotate - [select for diffs], Sun Aug 10 07:29:45 2014 UTC (9 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.77: +1 -7 lines
Diff to previous 1.77 (colored)

Don't need to know how to format bluetooth socket info here

Revision 1.77 / (download) - annotate - [select for diffs], Fri May 30 07:14:46 2014 UTC (9 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.76: +1 -7 lines
Diff to previous 1.76 (colored)

AF_NATM support was removed before 5.5

Revision 1.76 / (download) - annotate - [select for diffs], Tue Oct 22 16:40:27 2013 UTC (10 years, 6 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.75: +30 -30 lines
Diff to previous 1.75 (colored)

- add UNIX-domain socket info to struct kinfo_file2
- 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@

Revision 1.75 / (download) - annotate - [select for diffs], Sun Mar 31 01:42:28 2013 UTC (11 years, 1 month ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

A space got lost in fstat state output, put it back.
OK deraadt@

Revision 1.74 / (download) - annotate - [select for diffs], Sun Mar 24 15:09:13 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.73: +57 -32 lines
Diff to previous 1.73 (colored)

Do not leak kernel pointers, unless operating as root.  Some other display
functionality is lost, but one can argue that privacy was being violated
there...
ok various, including bluhm and guenther

Revision 1.73 / (download) - annotate - [select for diffs], Fri Nov 30 14:40:03 2012 UTC (11 years, 5 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

makes cloned devices line up well with the rest of the output;
ok guenther, krw

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jan 7 05:38:12 2012 UTC (12 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.71: +169 -67 lines
Diff to previous 1.71 (colored)

Add rtable id and thread id to struct kinfo_proc (and fix process id)
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@

Revision 1.71 / (download) - annotate - [select for diffs], Sat Jul 9 00:45:40 2011 UTC (12 years, 10 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.70: +1 -7 lines
Diff to previous 1.70 (colored)

rmove rotten netatalk bits

Revision 1.70 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:38 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.69: +1 -12 lines
Diff to previous 1.69 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
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

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jul 12 21:33:30 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.68: +11 -5 lines
Diff to previous 1.68 (colored)

Accept numeric UIDs as well as usernames like pgrep etc.

ok millert

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jul 8 16:04:00 2009 UTC (14 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.67: +159 -51 lines
Diff to previous 1.67 (colored)

Add POSIX-compliant fuser mode to fstat.  Originally based on
a diff from Peter Werner but largely rewritten to use kinfo_file2.
OK deraadt@ with man fixes from jmc@ and sobrado@

Revision 1.67 / (download) - annotate - [select for diffs], Mon Jun 15 04:19:59 2009 UTC (14 years, 11 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.66: +12 -7 lines
Diff to previous 1.66 (colored)

Do not print non-vnode information if asked to report information on a
particular file, regression introduced in 1.66 and reported by Navan Carson
on misc@.

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jun 11 21:09:46 2009 UTC (14 years, 11 months ago) by chl
Branch: MAIN
Changes since 1.65: +3 -4 lines
Diff to previous 1.65 (colored)

remove unused variables

ok millert@

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jun 7 03:10:09 2009 UTC (14 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.64: +231 -646 lines
Diff to previous 1.64 (colored)

Use the new kvm_getfile2 interface to do the dirty work.  OK deraadt@

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jun 3 14:45:55 2009 UTC (14 years, 11 months ago) by jj
Branch: MAIN
Changes since 1.63: +16 -16 lines
Diff to previous 1.63 (colored)

Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@

Revision 1.63 / (download) - annotate - [select for diffs], Sun May 31 19:31:23 2009 UTC (14 years, 11 months ago) by thib
Branch: MAIN
Changes since 1.62: +0 -2 lines
Diff to previous 1.62 (colored)

Don't define NFS before including kernel header files,
besides it being gnarly its useless since no magic is
done if it is define.

pointed out by deraadt@

Revision 1.62 / (download) - annotate - [select for diffs], Tue Oct 7 02:20:12 2008 UTC (15 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.61: +26 -8 lines
Diff to previous 1.61 (colored)

Do not display file offsets and a few other pieces of information, except
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

Revision 1.61 / (download) - annotate - [select for diffs], Tue Apr 8 14:46:45 2008 UTC (16 years, 1 month ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.60: +47 -4 lines
Diff to previous 1.60 (colored)

bring cloning up too date; Munge it so it will work with atleast
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@

Revision 1.60 / (download) - annotate - [select for diffs], Mon Oct 1 22:06:02 2007 UTC (16 years, 7 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.59: +7 -7 lines
Diff to previous 1.59 (colored)

sort the fields in manual page in the same order as in fstat output;
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@

Revision 1.59 / (download) - annotate - [select for diffs], Sun Sep 2 15:19:32 2007 UTC (16 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg

Revision 1.58 / (download) - annotate - [select for diffs], Sat Apr 7 23:20:19 2007 UTC (17 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.57: +7 -5 lines
Diff to previous 1.57 (colored)

use strtonum, from jason dixon

Revision 1.57 / (download) - annotate - [select for diffs], Mon Jun 19 22:31:20 2006 UTC (17 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

oops, forgot \n at end of kqueue lines; Nicholas Marriott

Revision 1.56 / (download) - annotate - [select for diffs], Sun Mar 26 17:47:11 2006 UTC (18 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.55: +53 -31 lines
Diff to previous 1.55 (colored)

do per file io accounting and show that in fstat as well; pedro@ marco@ ok

Revision 1.55 / (download) - annotate - [select for diffs], Wed Dec 28 20:48:18 2005 UTC (18 years, 4 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.54: +5 -5 lines
Diff to previous 1.54 (colored)

Use the DIP macros to uniformly access fields from UFS1 and UFS2 dinodes.
No functional change, okay tedu@.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Dec 17 13:56:02 2005 UTC (18 years, 5 months ago) by pedro
Branch: MAIN
Changes since 1.53: +22 -2 lines
Diff to previous 1.53 (colored)

Remove the 'on disk' inode (dinode) from the 'in memory' inode in UFS.
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.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Dec 13 22:21:02 2005 UTC (18 years, 5 months ago) by mickey
Branch: MAIN
Changes since 1.52: +6 -6 lines
Diff to previous 1.52 (colored)

give inode 8 positions (new ver w/ missing spaces deraadt pt out); millert@ krw@ ok

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jul 4 01:54:09 2005 UTC (18 years, 10 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.51: +10 -8 lines
Diff to previous 1.51 (colored)

make these use setres[ug]id for simple privilege dropping;
ok deraadt@ millert@ moritz@

Revision 1.51 / (download) - annotate - [select for diffs], Thu May 26 05:15:56 2005 UTC (18 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.50: +2 -83 lines
Diff to previous 1.50 (colored)

null removal fallout

Revision 1.50 / (download) - annotate - [select for diffs], Wed Nov 17 01:47:20 2004 UTC (19 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.49: +3 -7 lines
Diff to previous 1.49 (colored)

remove NI_WITHSCOPEID (which is not standard)

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jan 8 19:28:56 2004 UTC (20 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.48: +16 -18 lines
Diff to previous 1.48 (colored)

Convert to kvm_getproc2(); ok deraadt@

Revision 1.48 / (download) - annotate - [select for diffs], Tue Sep 9 04:46:44 2003 UTC (20 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

add missing -o and sort options in usage();
from Andrey Matveev;

Revision 1.47 / (download) - annotate - [select for diffs], Wed Jul 2 21:04:10 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.46: +7 -5 lines
Diff to previous 1.46 (colored)

protos

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jun 28 16:49:44 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

cleanup

Revision 1.45 / (download) - annotate - [select for diffs], Wed Jun 25 21:19:19 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.44: +3 -4 lines
Diff to previous 1.44 (colored)

protos

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:46 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.43: +3 -5 lines
Diff to previous 1.43 (colored)

mostly ansi cleanup; pval ok

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:08 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.42: +3 -7 lines
Diff to previous 1.42 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.42 / (download) - annotate - [select for diffs], Tue May 13 01:41:48 2003 UTC (21 years ago) by tedu
Branch: MAIN
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

repair damage after layer fs changes

Revision 1.41 / (download) - annotate - [select for diffs], Sun Aug 4 00:48:34 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.40: +17 -17 lines
Diff to previous 1.40 (colored)

move kvm opening to earliest possible place

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jul 13 06:02:57 2002 UTC (21 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.39: +19 -52 lines
Diff to previous 1.39 (colored)

ansi

Revision 1.39 / (download) - annotate - [select for diffs], Wed Jun 12 06:07:15 2002 UTC (21 years, 11 months ago) by mpech
Branch: MAIN
Changes since 1.38: +28 -20 lines
Diff to previous 1.38 (colored)

a real pid_t cleanup.

espie@ ok for make/,
deraadt@ one extra eye,
millert@ ok

Revision 1.38 / (download) - annotate - [select for diffs], Sun May 19 22:01:15 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.37: +28 -29 lines
Diff to previous 1.37 (colored)

misc cleanups, and grok systrace better

Revision 1.37 / (download) - annotate - [select for diffs], Sat May 18 17:54:15 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.36: +78 -2 lines
Diff to previous 1.36 (colored)

grok crypto/kqueue/systrace vnodes

Revision 1.36 / (download) - annotate - [select for diffs], Thu Mar 14 06:51:41 2002 UTC (22 years, 2 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Remove \n from err/errx/warn/warnx().

millert@ ok

Revision 1.35 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:46 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.34: +16 -16 lines
Diff to previous 1.34 (colored)

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.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Dec 1 18:59:59 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.33: +22 -19 lines
Diff to previous 1.33 (colored)

KNF

Revision 1.33 / (download) - annotate - [select for diffs], Mon Nov 26 01:37:16 2001 UTC (22 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

fix AF_INET6 dgram socket printing (missing curly brace)

Revision 1.32 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:14 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.31: +7 -7 lines
Diff to previous 1.31 (colored)

kill more registers

millert@ ok

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jul 12 05:17:06 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.30: +8 -5 lines
Diff to previous 1.30 (colored)

first pass at a -Wall cleanup

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jun 22 22:43:20 2001 UTC (22 years, 11 months ago) by pvalchev
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

typo in comment

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Fri Oct 6 19:59:49 2000 UTC (23 years, 7 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull in patch from current:
Fix (millert):
warnx?/errx? paranoia (use "%s" not a bare string unless it is a
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).

Revision 1.29 / (download) - annotate - [select for diffs], Tue Sep 12 00:15:11 2000 UTC (23 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (colored)

work around Art's lack of testing

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jul 16 23:40:48 2000 UTC (23 years, 10 months ago) by hugh
Branch: MAIN
Changes since 1.27: +34 -22 lines
Diff to previous 1.27 (colored)

Add -o option for printing file offset. Also some whitespace reformatting.
Handy. Checked by millert and niklas.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jun 30 16:00:14 2000 UTC (23 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

warnx?/errx? paranoia (use "%s" not a bare string unless it is a
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).

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jan 17 16:26:19 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.25: +98 -2 lines
Diff to previous 1.25 (colored)

IPv6 support.  netbsd PR 9199 with adaptation to NRL inpcb.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Oct 29 14:06:16 1999 UTC (24 years, 6 months ago) by art
Branch: MAIN
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

The PIPE_NODIRECT define is no longer needed

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jul 2 19:23:50 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.23: +10 -26 lines
Diff to previous 1.23 (colored)

use getprotobynumber(); safe since it does not do YP

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 1 21:41:58 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +84 -3 lines
Diff to previous 1.22 (colored)

pretty good attempt at supporting nullfs

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 30 02:26:59 1999 UTC (25 years ago) by art
Branch: MAIN
Changes since 1.21: +48 -4 lines
Diff to previous 1.21 (colored)

add support for pipes since sparc uses new pipe code by default now

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 30 10:19:02 1998 UTC (25 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

fix error outputs; form

Revision 1.20 / (download) - annotate - [select for diffs], Tue Sep 8 20:49:33 1998 UTC (25 years, 8 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.19: +2 -44 lines
Diff to previous 1.19 (colored)

back out the pipe code that breaks on sparc

Revision 1.19 / (download) - annotate - [select for diffs], Mon Sep 7 01:04:13 1998 UTC (25 years, 8 months ago) by art
Branch: MAIN
Changes since 1.18: +46 -4 lines
Diff to previous 1.18 (colored)

support for pipes

Revision 1.18 / (download) - annotate - [select for diffs], Sun Sep 6 22:48:46 1998 UTC (25 years, 8 months ago) by art
Branch: MAIN
Changes since 1.17: +27 -2 lines
Diff to previous 1.17 (colored)

understand XFS nodes

Revision 1.17 / (download) - annotate - [select for diffs], Thu Jul 9 20:28:00 1998 UTC (25 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.16: +39 -64 lines
Diff to previous 1.16 (colored)

fix socket printing bug, missed {}
use err/warn everywhere

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jul 8 22:14:12 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +6 -2 lines
Diff to previous 1.15 (colored)

whack kmem gid after kvm_openfiles()

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 5 18:42:41 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

check kvm_read() better; msaitoh

Revision 1.14 / (download) - annotate - [select for diffs], Thu Jun 25 06:21:34 1998 UTC (25 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +37 -11 lines
Diff to previous 1.13 (colored)

first cut at isofs support

Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 6 21:19:34 1997 UTC (26 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.12: +7 -3 lines
Diff to previous 1.12 (colored)

tag direction based on SS_CONNECTOUT

Revision 1.12 / (download) - annotate - [select for diffs], Mon Aug 25 22:27:59 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.11: +4 -16 lines
Diff to previous 1.11 (colored)

everywhere i look, bugs pop up... sigh

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 8 00:33:02 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.10: +49 -40 lines
Diff to previous 1.10 (colored)

-Wall happiness
Clean up some 64bit issues and remove bogus/unnecesary casts.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 5 07:46:55 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

;;

Revision 1.9 / (download) - annotate - [select for diffs], Fri May 30 12:27:50 1997 UTC (26 years, 11 months ago) by downsj
Branch: MAIN
Changes since 1.8: +31 -9 lines
Diff to previous 1.8 (colored)

Fix FFS and add ext2fs support.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 15 23:42:30 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

getopt(3) returns -1 when out of args, not EOF, whee!

Revision 1.7 / (download) - annotate - [select for diffs], Sun Dec 22 03:25:52 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored)

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.6 / (download) - annotate - [select for diffs], Sat Aug 17 09:10:47 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

<->

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 12 19:45:47 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +41 -15 lines
Diff to previous 1.4 (colored)

lsof-like support for fstat, whee

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 6 18:05:51 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

careful buf oflow, no longer use strcpy

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 5 19:04:21 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

fstat options -N and -M failed; netbsd pr#2374; from osymh@gemini.oscs.montana.edu

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 27 19:32:24 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.1: +8 -4 lines
Diff to previous 1.1 (colored)

From NetBSD: merge of 960317

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:16 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:16 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.