OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:12 2023 UTC (14 months, 1 week ago) by guenther
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, HEAD
Changes since 1.37: +1 -2 lines
Diff to previous 1.37 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.37 / (download) - annotate - [select for diffs], Sun Dec 4 23:50:49 2022 UTC (17 months, 2 weeks ago) by cheloha
Branch: MAIN
Changes since 1.36: +1 -2 lines
Diff to previous 1.36 (colored)

userspace: remove vestigial '?' cases from top-level getopt(3) loops

getopt(3) returns '?' when it encounters a flag not present in the in
the optstring or if a flag is missing its option argument.  We can
handle this case with the "default" failure case with no loss of
legibility.  Hence, remove all the redundant "case '?':" lines.

Prompted by dlg@.  With help from dlg@ and millert@.

Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2

ok naddy@ millert@ dlg@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Aug 27 04:07:42 2016 UTC (7 years, 8 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

Pull in <sys/time.h> for struct timespec and timeval

ok deraadt@

Revision 1.35 / (download) - annotate - [select for diffs], Fri Oct 23 08:18:30 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.34: +4 -10 lines
Diff to previous 1.34 (colored)

cleanup argv handling a bit

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:10 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.33: +2 -2 lines
Diff to previous 1.33 (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.33 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:40 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.32: +1 -16 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Fri Jun 5 19:32:26 2009 UTC (14 years, 11 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.31: +2 -3 lines
Diff to previous 1.31 (colored)

- remove an over-obvious header

prompted by deraadt@
"nuke nuke nuke" thib@

Revision 1.31 / (download) - annotate - [select for diffs], Fri Dec 26 15:09:40 2008 UTC (15 years, 4 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.30: +3 -4 lines
Diff to previous 1.30 (colored)

synchronize synopsis and usage.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Jun 12 19:14:15 2008 UTC (15 years, 11 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.29: +8 -6 lines
Diff to previous 1.29 (colored)

add a statistic bit to count how often we change async to sync

you need to upgrade nfsstat and the relevant header files

ok beck@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Apr 3 06:40:14 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.28: +12 -10 lines
Diff to previous 1.28 (colored)

lint, strtonum()

Revision 1.28 / (download) - annotate - [select for diffs], Mon Aug 1 22:28:19 2005 UTC (18 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.27: +17 -17 lines
Diff to previous 1.27 (colored)

Fix some signed vs. unsigned mismatches in the format strings and fix
the remaining 64 bit integers being printed as 32 bit.  OK deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Aug 1 22:23:55 2005 UTC (18 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +42 -40 lines
Diff to previous 1.26 (colored)

64-bit nfsstats delta printing still required %llu instead of %d specifiers
spotted as being wrong by matthieu, fix by me

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 8 04:17:14 2005 UTC (18 years, 11 months ago) by marius
Branch: MAIN
Changes since 1.25: +15 -15 lines
Diff to previous 1.25 (colored)

make nfsstats counters 64 bit.

ok pedro@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 14 12:21:04 2004 UTC (19 years, 5 months ago) by pedro
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.24: +7 -3 lines
Diff to previous 1.24 (colored)

only print a separating '\n' when showing both server and client info
ok deraadt@ hshoexer@

Revision 1.24 / (download) - annotate - [select for diffs], Tue Sep 14 23:53:22 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +3 -2 lines
Diff to previous 1.23 (colored)

ARGSUSED before signal handler with unused signo

Revision 1.23 / (download) - annotate - [select for diffs], Sun May 9 03:28:11 2004 UTC (20 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.22: +119 -101 lines
Diff to previous 1.22 (colored)

knf

Revision 1.22 / (download) - annotate - [select for diffs], Tue Mar 2 20:49:41 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.21: +5 -4 lines
Diff to previous 1.21 (colored)

pretty usage and sort options.  started by Andrey Matveev

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 7 21:36:52 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

protos

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jun 26 21:59:10 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

more proto fixes

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 10 22:20:49 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +9 -15 lines
Diff to previous 1.18 (colored)

mostly ansi cleanup; pval ok

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

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

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jan 15 22:57:42 2003 UTC (21 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

mib[4], not mib[3]; fixes nfsstat breakage

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 15 22:20:15 2003 UTC (21 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.15: +5 -6 lines
Diff to previous 1.15 (colored)

Better fix for the sysctl() loop; deraadt@ OK

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 15 21:25:44 2003 UTC (21 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.14: +2 -9 lines
Diff to previous 1.14 (colored)

Don't report NQNFS stats, we don't do NQNFS anymore.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 15 21:20:03 2003 UTC (21 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

cope with nfs being last in the list

Revision 1.13 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:50 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Tue Sep 4 23:35:59 2001 UTC (22 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.11: +7 -7 lines
Diff to previous 1.11 (colored)

Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 25 17:15:46 2001 UTC (22 years, 10 months ago) by markus
Branch: MAIN
Changes since 1.10: +10 -18 lines
Diff to previous 1.10 (colored)

nqfs is gone, ok deraadt@

Revision 1.10 / (download) - annotate - [select for diffs], Mon May 1 19:48:04 2000 UTC (24 years ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

accept valid intervals for -w

Revision 1.9 / (download) - annotate - [select for diffs], Tue Apr 18 20:17:54 2000 UTC (24 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.8: +61 -25 lines
Diff to previous 1.8 (colored)

add back a way to analyze post-mortem cores; does not need sgid for syctl() thoguh

Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 18 15:24:26 2000 UTC (24 years, 1 month ago) by mickey
Branch: MAIN
Changes since 1.7: +79 -72 lines
Diff to previous 1.7 (colored)

use sysctl() to fetch struct nfsstats; no more -lkvm; millert@ ok

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jul 5 18:42:43 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.6: +6 -4 lines
Diff to previous 1.6 (colored)

check kvm_read() better; msaitoh

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

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

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

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.4 / (download) - annotate - [select for diffs], Sun Dec 15 18:52:19 1996 UTC (27 years, 5 months ago) by kstailey
Branch: MAIN
Changes since 1.3: +161 -142 lines
Diff to previous 1.3 (colored)

added -s (display server report only) and -c (ditto client) flags

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 6 18:36:59 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

_POSIX2_LINE_MAX errbuf for kvm_openfiles()

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 27 19:32:49 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.1: +61 -38 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:52 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:52 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.