OpenBSD CVS

CVS log for src/libexec/rpc.rstatd/rstat_proc.c


[BACK] Up to [local] / src / libexec / rpc.rstatd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.38 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:05 2023 UTC (14 months, 3 weeks 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], Fri Aug 9 21:31:07 2019 UTC (4 years, 9 months ago) by cheloha
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
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Fix pointless cast: (struct timezone *)0 -> NULL

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:53 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.35 / (download) - annotate - [select for diffs], Sat May 27 07:44:28 2017 UTC (7 years ago) by tedu
Branch: MAIN
CVS Tags: 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
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

bzero -> memset

Revision 1.34 / (download) - annotate - [select for diffs], Sat Aug 27 03:48:00 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

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

ok deraadt@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jan 16 06:39:50 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Mon Sep 15 19:08:19 2014 UTC (9 years, 8 months ago) by miod
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Remove non-standard <sys/dkstat.h> header. It has not contained anything
related to disk stastics for almost 17 years, and the remaining
userland-visible defines duplicate those found in <sys/sched.h>.

Move the remaining _KERNEL defines to <sys/tty.h> where they belong, and
update all users to cope with this.

ok kettenis@

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 8 17:19:23 2014 UTC (9 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.30: +1 -3 lines
Diff to previous 1.30 (colored)

decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h
don't need to be married.
ok guenther miod beck jsing kettenis

Revision 1.30 / (download) - annotate - [select for diffs], Wed May 15 04:23:44 2013 UTC (11 years ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.29: +1 -1 lines
Diff to previous 1.29 (colored)

undo  malfunction

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 14 20:39:24 2013 UTC (11 years ago) by miod
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Don't display swapin/swapout uvmexp fields

Revision 1.28 / (download) - annotate - [select for diffs], Wed Sep 1 14:43:34 2010 UTC (13 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: 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
Changes since 1.27: +28 -28 lines
Diff to previous 1.27 (colored)

Oracle has re-licensed sunrpc under a three-clause BSD license.
Update our sources appropriately.  OK deraadt@ jsg@

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:31 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.26: +1 -6 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Wed Sep 15 19:05:35 2004 UTC (19 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, 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, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

ARGSUSED signal handler

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 15 02:45:47 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

new arg to disk_unbusy, to record separate read/write statistics.
looked at by various, testing henning@ mcbride@ dan weeks
mostly from netbsd via Pedro Martelletto <pbastos@rdc.puc-rio.br>

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jul 29 18:39:23 2003 UTC (20 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

spaces

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jul 5 17:02:36 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +5 -3 lines
Diff to previous 1.22 (colored)

protos

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 28 22:40:33 2002 UTC (21 years, 11 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.21: +14 -28 lines
Diff to previous 1.21 (colored)

go back to running these as root from inetd.  however once rpc.{rusersd,rstatd}
starts, do a chroot to /var/empty and change to user nobody.
hi mom, i'm in jail!

Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:31 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.20: +9 -9 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Sun Nov 18 23:45:39 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.19: +16 -8 lines
Diff to previous 1.19 (colored)

create own svc_run(), which can do updating outside of a signal handler

Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 6 19:18:30 2001 UTC (22 years, 7 months ago) by art
Branch: MAIN
Changes since 1.18: +2 -3 lines
Diff to previous 1.18 (colored)

new vm includes.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Oct 30 22:28:01 2001 UTC (22 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +5 -4 lines
Diff to previous 1.17 (colored)

rstat_timeval is not the same as timeval

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 2 01:14:42 2001 UTC (22 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.16: +36 -158 lines
Diff to previous 1.16 (colored)

o Remove #if{,n}def BSD stuff
o Replace nlist and kvm_* with sysctl() and getifaddrs(3)
Fixes an issue on alpha where we would run off the end of the interface list.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Sep 19 21:47:31 2001 UTC (22 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.15: +19 -19 lines
Diff to previous 1.15 (colored)

some signal race whacking

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jul 8 21:18:09 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +11 -7 lines
Diff to previous 1.14 (colored)

-Wall

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jun 27 06:16:46 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.13: +2 -29 lines
Diff to previous 1.13 (colored)

UVM is no longer an option

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 24 11:42:37 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.12: +4 -3 lines
Diff to previous 1.12 (colored)

sysctl() arg 4 is a size_t, not int

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 17 19:23:26 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

use _exit() in signal handlers, and flag that the pmap_unset() calls are unsafe

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 30 07:39:26 1999 UTC (24 years, 6 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.10: +44 -9 lines
Diff to previous 1.10 (colored)

UVM support (how could I miss this?). From jason@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jul 10 08:06:10 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.9: +3 -3 lines
Diff to previous 1.9 (colored)

do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabbling

Revision 1.9 / (download) - annotate - [select for diffs], Tue Aug 5 23:48:14 1997 UTC (26 years, 10 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Errno.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jul 23 20:36:32 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

tabify

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jul 8 20:47:51 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.6: +7 -10 lines
Diff to previous 1.6 (colored)

Don't call exit(0) from rstat_service().  There is a alarm(3) that brings us
down in due time.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 8 20:19:35 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

daemons can't fprintf(stderr, "blah"), use syslog(3)

Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 17 00:06:30 1997 UTC (27 years, 1 month ago) by weingart
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Use the real times returned by dkreadstat().

The use of FSHIFT and FSCALE need to be reviewed
in rpc.rstatd.  Does the protocol specify a value
for these, or are they system dependant?

Currently we pass the kernel values back unmodified,
which is not what the protocol specifies.  Check
sys/param.h and rpcsvc/rstat.x to see.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 20 06:43:00 1997 UTC (27 years, 3 months ago) by tholo
Branch: MAIN
Changes since 1.3: +48 -24 lines
Diff to previous 1.3 (colored)

Provide disk statistics; cleaned up from NetBSD PR 3200 [Jarle Greipsland]

Revision 1.3 / (download) - annotate - [select for diffs], Sun Feb 9 00:03:32 1997 UTC (27 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +55 -57 lines
Diff to previous 1.2 (colored)

save 6% diskspace by moving to tabs

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 28 23:21:51 1996 UTC (28 years, 2 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +3 -12 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:43:21 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:43:21 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.