OpenBSD CVS

CVS log for src/usr.bin/systat/main.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.77 / (download) - annotate - [select for diffs], Sun Dec 4 18:01:57 2022 UTC (17 months, 2 weeks ago) by cheloha
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.76: +2 -3 lines
Diff to previous 1.76 (colored)

systat(1): vmstat: measure elapsed time with clock_gettime(2) instead of ticks

The vmstat view in systat(1) should not use statclock() ticks to count
elapsed time.  First, ticks are low resolution.  Second, the statclock
is sometimes randomized, so each tick is not necessarily of equal
length.  Third, we're counting ticks from every CPU on the system, so
every rate in the view is divided by the number of CPUs.  For example,
on an amd64 system with 8 CPUs you currently see:

     200 clock

... when the true clock interrupt rate on that system is 1600.

Instead, measure elapsed time with clock_gettime(2).  Use CLOCK_UPTIME
here so we exclude time when the system is suspended.  With this
change we no longer need "stathz" or "hertz".  We can also get rid of
the anachronistic secondary clock failure test.

Prompted by dlg@ and jmatthew@.  deraadt@ says this has been in snaps
since 2022-11-21; no complaints.

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

ok dlg@ deraadt@

Revision 1.76 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:20 2021 UTC (2 years, 10 months ago) by beck
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
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

Change the error reporting pattern throughout the tree when unveil
fails to report the path that the failure occured on. Suggested by
deraadt@ after some tech discussion.

Work done and verified by Ashton Fagg <ashton@fagg.id.au>

ok deraadt@ semarie@ claudio@

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 2 15:34:16 2021 UTC (2 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.74: +4 -7 lines
Diff to previous 1.74 (colored)

Use nanosleep() and setitimer() instead of usleep() and ualarm().
Both usleep() and ualarm() are obsolete and were removed from POSIX.
OK deraadt@

Revision 1.74 / (download) - annotate - [select for diffs], Wed Jun 2 08:32:22 2021 UTC (2 years, 11 months ago) by martijn
Branch: MAIN
Changes since 1.73: +5 -9 lines
Diff to previous 1.73 (colored)

Make the hints at the bottom row sticky by turning the knobs toggles.
Specifically this effects ^G, help and order.

While here also document the 'h' character.

Initial inspiration and diff from Anindya Mukherjee (anindya49 <at> hotmail
<dot> com)

OK bluhm@

Revision 1.73 / (download) - annotate - [select for diffs], Sat Jan 30 08:44:42 2021 UTC (3 years, 3 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.72: +64 -12 lines
Diff to previous 1.72 (colored)

Fix delay parsing by stealing from strtonum and returning a proper error to
the user when an invalid value is entered instead of silently falling back
to the default 5s.

While here I also capped the upper limit to UINT32_MAX / 1000000 to prevent
useconds_t overflow. This hard limits us to 4294s, instead of the current
soft limit which just make systat go berserk if you go over it.

Reported and original diff by Nick Gasson nick <at> nickg <dot> me <dot> uk

OK cheloha@
Tweaks and OK bluhm@

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jan 12 20:51:08 2020 UTC (4 years, 4 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.71: +10 -3 lines
Diff to previous 1.71 (colored)

Add support for human readable numbers where applicable.

OK stsp@ and bluhm@

Revision 1.71 / (download) - annotate - [select for diffs], Mon Oct 14 19:22:17 2019 UTC (4 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.70: +6 -1 lines
Diff to previous 1.70 (colored)

pledge() won't work but we can use unveil() to reduce filesystem access
in these 3 related programs (they borrow parts of each other using .PATH)
Hopefully no regressions, ktrace checks by myself and mestre

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:04 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (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.69 / (download) - annotate - [select for diffs], Thu Jan 17 05:56:29 2019 UTC (5 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.68: +1 -1 lines
Diff to previous 1.68 (colored)

use $OpenBSD markers
ok millert mpi

Revision 1.68 / (download) - annotate - [select for diffs], Wed May 30 13:43:51 2018 UTC (5 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.67: +2 -1 lines
Diff to previous 1.67 (colored)

Add uvm view to show all values being collected in uvmexp.

Feedbacks, tweaks, ok bluhm@

Revision 1.67 / (download) - annotate - [select for diffs], Thu Feb 8 07:00:33 2018 UTC (6 years, 3 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.66: +31 -1 lines
Diff to previous 1.66 (colored)

Add the order keyword to systat global command interpreter.
This command shows the available orderings for the current view, which
ordering is active, their shortcuts, and if they're in reverse order.

manpage nits jmc@
OK tedu@

Revision 1.66 / (download) - annotate - [select for diffs], Thu Oct 13 11:22:46 2016 UTC (7 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.65: +5 -7 lines
Diff to previous 1.65 (colored)

tweak previous; hostname is alredy available plus some better formatting
in case line numbers and/or PAUSED is shown; ok tedu@

Revision 1.65 / (download) - annotate - [select for diffs], Thu Oct 13 05:46:20 2016 UTC (7 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.64: +10 -3 lines
Diff to previous 1.64 (colored)

add the hostname to the display. started by otto, then deraadt. ok deraadt

Revision 1.64 / (download) - annotate - [select for diffs], Sat Jan 2 15:02:05 2016 UTC (8 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.63: +1 -2 lines
Diff to previous 1.63 (colored)

garbage collect unsused variable
found by evh -AT- riseup -DOT- net, ok florian@

Revision 1.63 / (download) - annotate - [select for diffs], Sat Apr 18 18:28:38 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.62: +11 -13 lines
Diff to previous 1.62 (colored)

Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert

Revision 1.62 / (download) - annotate - [select for diffs], Thu Mar 12 01:03:00 2015 UTC (9 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Switch the netstat view of systat to use the same kvm_getfiles()
function similar to netstat(1). The output still shows the same
info but may be a bit differently sorted. Also it will now show
connections that are not UDP or TCP.  This was the last bit of
systat that needed kvm access and so now systat no longer needs
to be setgid kmem.
With this commit OpenBSD is officially setgid kmem free and an
almost 10 year journey finally comes to an end.
OK deraadt@

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jan 16 00:03:37 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored)

first batch of programs adapting to the namespace cleanup
(pfvar.h nameser.h proc.h ucred.h)
ok guenther millert, and some review from doug as well.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Sep 7 11:43:50 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.59: +9 -3 lines
Diff to previous 1.59 (colored)

Add a new screen "cpu" that simply lists the usage of each CPU core.
Also add a new -B command line flag that works like -b but waits some
cycles before dumping anything to the console.

With much help from jmc@
OK jj@ lambert@ jmc@

Revision 1.59 / (download) - annotate - [select for diffs], Tue Apr 5 07:35:32 2011 UTC (13 years, 1 month ago) by mpf
Branch: MAIN
CVS Tags: 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
Changes since 1.58: +5 -1 lines
Diff to previous 1.58 (colored)

Add support to display numbers with thousands separators
and to switch the ifstat view to Bits/s.
This allows us to see live network throughput in units
like MBit/s, which is more practical.
OK sthen@, manpage OK jmc@, "put it in" deraadt@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Mar 31 06:12:34 2011 UTC (13 years, 1 month ago) by lum
Branch: MAIN
Changes since 1.57: +30 -18 lines
Diff to previous 1.57 (colored)

Make the top line of systat stop updating, along with the rest of the data
when 'p' is pressed.
ok nicm@

Revision 1.57 / (download) - annotate - [select for diffs], Fri Jul 16 05:22:48 2010 UTC (13 years, 10 months ago) by lum
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Make the terminal checking capability of systat better.
Checks taken from top(1) screen.c/init_termcap()
ok canacar@ sthen@ nicm@

Revision 1.56 / (download) - annotate - [select for diffs], Fri Jul 2 13:30:03 2010 UTC (13 years, 10 months ago) by lum
Branch: MAIN
Changes since 1.55: +6 -7 lines
Diff to previous 1.55 (colored)

Allow systat to print date and time when in rawmode.
ok canacar@ millert@

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jul 21 17:07:38 2009 UTC (14 years, 10 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.54: +7 -3 lines
Diff to previous 1.54 (colored)

Allow systat(1) to resolve names by adding a new -N flag. (The default was
changed some time ago). Noticed by landry@, discussed with canacar@ and others.
ok deraadt@

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jun 25 20:45:43 2009 UTC (14 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

the rule is not to use nitems() in userland yet

Revision 1.53 / (download) - annotate - [select for diffs], Thu Jun 25 20:39:02 2009 UTC (14 years, 10 months ago) by okan
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

use the nitems() macro where appropriate

ok canacar@

Revision 1.52 / (download) - annotate - [select for diffs], Fri Jun 19 07:48:45 2009 UTC (14 years, 11 months ago) by jasper
Branch: MAIN
Changes since 1.51: +2 -1 lines
Diff to previous 1.51 (colored)

- add two new views to systat, 'nfsserver' and 'nfsclient'.
output is similar to nfsstat(1), but it allows for better monitoring/debugging

tricked into by and "i love this" thib@
ok canacar@

Revision 1.51 / (download) - annotate - [select for diffs], Sat Nov 8 06:38:27 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

Add malloc and buckets views that display kernel malloc statistics similar
to vmstat -m

Revision 1.50 / (download) - annotate - [select for diffs], Wed Nov 5 15:48:44 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.49: +6 -19 lines
Diff to previous 1.49 (colored)

Fix some function prototypes, remove unused variables and commented out code

Revision 1.49 / (download) - annotate - [select for diffs], Tue Nov 4 19:00:08 2008 UTC (15 years, 6 months ago) by espie
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

spelling: ambigious -> ambiguous

Revision 1.48 / (download) - annotate - [select for diffs], Sun Nov 2 06:23:28 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.47: +2 -1 lines
Diff to previous 1.47 (colored)

Add a view that displays pool(9) information. Idea and ok deraadt@

Revision 1.47 / (download) - annotate - [select for diffs], Sat Nov 1 00:41:11 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.46: +3 -50 lines
Diff to previous 1.46 (colored)

Remove disabled help text code and -S command, both leftovers from pftop,
skip the correct number of bytes after the 'start' command.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Oct 31 06:50:09 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.45: +27 -16 lines
Diff to previous 1.45 (colored)

Implement start and stop commands as documented,
explicitly pass the command buffer to the command functions.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Oct 31 06:06:46 2008 UTC (15 years, 6 months ago) by canacar
Branch: MAIN
Changes since 1.44: +16 -1 lines
Diff to previous 1.44 (colored)

make ^G display the current view and refresh interval as documented.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Aug 13 06:20:48 2008 UTC (15 years, 9 months ago) by jmc
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

-S currently does nothing useful, so remove it from
SYNOPSIS and usage(); after some discussion with canacar

Revision 1.43 / (download) - annotate - [select for diffs], Fri Aug 8 20:07:49 2008 UTC (15 years, 9 months ago) by matthieu
Branch: MAIN
Changes since 1.42: +7 -8 lines
Diff to previous 1.42 (colored)

Small step towards fixing documentation:
- sync usage() with reality. Remove the -h option that does nothing.
- don't complain about kvm_openfiles() error in case of incorrect usage.
- add basic descriptions of the new options and views in the manual
  page. More is needed...
with help from jmc@ and sobrado@. ok sobrado@.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Jul 31 04:24:11 2008 UTC (15 years, 9 months ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.41: +3 -1 lines
Diff to previous 1.41 (colored)

Do not allow negative or zero delay values from the command line,
use the same check as the -s option. Noticed by johan@

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jul 12 06:20:47 2008 UTC (15 years, 10 months ago) by canacar
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Add ':q' as an alias to ':quit', to match old behaviour. Initial patch
from dlg@, this is a simpler version.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Jun 13 10:06:14 2008 UTC (15 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.39: +5 -8 lines
Diff to previous 1.39 (colored)

compile on older gcc; no decl after code

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 13 01:24:55 2008 UTC (15 years, 11 months ago) by canacar
Branch: MAIN
Changes since 1.38: +6 -3 lines
Diff to previous 1.38 (colored)

Set 'naptime' which is used by the interface page in differential mode.
Also remove a debugging message while there.
reported by claudio@

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jun 12 22:26:01 2008 UTC (15 years, 11 months ago) by canacar
Branch: MAIN
Changes since 1.37: +407 -265 lines
Diff to previous 1.37 (colored)

New display engine for systat, based on pftop. Adds new views for pf
(status, state, rule, queue). While all displays work, some keyboard
comands are not implemented yet. Other features include better handling
of display resize and scrolling for long views. Committing now to fix
the remaining issues in the tree.
Testing and comments by otto@ and harding@, ok deraadt@

Revision 1.37 / (download) - annotate - [select for diffs], Mon May 21 21:15:37 2007 UTC (17 years ago) by cnst
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.36: +2 -3 lines
Diff to previous 1.36 (colored)

fix -Wall warning about unused variable `errstr', which was introduced in the previous revision; ok deraadt, otto, tedu

Revision 1.36 / (download) - annotate - [select for diffs], Tue Apr 24 06:32:08 2007 UTC (17 years ago) by tedu
Branch: MAIN
Changes since 1.35: +11 -10 lines
Diff to previous 1.35 (colored)

support non-integral refresh intervals, possibly as low as 0.1s.
this makes it more useful for real time display of fast changing stats
ok art deraadt

Revision 1.35 / (download) - annotate - [select for diffs], Sun Feb 25 18:21:24 2007 UTC (17 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.34: +43 -30 lines
Diff to previous 1.34 (colored)

use the 1 line load line from 'systat vm' on all the other displays, giving
them more room.  much cleaner, and it is less code too; ok deanna

Revision 1.34 / (download) - annotate - [select for diffs], Tue May 9 17:09:22 2006 UTC (18 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

delay time of 0 should be invalid; evol@online.ptt.ru

Revision 1.33 / (download) - annotate - [select for diffs], Wed Apr 12 05:07:52 2006 UTC (18 years, 1 month ago) by ray
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Improve error message.

Found by Florin Iamandi <florin dot i at tiscali dot it>.

OK tedu@ and deraadt@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Mar 31 04:10:59 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.31: +17 -15 lines
Diff to previous 1.31 (colored)

fairly simple cleanup, lots of testing done

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

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

Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 26 19:22:30 2004 UTC (20 years ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.29: +8 -4 lines
Diff to previous 1.29 (colored)

add -n flag (do not reverse-lookup).  pb and deraadt ok

Revision 1.29 / (download) - annotate - [select for diffs], Wed Apr 14 19:53:04 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.28: +12 -4 lines
Diff to previous 1.28 (colored)

wakeup after ^Z did not continue redraws and such.  use own ^Z handler.
ok otto millert

Revision 1.28 / (download) - annotate - [select for diffs], Wed Dec 17 20:58:39 2003 UTC (20 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.27: +1 -2 lines
Diff to previous 1.27 (colored)

- add -w to options description
- document default refresh interval
- sync usage() with SYNOPSIS

inspired by PR 3608;
ok deraadt@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Dec 17 20:22:50 2003 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +3 -4 lines
Diff to previous 1.26 (colored)

remove old -M and -N; 3608

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:17 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.25: +3 -7 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 4 00:50:42 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.24: +11 -10 lines
Diff to previous 1.24 (colored)

kvm gid revocation earlier

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 18 00:46:37 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +15 -17 lines
Diff to previous 1.23 (colored)

revoke privs after kvm_openfiles

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 19 19:39:39 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.22: +4 -21 lines
Diff to previous 1.22 (colored)

We live in an ANSI C world.  Remove lots of gratuitous #ifdef __STDC__ cruft.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:54 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Fri Dec 7 09:18:08 2001 UTC (22 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +76 -75 lines
Diff to previous 1.20 (colored)

move back.  pvalchev -- the bug was quite obscure

Revision 1.20 / (download) - annotate - [select for diffs], Fri Dec 7 07:57:35 2001 UTC (22 years, 5 months ago) by pvalchev
Branch: MAIN
Changes since 1.19: +75 -76 lines
Diff to previous 1.19 (colored)

back out latest changes which cause problems on alpha/sparc64 until
they are fixed

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 28 20:28:08 2001 UTC (22 years, 5 months ago) by ericj
Branch: MAIN
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)


remove unused var

Revision 1.18 / (download) - annotate - [select for diffs], Fri Nov 23 22:20:06 2001 UTC (22 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +75 -74 lines
Diff to previous 1.17 (colored)

fix signal races.  use sysctl() instead of kvm where possible, and then KNF
the hell out of it; checked by miod

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

kill more registers

millert@ ok

Revision 1.16 / (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.15: +7 -7 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Fri May 4 16:48:34 2001 UTC (23 years ago) by ericj
Branch: MAIN
Changes since 1.14: +8 -6 lines
Diff to previous 1.14 (colored)


handle kvm_nlist() failing, from pr#1798.
Patch similar to the one submitted by <peterw@documenta.com.au>

Revision 1.14 / (download) - annotate - [select for diffs], Tue Nov 4 12:20:19 1997 UTC (26 years, 6 months ago) by kstailey
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, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.13: +18 -2 lines
Diff to previous 1.13 (colored)

simple SIGWINCH handler; deals only with window size changes >= 80x24

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 25 19:05:26 1997 UTC (26 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.12: +8 -6 lines
Diff to previous 1.12 (colored)

when getting interrupt, clean up curses only if curses was active

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jul 25 21:05:44 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.11: +5 -5 lines
Diff to previous 1.11 (colored)

#if __STDC__ --> #ifdef __STDC__

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 23 22:21:47 1997 UTC (26 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.10: +6 -4 lines
Diff to previous 1.10 (colored)

Cleanup by Theo and myself.  CMDLINE changed to long to make
command line work on 64bit platforms.  This is somewhat bogus
and is really just a temporary workaround (there may be a curses bug).

Revision 1.10 / (download) - annotate - [select for diffs], Mon Jun 16 19:10:15 1997 UTC (26 years, 11 months ago) by kstailey
Branch: MAIN
Changes since 1.9: +4 -4 lines
Diff to previous 1.9 (colored)

You can't store a double in an int and then do tests for the fractional part
miss thing!  Also, make more sensitive to digital decay.  Now "<<<" will
show up in load average display.

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

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

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

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 8 10:41:01 1996 UTC (27 years, 9 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

Clarify usage printout

Revision 1.6 / (download) - annotate - [select for diffs], Tue Aug 6 20:41:19 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

_POSIX2_LINE_MAX errbuf for kvm_openfiles()

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

avoid buf oflows

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jun 26 05:40:08 1996 UTC (27 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

rcsid

Revision 1.3 / (download) - annotate - [select for diffs], Wed May 22 11:35:35 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +50 -12 lines
Diff to previous 1.2 (colored)

libutil

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 21 23:44:05 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

sync to netbsd 960418

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:10 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:46:10 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.