OpenBSD CVS

CVS log for src/sbin/sysctl/sysctl.c


[BACK] Up to [local] / src / sbin / sysctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.261 / (download) - annotate - [select for diffs], Thu May 9 08:35:40 2024 UTC (4 weeks, 4 days ago) by florian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.260: +13 -5 lines
Diff to previous 1.260 (colored)

ctime(3) and ctime_r(3) can fail when timestamps are way off.
Add missing error checks to all calls under sbin/

Input kettenis, millert
OK millert

Revision 1.260 / (download) - annotate - [select for diffs], Sun Feb 11 21:29:12 2024 UTC (3 months, 4 weeks ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.259: +1 -2 lines
Diff to previous 1.259 (colored)

Remove needless includes of netinet6/ip6_var.h header in userland.

OK millert@

Revision 1.259 / (download) - annotate - [select for diffs], Wed May 17 22:12:51 2023 UTC (12 months, 3 weeks ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.258: +29 -1 lines
Diff to previous 1.258 (colored)

Implement battery management sysctl.  This will provide a set of sysctls
to control the charging of laptop batteries:

* hw.battery.chargemode (int)

  -1: force discharge
   0: inhibit charge
   1: auto

In auto mode charging may be controlled by:

* hw.battery.chargestop (int)

  Percentage (0-100) of last full capacity at which the battery should
  stop charging.

* hw.battery.chargestart (int)

  Percentage (0-100) of last full capacity at which the battery should
  start charging.

The idea is that with

  hw.battery.chargemode=1
  hw.battery.chargestop=80
  hw.battery.chargestart=75

the battery would be kept charged within the range between 75% and 80%.

Allowable settings and some details of the behavior may differ between
hardware implementations.

Committing this early to easy testing of further diffs that implement this
functionality in acpithinkpad(4) and aplsmc(4).

ok kn@

Revision 1.258 / (download) - annotate - [select for diffs], Mon Jul 12 15:09:19 2021 UTC (2 years, 10 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.257: +3 -3 lines
Diff to previous 1.257 (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.257 / (download) - annotate - [select for diffs], Tue May 18 05:25:40 2021 UTC (3 years ago) by claudio
Branch: MAIN
Changes since 1.256: +50 -1 lines
Diff to previous 1.256 (colored)

Add support for the new net.unix sysctl nodes.
OK mvs@

Revision 1.256 / (download) - annotate - [select for diffs], Tue May 11 21:45:33 2021 UTC (3 years, 1 month ago) by dv
Branch: MAIN
Changes since 1.255: +3 -3 lines
Diff to previous 1.255 (colored)

Cast printf args to remove compiler warnings.

From Ashton Fagg. OK tb@.

Revision 1.255 / (download) - annotate - [select for diffs], Wed Jan 13 16:28:49 2021 UTC (3 years, 4 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.254: +3 -3 lines
Diff to previous 1.254 (colored)

kernel, sysctl(8): remove dead variable: tickadj

The global "tickadj" variable is a remnant of the old NTP adjustment
code we used in the kernel before the current timecounter subsystem
was imported from FreeBSD circa 2004 or 2005.

Fifteen years hence it is completely vestigial and we can remove it.
We probably should have removed it long ago but I guess it slipped
through the cracks.  FreeBSD removed it in 2002:

https://cgit.freebsd.org/src/commit/?id=e1d970f1811e5e1e9c912c032acdcec6521b2a6d

NetBSD and DragonflyBSD can probably remove it, too.

We export tickadj via the kern.clockrate sysctl(2), so update sysctl.2
and sysctl(8) accordingly.  Hypothetically this change could break
someone's sysctl(8) parsing script.  I don't think that's very likely.

ok mvs@

Revision 1.254 / (download) - annotate - [select for diffs], Mon Dec 28 18:29:44 2020 UTC (3 years, 5 months ago) by mglocker
Branch: MAIN
Changes since 1.253: +28 -1 lines
Diff to previous 1.253 (colored)

Add support for kern.video.record.

ok mpi@

Revision 1.253 / (download) - annotate - [select for diffs], Tue Nov 17 12:11:04 2020 UTC (3 years, 6 months ago) by mglocker
Branch: MAIN
Changes since 1.252: +2 -2 lines
Diff to previous 1.252 (colored)

Fix comment sysctl(3) -> sysctl(2).

Revision 1.252 / (download) - annotate - [select for diffs], Wed Jul 15 07:13:56 2020 UTC (3 years, 10 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.251: +4 -1 lines
Diff to previous 1.251 (colored)

POWE9 CPUs provide an energy sensor that accumulates the emount of energy
used by the processor chip.  Although we have a SENSOR_WATTHOUR sensor
type its units are not really suitable for this sensor.  So add a
SENSOR_ENERGY type that uses micro Joules as its unit.

ok deraadt@

Revision 1.251 / (download) - annotate - [select for diffs], Fri May 29 04:42:23 2020 UTC (4 years ago) by deraadt
Branch: MAIN
Changes since 1.250: +1 -2 lines
Diff to previous 1.250 (colored)

dev/rndvar.h no longer has statistical interfaces (removed during various
conversion steps).  it only contains kernel prototypes for 4 interfaces,
all of which legitimately belong in sys/systm.h, which are already included
by all enqueue_randomness() users.

Revision 1.250 / (download) - annotate - [select for diffs], Wed Dec 25 00:15:36 2019 UTC (4 years, 5 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.249: +7 -7 lines
Diff to previous 1.249 (colored)

timeout(9): new flag: TIMEOUT_SCHEDULED, new statistic: tos_scheduled

This flag is set whenever a timeout is put on the wheel and cleared upon
(a) running, (b) deletion, and (c) readdition.  It serves two purposes:

1. Facilitate distinguishing scheduled and rescheduled timeouts.  When a
   timeout is put on the wheel it is "scheduled" for a later softclock().
   If this happens two or more times it is also said to be "rescheduled".
   The tos_rescheduled value thus indicates how many distant timeouts
   have been cascaded into a lower wheel level.

2. Eliminate false late timeouts.  A timeout is not late if it is due
   before softclock() has had a chance to schedule it.  To track this we
   need additional state, hence a new flag.

rprocter@ raises some interesting questions.  Some answers:

 - This interface is not stable and name changes are possible at a
   later date.

 - Although rescheduling timeouts is a side effect of the underlying
   implementation, I don't forsee us using anything but a timeout wheel
   in the future.  Other data structures are too slow in practice, so
   I doubt that the concept of a rescheduled timeout will be irrelevant
   any time soon.

 - I think the development utility of gathering these sorts of statistics
   is high.  Watching the distribution of timeouts under a given workflow
   is informative.

ok visa@

Revision 1.249 / (download) - annotate - [select for diffs], Thu Nov 28 16:27:25 2019 UTC (4 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.248: +3 -3 lines
Diff to previous 1.248 (colored)

ks_mapblocks is gone

Revision 1.248 / (download) - annotate - [select for diffs], Tue Oct 29 04:20:36 2019 UTC (4 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.247: +2 -3 lines
Diff to previous 1.247 (colored)

mobileip is going to the attic

Revision 1.247 / (download) - annotate - [select for diffs], Sun Sep 22 01:16:39 2019 UTC (4 years, 8 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.246: +3 -3 lines
Diff to previous 1.246 (colored)

Let sysctl(1) work in single-user mode. Same diff applied by florian@
to ps(1).

Noted by kettenis@. florian@'s fix pointed out by maestre@.

ok maestre@

Revision 1.246 / (download) - annotate - [select for diffs], Fri Jul 12 00:04:59 2019 UTC (4 years, 11 months ago) by cheloha
Branch: MAIN
Changes since 1.245: +22 -1 lines
Diff to previous 1.245 (colored)

sysctl(2): add KERN_TIMEOUT_STATS: timeout(9) status and statistics.

With these totals one can track the throughput of the timeout(9) layer
from userspace.

With input from mpi@.

ok mpi@

Revision 1.245 / (download) - annotate - [select for diffs], Wed Jul 3 10:32:33 2019 UTC (4 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.244: +48 -1 lines
Diff to previous 1.244 (colored)

wire up net.link.ifrxq.pressure_return and pressure_drop

ok visa@ deraadt@

Revision 1.244 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:46 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.243: +12 -12 lines
Diff to previous 1.243 (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.243 / (download) - annotate - [select for diffs], Sun Jun 16 09:30:15 2019 UTC (4 years, 11 months ago) by mestre
Branch: MAIN
Changes since 1.242: +15 -4 lines
Diff to previous 1.242 (colored)

Restrict filesystem access to read only _PATH_DEVDB and /dev through unveil(2),
discussed by many.
Additionally call ctime(3) before unveil(2) in order to avoid potential $TZ
expansion and therefore avoiding opening more files that would need to be read,
idea from deraadt@.
While here sort the headers alphabetically.

OK florian@ deraadt@

Revision 1.242 / (download) - annotate - [select for diffs], Mon May 13 20:47:19 2019 UTC (5 years ago) by claudio
Branch: MAIN
Changes since 1.241: +6 -1 lines
Diff to previous 1.241 (colored)

KERN_PFSTATUS is not handled by sysctl so warn about it if requested but
ignore if sysctl -a is used.
OK bluhm@

Revision 1.241 / (download) - annotate - [select for diffs], Thu Feb 21 16:37:13 2019 UTC (5 years, 3 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.240: +5 -1 lines
Diff to previous 1.240 (colored)

If sysctl(8) was compiled with an obsolete struct sensordev size,
it could get stuck in an endless loop.  After sensors sysctl(2)
fails, do not continue using uninitialized memory.  Catch the error,
print a warning, and skip the sensors.
OK benno@ visa@ deraadt@

Revision 1.240 / (download) - annotate - [select for diffs], Tue Jan 29 14:07:15 2019 UTC (5 years, 4 months ago) by visa
Branch: MAIN
Changes since 1.239: +28 -1 lines
Diff to previous 1.239 (colored)

Add a dedicated sysctl(2) node for witness(4).

The new node contains the subsystem's main control variable,
kern.witness.watch. It is aliased by the old name, kern.witnesswatch.
The alias will be removed in the future.

OK anton@ mpi@

Revision 1.239 / (download) - annotate - [select for diffs], Mon Dec 10 13:35:54 2018 UTC (5 years, 6 months ago) by landry
Branch: MAIN
Changes since 1.238: +5 -2 lines
Diff to previous 1.238 (colored)

Add a velocity sensor type (displayed as m/s)

Change distance sensor type to be displayed as meters with 3 decimals
instead of millimeters.

ok mpi@ kettenis@

Revision 1.238 / (download) - annotate - [select for diffs], Tue Nov 6 07:55:08 2018 UTC (5 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.237: +3 -2 lines
Diff to previous 1.237 (colored)

vm.malloc_conf, userland sysctl parts; ok millert@ deraadt@

Revision 1.237 / (download) - annotate - [select for diffs], Sat Sep 29 04:29:48 2018 UTC (5 years, 8 months ago) by visa
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.236: +3 -3 lines
Diff to previous 1.236 (colored)

Use atomic operations to update vfc_refcount. Change the field's type
to unsigned int.

OK deraadt@

Revision 1.236 / (download) - annotate - [select for diffs], Sat Sep 22 02:20:44 2018 UTC (5 years, 8 months ago) by visa
Branch: MAIN
Changes since 1.235: +65 -8 lines
Diff to previous 1.235 (colored)

Revert previous. It broke /etc/rc.

Prompted by kn@

Revision 1.235 / (download) - annotate - [select for diffs], Fri Sep 21 14:31:29 2018 UTC (5 years, 8 months ago) by visa
Branch: MAIN
Changes since 1.234: +8 -65 lines
Diff to previous 1.234 (colored)

Stop displaying vfsconf reference counts so that the vfc_refcount field
can be removed from struct mount.

As a result of this diff, arrays vfsname[] and vfsvars[] are indexed
by filesystem typenum. This makes the vfs_typenums[] array redundant.

OK bluhm@ mpi@

Revision 1.234 / (download) - annotate - [select for diffs], Fri Aug 24 06:43:22 2018 UTC (5 years, 9 months ago) by jsg
Branch: MAIN
Changes since 1.233: +5 -1 lines
Diff to previous 1.233 (colored)

display CPU_CPUID / machdep.cpuid in hex not decimal

Revision 1.233 / (download) - annotate - [select for diffs], Mon Jul 16 17:05:15 2018 UTC (5 years, 10 months ago) by jasper
Branch: MAIN
Changes since 1.232: +3 -13 lines
Diff to previous 1.232 (colored)

use ANSI C function declaration; no binary change

Revision 1.232 / (download) - annotate - [select for diffs], Sat May 26 10:16:14 2018 UTC (6 years ago) by ratchov
Branch: MAIN
Changes since 1.231: +28 -1 lines
Diff to previous 1.231 (colored)

In addition to "on" and "off", allow the audio "record.enable" mixer
knob to take the new "sysctl" value, which is the default. In this
case, the device behavior is determined by the new "kern.audio.record"
sysctl(2), which defaults to zero.

ok florian

Revision 1.231 / (download) - annotate - [select for diffs], Tue Mar 6 20:56:36 2018 UTC (6 years, 3 months ago) by tim
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.230: +2 -2 lines
Diff to previous 1.230 (colored)

Fix a small mistake from r1.229 causing sysctl(8) to print "newval -> newval"
instead of "oldval -> newval" when changing a string variable.

OK florian@

Revision 1.230 / (download) - annotate - [select for diffs], Fri Feb 16 07:27:07 2018 UTC (6 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.229: +2 -4 lines
Diff to previous 1.229 (colored)

simplify synopsis and text;
ok millert

Revision 1.229 / (download) - annotate - [select for diffs], Sat Feb 10 05:53:58 2018 UTC (6 years, 4 months ago) by florian
Branch: MAIN
Changes since 1.228: +99 -7 lines
Diff to previous 1.228 (colored)

add support for binary sysctl payloads by handling them as hex
strings.

this was part of a demo showing how to implement the kernel side of
sysctl(3) for setting Semantically Opaque Interface Identifier key
material (for RFC 7217), but it seems to be the most straightforward
path toward integrating soiikey handling and rc.

Originally written by dlg, who commited it some time ago on my request.
I then backed it out again, now it's time to put it back in.

ok florian@ sthen@ naddy@ tb@

Man page bits tweaked & OK jmc

Revision 1.228 / (download) - annotate - [select for diffs], Wed Jul 19 06:30:54 2017 UTC (6 years, 10 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.227: +7 -100 lines
Diff to previous 1.227 (colored)

revert previous; the code this was supposed to be used for is moving
in the wrong direction.

Revision 1.227 / (download) - annotate - [select for diffs], Mon Jul 17 06:32:53 2017 UTC (6 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.226: +100 -7 lines
Diff to previous 1.226 (colored)

add support for binary sysctl payloads by handling them as hex strings.

this was part of a demo showing how to implement the kernel side of
sysctl(3) for setting Semantically Opaque Interface Identifier key
material, but it seems to be the most straightforward path toward
integrating soiikey handling and rc.

ok florian@ sthen@ naddy@ tb@

Revision 1.226 / (download) - annotate - [select for diffs], Tue Apr 25 17:33:16 2017 UTC (7 years, 1 month ago) by tb
Branch: MAIN
Changes since 1.225: +10 -11 lines
Diff to previous 1.225 (colored)

Use strtonum instead of strto{,u}ll for simpler and better overflow
checking, make somaxconn and sominconn unsigned.

Issue reported by orge on freenode, thanks!
Input, patient explanations and ok deraadt, millert.

Revision 1.225 / (download) - annotate - [select for diffs], Thu Mar 16 10:05:47 2017 UTC (7 years, 2 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.224: +3 -2 lines
Diff to previous 1.224 (colored)

Fix a regression preventing ``kern.profiling'' to return the profiling
state even with a correct kernel.

Reported by jmc@, ok tb@

Revision 1.224 / (download) - annotate - [select for diffs], Thu Dec 22 11:04:44 2016 UTC (7 years, 5 months ago) by rzalamena
Branch: MAIN
Changes since 1.223: +3 -6 lines
Diff to previous 1.223 (colored)

Remove PIM support from the multicast stack.

ok mpi@

Revision 1.223 / (download) - annotate - [select for diffs], Tue Oct 18 09:31:05 2016 UTC (7 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.222: +4 -7 lines
Diff to previous 1.222 (colored)

Rewrite the kern.malloc.kmemstat in the same style as previous. This one does
not overflow because the initial count includes empty slots; ok tb@

Revision 1.222 / (download) - annotate - [select for diffs], Sun Oct 9 06:20:25 2016 UTC (7 years, 8 months ago) by otto
Branch: MAIN
Changes since 1.221: +3 -6 lines
Diff to previous 1.221 (colored)

fix heap overflow by rewriting loop; detected by new malloc canaries
ok krw@ beck@

Revision 1.221 / (download) - annotate - [select for diffs], Wed Sep 21 14:06:49 2016 UTC (7 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.220: +1 -2 lines
Diff to previous 1.220 (colored)

sysctl KERN_ARND is no longer used (in ports, it only occurs in fallback
paths of libevent).  This interface was the first generation of what
eventually became getentropy(2) and arc4random(3) -- june 1997!
Ports scan by sthen, general agreement guenther

Revision 1.220 / (download) - annotate - [select for diffs], Fri Sep 2 11:11:48 2016 UTC (7 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.219: +3 -3 lines
Diff to previous 1.219 (colored)

for reporting changes, hex and decimal were swapped
noticed by pirofti

Revision 1.219 / (download) - annotate - [select for diffs], Thu Sep 1 09:13:49 2016 UTC (7 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.218: +14 -3 lines
Diff to previous 1.218 (colored)

Export machdep.cpufeature in hex, to avoid - values which made
yuo@ grumpy.
ok tom guenther yuo

Revision 1.218 / (download) - annotate - [select for diffs], Sat Aug 27 01:55:30 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.217: +2 -1 lines
Diff to previous 1.217 (colored)

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

ok deraadt@

Revision 1.217 / (download) - annotate - [select for diffs], Sun Aug 14 22:54:56 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
Changes since 1.216: +8 -7 lines
Diff to previous 1.216 (colored)

Use int64_t and %ll for CTLTYPE_QUAD nodes.
Use memcpy() instead of up-casting from char* to long long*

ok krw@

Revision 1.216 / (download) - annotate - [select for diffs], Wed Jul 27 14:44:59 2016 UTC (7 years, 10 months ago) by tedu
Branch: MAIN
Changes since 1.215: +9 -9 lines
Diff to previous 1.215 (colored)

increase the size of forkstat fields to accomodate large values

Revision 1.215 / (download) - annotate - [select for diffs], Sat Jun 18 10:36:13 2016 UTC (7 years, 11 months ago) by vgross
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.214: +5 -3 lines
Diff to previous 1.214 (colored)

Add net.inet.{tcp,udp}.rootonly sysctl, to mark which ports
cannot be bound to by non-root users.

Ok millert@ bluhm@

Revision 1.214 / (download) - annotate - [select for diffs], Mon May 23 15:48:59 2016 UTC (8 years ago) by deraadt
Branch: MAIN
Changes since 1.213: +1 -35 lines
Diff to previous 1.213 (colored)

remove the sysctl kern.random counters, since none of the remaining
ones are capable of giving valuable works vs does-not-work evidence.
ok tedu

Revision 1.213 / (download) - annotate - [select for diffs], Wed May 4 19:48:08 2016 UTC (8 years, 1 month ago) by jca
Branch: MAIN
Changes since 1.212: +1 -9 lines
Diff to previous 1.212 (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.212 / (download) - annotate - [select for diffs], Mon Feb 29 19:44:07 2016 UTC (8 years, 3 months ago) by naddy
Branch: MAIN
Changes since 1.211: +1 -182 lines
Diff to previous 1.211 (colored)

delete the kern.emul/KERN_EMUL sysctl bits since there are no
emulations left; ok millert@ deraadt@, jmc@ (man pages)

Revision 1.211 / (download) - annotate - [select for diffs], Sat Apr 18 18:28:37 2015 UTC (9 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.210: +28 -5 lines
Diff to previous 1.210 (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.210 / (download) - annotate - [select for diffs], Fri Feb 13 00:02:21 2015 UTC (9 years, 3 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.209: +5 -1 lines
Diff to previous 1.209 (colored)

Direct people to netstat for the new multicast routing sysctls.

problem noted by dcoppa@
ok claudio@

Revision 1.209 / (download) - annotate - [select for diffs], Mon Feb 9 12:04:27 2015 UTC (9 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.208: +15 -1 lines
Diff to previous 1.208 (colored)

provide a net.inet6.ip6.ifq sysctl so people can see and fiddle
with the ip6intrq.

ok claudio@

Revision 1.208 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:01 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.207: +2 -2 lines
Diff to previous 1.207 (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.207 / (download) - annotate - [select for diffs], Wed Nov 19 18:04:54 2014 UTC (9 years, 6 months ago) by tedu
Branch: MAIN
Changes since 1.206: +1 -6 lines
Diff to previous 1.206 (colored)

delete the KERN_VNODE sysctl. it fails to provide any isolation from the
kernel struct vnode defintion, and the only consumer (pstat) still needs
kvm to read much of the required information. no great loss to always use
kvm until there's a better replacement interface.
ok deraadt millert uebayasi

Revision 1.206 / (download) - annotate - [select for diffs], Sun Oct 26 03:45:29 2014 UTC (9 years, 7 months ago) by brad
Branch: MAIN
Changes since 1.205: +2 -2 lines
Diff to previous 1.205 (colored)

Add a format specifier for the printf.

ok guenther@

Revision 1.205 / (download) - annotate - [select for diffs], Sat Oct 25 03:18:13 2014 UTC (9 years, 7 months ago) by lteo
Branch: MAIN
Changes since 1.204: +1 -2 lines
Diff to previous 1.204 (colored)

Remove unnecessary netinet/in_systm.h include.

ok millert@

Revision 1.204 / (download) - annotate - [select for diffs], Mon Sep 15 19:08:21 2014 UTC (9 years, 8 months ago) by miod
Branch: MAIN
Changes since 1.203: +2 -2 lines
Diff to previous 1.203 (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.203 / (download) - annotate - [select for diffs], Sat Aug 16 21:39:16 2014 UTC (9 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.202: +4 -2 lines
Diff to previous 1.202 (colored)

repair operation of kern.arandom, which will only allow a buffer of
512 bytes.  As a result, it stopped working...
ok miod

Revision 1.202 / (download) - annotate - [select for diffs], Wed May 7 01:49:36 2014 UTC (10 years, 1 month ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.201: +3 -3 lines
Diff to previous 1.201 (colored)

missing word in error message. ok millert

Revision 1.201 / (download) - annotate - [select for diffs], Wed May 7 01:41:18 2014 UTC (10 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.200: +4 -4 lines
Diff to previous 1.200 (colored)

delete some crusty casts

Revision 1.200 / (download) - annotate - [select for diffs], Tue Apr 8 14:04:11 2014 UTC (10 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.199: +2 -1 lines
Diff to previous 1.199 (colored)

Use VM_UVMEXP instead of VM_METER for memory usages and directly
include <sys/vmmeter.h> where it is needed instead of relying on
it being included by <uvm/uvm_extern.h>.

miod@ likes it, ok guenther@

Revision 1.199 / (download) - annotate - [select for diffs], Thu Jan 23 03:00:04 2014 UTC (10 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.198: +7 -1 lines
Diff to previous 1.198 (colored)

kern.intrcnt is viewable with vmstat+systat

Revision 1.198 / (download) - annotate - [select for diffs], Fri Nov 22 04:12:48 2013 UTC (10 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.197: +3 -3 lines
Diff to previous 1.197 (colored)

Whole bunch of (unsigned char) casts carefully added for ctype calls.
Careful second audit by millert

Revision 1.197 / (download) - annotate - [select for diffs], Fri Nov 15 22:20:04 2013 UTC (10 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.196: +2 -1 lines
Diff to previous 1.196 (colored)

Include unistd.h as it is the standard location for getopt().

Revision 1.196 / (download) - annotate - [select for diffs], Tue Nov 12 19:42:47 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.195: +2 -2 lines
Diff to previous 1.195 (colored)

satisfy proto requirement

Revision 1.195 / (download) - annotate - [select for diffs], Tue Oct 22 16:40:28 2013 UTC (10 years, 7 months ago) by guenther
Branch: MAIN
Changes since 1.194: +2 -3 lines
Diff to previous 1.194 (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.194 / (download) - annotate - [select for diffs], Thu Jul 18 05:02:57 2013 UTC (10 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.193: +8 -4 lines
Diff to previous 1.193 (colored)

Revert 1.191 and 1.193 and fix the original problem (access to the last
filesystem, currently ext2fs) by increasing maxtypenum sufficiently.

suggested by Rafael Neves (rafaelneves (at) gmail.com)

Revision 1.193 / (download) - annotate - [select for diffs], Thu Jul 18 03:26:48 2013 UTC (10 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.192: +2 -2 lines
Diff to previous 1.192 (colored)

Correct off-by-one in naming of nodes below vfs.mounts.

problem noted by Rafael Neves (rafaelneves (at) gmail.com)
ok jca@

Revision 1.192 / (download) - annotate - [select for diffs], Sun Jun 9 12:54:38 2013 UTC (11 years ago) by tedu
Branch: MAIN
Changes since 1.191: +8 -1 lines
Diff to previous 1.191 (colored)

add fuse sysctls, from Sylvestre Gallon

Revision 1.191 / (download) - annotate - [select for diffs], Sun Jun 9 12:37:43 2013 UTC (11 years ago) by tedu
Branch: MAIN
Changes since 1.190: +3 -3 lines
Diff to previous 1.190 (colored)

fix an off by one preventing access to the last filesystem.
from Sylvestre Gallon

Revision 1.190 / (download) - annotate - [select for diffs], Sat Jun 8 14:24:39 2013 UTC (11 years ago) by yasuoka
Branch: MAIN
Changes since 1.189: +16 -1 lines
Diff to previous 1.189 (colored)

Add new sysctl for pipex packet input/output queue length and
counters.

ok guenther, feedback jmc

Revision 1.189 / (download) - annotate - [select for diffs], Tue Apr 16 22:06:48 2013 UTC (11 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.188: +2 -2 lines
Diff to previous 1.188 (colored)

handle big time_t types; ok guenther

Revision 1.188 / (download) - annotate - [select for diffs], Mon Apr 15 16:47:14 2013 UTC (11 years, 1 month ago) by guenther
Branch: MAIN
Changes since 1.187: +2 -4 lines
Diff to previous 1.187 (colored)

Remove CTL_USER hierarchy from sysctl()
(Use sysconf() or confstr() instead)

ok miod@ millert@

Revision 1.187 / (download) - annotate - [select for diffs], Fri Mar 29 01:35:37 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.186: +19 -25 lines
Diff to previous 1.186 (colored)

remove some of the unused fields from rndstats and stop printing zeroes.
print labels before stats so people can tell what's what.

Revision 1.186 / (download) - annotate - [select for diffs], Fri Mar 29 01:29:16 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.185: +3 -1 lines
Diff to previous 1.185 (colored)

sadly, we are going to need machine/cpu.h here for a while to get machdep
noticed by naddy

Revision 1.185 / (download) - annotate - [select for diffs], Thu Mar 28 16:39:14 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.184: +1 -5 lines
Diff to previous 1.184 (colored)

remove excesss includes

Revision 1.184 / (download) - annotate - [select for diffs], Thu Sep 20 20:11:58 2012 UTC (11 years, 8 months ago) by yuo
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.183: +10 -1 lines
Diff to previous 1.183 (colored)

add more sensor types to sensor framework.
 - Pressure (10^-3 Pa)
 - distance (10^-6 m)
 - acceleration (10^-6 m/s^2)

ok deraadt@ reyk@

Revision 1.183 / (download) - annotate - [select for diffs], Thu Apr 12 12:33:04 2012 UTC (12 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.182: +5 -5 lines
Diff to previous 1.182 (colored)

remove rfork(); ok guenther miod

Revision 1.182 / (download) - annotate - [select for diffs], Thu Jan 19 09:44:16 2012 UTC (12 years, 4 months ago) by chl
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.181: +1 -2 lines
Diff to previous 1.181 (colored)

remove unused variable.

ok yasuoka@

Revision 1.181 / (download) - annotate - [select for diffs], Sun Jan 15 16:00:50 2012 UTC (12 years, 4 months ago) by dhill
Branch: MAIN
Changes since 1.180: +2 -1 lines
Diff to previous 1.180 (colored)

add missing sysctl_pipex declaration

ok yasuoka

Revision 1.180 / (download) - annotate - [select for diffs], Fri Sep 16 20:52:48 2011 UTC (12 years, 8 months ago) by yuo
Branch: MAIN
Changes since 1.179: +6 -3 lines
Diff to previous 1.179 (colored)

reorder SENSOR_* in switch() and add missing cases.

ok deraadt@

Revision 1.179 / (download) - annotate - [select for diffs], Fri Sep 16 16:41:55 2011 UTC (12 years, 8 months ago) by yuo
Branch: MAIN
Changes since 1.178: +2 -2 lines
Diff to previous 1.178 (colored)

fix typo

Revision 1.178 / (download) - annotate - [select for diffs], Fri Sep 16 15:44:31 2011 UTC (12 years, 8 months ago) by yuo
Branch: MAIN
Changes since 1.177: +5 -2 lines
Diff to previous 1.177 (colored)

apply following changes to sensor framework:
- change accuracy of SENSOR_FREQ from Hz to muHz
- add SENSOR_VOLTS_AC entry to userland programs

ok deraadt@

Revision 1.177 / (download) - annotate - [select for diffs], Fri Jul 8 18:30:17 2011 UTC (12 years, 11 months ago) by yasuoka
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.176: +28 -1 lines
Diff to previous 1.176 (colored)

Include PIPEX in kernel by default.  And add new sysctl variable
`net.pipex.enable' to enable PIPEX.   By default, pipex is disabled
and it will not process packets from wire.  Update man pages and
update HOWTO_PIPEX_NPPPD.txt for testers.

discussed with dlg@, ok deraadt@ mcbride@ claudio@

Revision 1.176 / (download) - annotate - [select for diffs], Mon May 23 01:33:20 2011 UTC (13 years ago) by djm
Branch: MAIN
Changes since 1.175: +57 -31 lines
Diff to previous 1.175 (colored)

allow ranges for entering net.inet.(tcp|udp).baddynamic lists, e.g.

sysctl net.inet.tcp.baddynamic=1-32768
sysctl net.inet.udp.baddynamic=+40000-65535

ok mk@

Revision 1.175 / (download) - annotate - [select for diffs], Sat Mar 12 04:54:28 2011 UTC (13 years, 3 months ago) by guenther
Branch: MAIN
Changes since 1.174: +1 -2 lines
Diff to previous 1.174 (colored)

Replace the old, broken KERN_PROC ABI and its matching functions
in libkvm with the stable-ABI versions that are currently named
KERN_PROC2, kvm_get{proc,argv,envv}2().  The latter names and symbols
will continue to be supported for a few releases.

Committing now that they ports people have had a couple releases
to update pkgs that usd the old functions

Revision 1.174 / (download) - annotate - [select for diffs], Tue Nov 2 10:24:34 2010 UTC (13 years, 7 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.173: +4 -1 lines
Diff to previous 1.173 (colored)

expose the kernels network livelock counter

Revision 1.173 / (download) - annotate - [select for diffs], Thu Aug 19 18:14:14 2010 UTC (13 years, 9 months ago) by kettenis
Branch: MAIN
Changes since 1.172: +4 -1 lines
Diff to previous 1.172 (colored)

Introduce an MI kern.consdev sysctl that will replace the MD
machdep.console_device that's only implemented on a few architectures.

ok deraadt@, miod@

Revision 1.172 / (download) - annotate - [select for diffs], Wed Apr 21 19:40:59 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.171: +2 -2 lines
Diff to previous 1.171 (colored)

scale angle by 1000000 to permit min.sec accuracy

Revision 1.171 / (download) - annotate - [select for diffs], Wed Apr 21 04:07:13 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.170: +4 -1 lines
Diff to previous 1.170 (colored)

Add the "angle" sensor, measured in degrees; from Luis Pinto

Revision 1.170 / (download) - annotate - [select for diffs], Tue Apr 20 20:49:35 2010 UTC (14 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.169: +15 -7 lines
Diff to previous 1.169 (colored)

Get rid of MAXSENSORDEVICES.  Gaps in sensordev lists are now handled
by returning ENXIO instead of ENOENT, to essentially indicate hotplug
sensor that has gone away.  Accessing beyond the end of the sensordev
list still returns ENOENT, so that you can see there are no further devices.
ok kettenis oga

Revision 1.169 / (download) - annotate - [select for diffs], Tue Apr 20 19:44:07 2010 UTC (14 years, 1 month ago) by oga
Branch: MAIN
Changes since 1.168: +4 -1 lines
Diff to previous 1.168 (colored)

Add "frequency" type for sensors. (and teach userland how to print that
type).  Measured in Hz.

ok deraadt@

Revision 1.168 / (download) - annotate - [select for diffs], Thu Apr 15 04:57:29 2010 UTC (14 years, 1 month ago) by yuo
Branch: MAIN
Changes since 1.167: +4 -1 lines
Diff to previous 1.167 (colored)

add SENSOR_HUMIDITY to sensor framework to handle humidity values

ok kettenis@ xsa@ sobrado@ krw@ deraadt@

Revision 1.167 / (download) - annotate - [select for diffs], Thu Nov 5 20:50:14 2009 UTC (14 years, 7 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.166: +48 -2 lines
Diff to previous 1.166 (colored)

IPv6 support for divert sockets.

tested by phessler@ pyr@
ok claudio@
"go ahead" deraadt@

Revision 1.166 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:34 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.165: +1 -15 lines
Diff to previous 1.165 (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.165 / (download) - annotate - [select for diffs], Sun Oct 4 16:08:37 2009 UTC (14 years, 8 months ago) by michele
Branch: MAIN
Changes since 1.164: +15 -3 lines
Diff to previous 1.164 (colored)

Add (again) support for divert sockets. They allow you to:

- queue packets from pf(4) to a userspace application
- reinject packets from the application into the kernel stack.

The divert socket can be bound to a special "divert port" and will
receive every packet diverted to that port by pf(4).

The pf syntax is pretty simple, e.g.:

pass on em0 inet proto tcp from any to any port 80 divert-packet port 1

A lot of discussion have happened since my last commit that resulted
in many changes and improvements.
I would *really* like to thank everyone who took part in the discussion
especially canacar@ who spotted out which are the limitations of this approach.

OpenBSD divert(4) is meant to be compatible with software running on
top of FreeBSD's divert sockets even though they are pretty different and will
become even more with time.

discusses with many, but mainly reyk@ canacar@ deraadt@ dlg@ claudio@ beck@
tested by reyk@ and myself
ok reyk@ claudio@ beck@
manpage help and ok by jmc@

Revision 1.164 / (download) - annotate - [select for diffs], Tue Sep 8 17:52:17 2009 UTC (14 years, 9 months ago) by michele
Branch: MAIN
Changes since 1.163: +1 -3 lines
Diff to previous 1.163 (colored)

I had not enough oks to commit this diff.
Sorry.

Revision 1.163 / (download) - annotate - [select for diffs], Tue Sep 8 17:00:41 2009 UTC (14 years, 9 months ago) by michele
Branch: MAIN
Changes since 1.162: +5 -3 lines
Diff to previous 1.162 (colored)

Add support for divert sockets. They allow you to:

- queue packets from pf(4) to a userspace application
- reinject packets from the application into the kernel stack.

The divert socket can be bound to a special "divert port" and will
receive every packet diverted to that port by pf(4).

The pf syntax is pretty simple, e.g.:

pass on em0 inet proto tcp from any to any port 80 divert-packet port 8000

test, bugfix and ok by reyk@
manpage help and ok by jmc@
no objections from many others.

Revision 1.162 / (download) - annotate - [select for diffs], Wed Aug 12 12:26:51 2009 UTC (14 years, 10 months ago) by kettenis
Branch: MAIN
Changes since 1.161: +5 -2 lines
Diff to previous 1.161 (colored)

Add support for SENSOR_WATTS.

ok deraadt@, oga@

Revision 1.161 / (download) - annotate - [select for diffs], Sun Jun 7 03:07:19 2009 UTC (15 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.160: +7 -2 lines
Diff to previous 1.160 (colored)

Add KERN_FILE2 sysctl analogous to KERN_PROC2 but for file structures,
along with vnode type-specific info to make it more useful for fstat(1).
OK deraadt@

Revision 1.160 / (download) - annotate - [select for diffs], Mon Aug 4 04:26:42 2008 UTC (15 years, 10 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.159: +12 -10 lines
Diff to previous 1.159 (colored)

Properly output machdep.chipset values on alpha models without pci buses;
ok deraadt@

Revision 1.159 / (download) - annotate - [select for diffs], Sat Jul 12 12:04:10 2008 UTC (15 years, 11 months ago) by thib
Branch: MAIN
Changes since 1.158: +18 -12 lines
Diff to previous 1.158 (colored)


fix printing of nchstats

ok art@,dlg@

Revision 1.158 / (download) - annotate - [select for diffs], Wed Jul 9 20:20:46 2008 UTC (15 years, 11 months ago) by djm
Branch: MAIN
Changes since 1.157: +24 -24 lines
Diff to previous 1.157 (colored)

expand the net.inet.(tcp|udp).baddynamic dynamic source port
skipping bitmasks to cover the entire 65536 port space - previously
they covered 512-1024 only.

sysctl needs to be updated to cope with this change; please
"make includes" before rebuilding it.

feedback millert@ ok millert@ deraadt@ markus@

Revision 1.157 / (download) - annotate - [select for diffs], Mon Apr 28 11:52:53 2008 UTC (16 years, 1 month ago) by norby
Branch: MAIN
Changes since 1.156: +46 -2 lines
Diff to previous 1.156 (colored)

Teach sysctl about mpls.

Claudio did all the code, I'm just comitting it...

ok claudio@ laurent@ dlg@

Revision 1.156 / (download) - annotate - [select for diffs], Fri Mar 14 19:19:57 2008 UTC (16 years, 3 months ago) by sobrado
Branch: MAIN
Changes since 1.155: +6 -5 lines
Diff to previous 1.155 (colored)

"-Aa" are not required flags; sort synopses; improve description of "-a"

written with invaluable advice from jmc@

ok jmc@

Revision 1.155 / (download) - annotate - [select for diffs], Sat Feb 9 15:10:58 2008 UTC (16 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.154: +7 -4 lines
Diff to previous 1.154 (colored)

Introduce HW_PHYSMEM64 and HW_USERMEM64 sysctls, which don't overflow on
machines with more than 4GB of memory.  Make sysctl(8) print values obtained
using these sysctls for hw.physmem and hw.usermem.

ok krw@, miod@

Revision 1.154 / (download) - annotate - [select for diffs], Fri Dec 14 18:34:26 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.153: +165 -7 lines
Diff to previous 1.153 (colored)

Bring in probing for protocols that was missing; ok claudio reyk

Revision 1.153 / (download) - annotate - [select for diffs], Thu Dec 13 20:29:03 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.152: +13 -15 lines
Diff to previous 1.152 (colored)

the mib[] array will be modified by sysctl_inet, move the *CTL_STATS
checks after the call for this function. now it works (again) to skip
printing the ip/tcp/udp/icmp stats in sysctl output, use netstat instead.

Revision 1.152 / (download) - annotate - [select for diffs], Thu Dec 13 20:00:53 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.151: +14 -2 lines
Diff to previous 1.151 (colored)

implement sysctls to report IP, TCP, UDP, and ICMP statistics and
change netstat to use them instead of accessing kvm for it. more
protocols will be added later.

discussed with deraadt@ claudio@ gilles@
ok deraadt@

Revision 1.151 / (download) - annotate - [select for diffs], Mon Nov 26 13:36:33 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.150: +4 -6 lines
Diff to previous 1.150 (colored)

if no arguments given, assume a nice default; ok miod jakemsr deanna

Revision 1.150 / (download) - annotate - [select for diffs], Sun Nov 11 15:48:35 2007 UTC (16 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored)

do not document -w: it is for compat only. just like we did for audioctl,
mixerctl, and wsconsctl.

also move to "name=value", as for the other *ctl apps.

problem spotted by Tim van der Molen, though this might not be the fix
he wanted;

Revision 1.149 / (download) - annotate - [select for diffs], Mon Jun 4 13:17:54 2007 UTC (17 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.148: +2 -60 lines
Diff to previous 1.148 (colored)

no more ipx

Revision 1.148 / (download) - annotate - [select for diffs], Tue May 29 21:11:51 2007 UTC (17 years ago) by robert
Branch: MAIN
Changes since 1.147: +2 -77 lines
Diff to previous 1.147 (colored)

remove the ztsscale sysctl; ok deraadt@

Revision 1.147 / (download) - annotate - [select for diffs], Mon May 21 21:36:07 2007 UTC (17 years ago) by cnst
Branch: MAIN
Changes since 1.146: +9 -6 lines
Diff to previous 1.146 (colored)

small cleanups:
 * use NULL instead of 0 for pointers, as per style(9)
 * wrap a long for-loop line in sysctl_malloc()
 * fix -Wall complaint in print_sensor()

ok otto@

Revision 1.146 / (download) - annotate - [select for diffs], Tue Feb 20 00:02:56 2007 UTC (17 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.145: +17 -17 lines
Diff to previous 1.145 (colored)

knf found while fixing another bug

Revision 1.145 / (download) - annotate - [select for diffs], Sat Jan 6 00:23:52 2007 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.144: +4 -4 lines
Diff to previous 1.144 (colored)

pretty up the sensor outputs a wee bit more; partly spotted by jsg

Revision 1.144 / (download) - annotate - [select for diffs], Tue Dec 26 11:52:30 2006 UTC (17 years, 5 months ago) by mbalmer
Branch: MAIN
Changes since 1.143: +3 -3 lines
Diff to previous 1.143 (colored)

Show more digits in timedelta sensor output as the timedelta sensors become
increasingly more precise.

ok deraadt

Revision 1.143 / (download) - annotate - [select for diffs], Sat Dec 23 17:49:53 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.142: +142 -15 lines
Diff to previous 1.142 (colored)

adapt to new two-level sensor sysctl framework; by Constantine A. Murenin

Revision 1.142 / (download) - annotate - [select for diffs], Thu Oct 19 03:49:26 2006 UTC (17 years, 7 months ago) by marco
Branch: MAIN
Changes since 1.141: +8 -2 lines
Diff to previous 1.141 (colored)

Add WATTHOUR and AMPHOUR

ok jordan@

Revision 1.141 / (download) - annotate - [select for diffs], Mon Jun 5 06:34:44 2006 UTC (18 years ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.140: +6 -12 lines
Diff to previous 1.140 (colored)

Simpler code for printing time sensors: no leak and no floating
point. ok deraadt@

Revision 1.140 / (download) - annotate - [select for diffs], Sun Jun 4 01:34:48 2006 UTC (18 years ago) by deraadt
Branch: MAIN
Changes since 1.139: +6 -3 lines
Diff to previous 1.139 (colored)

print time offsets much nicer

Revision 1.139 / (download) - annotate - [select for diffs], Tue Apr 25 04:37:01 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.138: +3 -3 lines
Diff to previous 1.138 (colored)

for SENSOR_TIMEDELTA, store time in nanoseconds.  discussion with kettenis
mbalmer will have to cope.

Revision 1.138 / (download) - annotate - [select for diffs], Tue Apr 25 03:14:46 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.137: +14 -2 lines
Diff to previous 1.137 (colored)

if the timeval has data, print it at the end of the line

Revision 1.137 / (download) - annotate - [select for diffs], Thu Apr 20 21:09:08 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.136: +5 -3 lines
Diff to previous 1.136 (colored)

print timedelta; ok dlg

Revision 1.136 / (download) - annotate - [select for diffs], Tue Apr 18 03:07:44 2006 UTC (18 years, 1 month ago) by marco
Branch: MAIN
Changes since 1.135: +3 -3 lines
Diff to previous 1.135 (colored)

Discussed with jason@ that pfail means "partial fail".  Now it translates
to "degraded".

ok jason@

Revision 1.135 / (download) - annotate - [select for diffs], Thu Apr 13 01:05:59 2006 UTC (18 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.134: +27 -27 lines
Diff to previous 1.134 (colored)

Change how hw.sensors prints.  Much simpler format, easier to read. While
there, stick to printing temperature measurements in just one sane unit.
ok various people, no objections for the latter

Revision 1.134 / (download) - annotate - [select for diffs], Sun Apr 2 21:38:56 2006 UTC (18 years, 2 months ago) by djm
Branch: MAIN
Changes since 1.133: +5 -8 lines
Diff to previous 1.133 (colored)

malloc(x * y) -> calloc(x, y) from adobriyan AT gmail.com, with tweaks
suggested by kjell@; ok otto@ pat@ millert@ jaredy@

Revision 1.133 / (download) - annotate - [select for diffs], Wed Nov 30 15:46:32 2005 UTC (18 years, 6 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.132: +43 -2 lines
Diff to previous 1.132 (colored)

add a sensor type for drive status and hook esm up with it.

ok marco@ grange@ deraadt@

Revision 1.132 / (download) - annotate - [select for diffs], Tue Nov 15 22:12:07 2005 UTC (18 years, 6 months ago) by kettenis
Branch: MAIN
Changes since 1.131: +5 -2 lines
Diff to previous 1.131 (colored)

Add support for light sensors.
ok dlg@

Revision 1.131 / (download) - annotate - [select for diffs], Sat Nov 12 15:20:33 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.130: +8 -6 lines
Diff to previous 1.130 (colored)

more memleaks plugged; evol@online.ptt.ru

Revision 1.130 / (download) - annotate - [select for diffs], Sat Nov 12 02:23:11 2005 UTC (18 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.129: +3 -2 lines
Diff to previous 1.129 (colored)

memory leak; ok cloder

Revision 1.129 / (download) - annotate - [select for diffs], Sun Oct 23 13:53:09 2005 UTC (18 years, 7 months ago) by kettenis
Branch: MAIN
Changes since 1.128: +5 -2 lines
Diff to previous 1.128 (colored)

Add support for SENSOR_AMPS.
ok dlg@

Revision 1.128 / (download) - annotate - [select for diffs], Fri Aug 5 03:07:40 2005 UTC (18 years, 10 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.127: +5 -2 lines
Diff to previous 1.127 (colored)

add a sensor type that can report percentage

ok deraadt@

Revision 1.127 / (download) - annotate - [select for diffs], Thu Aug 4 16:00:06 2005 UTC (18 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.126: +6 -2 lines
Diff to previous 1.126 (colored)

HW_PHYSMEM and HW_USERMEM should be unsigned; ok tdeval marco

Revision 1.126 / (download) - annotate - [select for diffs], Thu Aug 4 13:00:44 2005 UTC (18 years, 10 months ago) by jsg
Branch: MAIN
Changes since 1.125: +5 -2 lines
Diff to previous 1.125 (colored)

Support for SENSOR_INTEGER.
ok grange@, dlg@, henning@

Revision 1.125 / (download) - annotate - [select for diffs], Thu Aug 4 03:53:08 2005 UTC (18 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.124: +5 -2 lines
Diff to previous 1.124 (colored)

a quick diff for marco, who wanted to see if his power supplies were on or
off. adds printing of the INDICATOR sensor type

ok deraadt@

Revision 1.124 / (download) - annotate - [select for diffs], Wed Aug 3 14:53:39 2005 UTC (18 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.123: +44 -20 lines
Diff to previous 1.123 (colored)

extend the sensors framework to allow it to report the state of the
sensor, not just its value.

ok henning@ marco@ deraadt@ beck@ fixes and tweaks grange@

Revision 1.123 / (download) - annotate - [select for diffs], Wed Jul 20 16:56:12 2005 UTC (18 years, 10 months ago) by miod
Branch: MAIN
Changes since 1.122: +8 -2 lines
Diff to previous 1.122 (colored)

Print the last two kern.nchstats entries.

Revision 1.122 / (download) - annotate - [select for diffs], Tue May 24 04:20:26 2005 UTC (19 years ago) by markus
Branch: MAIN
Changes since 1.121: +19 -2 lines
Diff to previous 1.121 (colored)

add net.inet.ip.ifq for monitoring and changing ifqueue; similar to netbsd
ok henning

Revision 1.121 / (download) - annotate - [select for diffs], Sun Apr 24 21:48:15 2005 UTC (19 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.120: +4 -3 lines
Diff to previous 1.120 (colored)

it is nice if this compiles on other systems

Revision 1.120 / (download) - annotate - [select for diffs], Sun Apr 24 18:55:49 2005 UTC (19 years, 1 month ago) by uwe
Branch: MAIN
Changes since 1.119: +75 -2 lines
Diff to previous 1.119 (colored)

Do down-sampling of the high-resolution touch pad events in kernel,
and provide sysctls for fine-tuning the touch pad area that covers the
screen.  Reasonable defaults are provided, but each machine can be a
bit different due to the manufacturing process.

Revision 1.119 / (download) - annotate - [select for diffs], Wed Apr 20 23:40:12 2005 UTC (19 years, 1 month ago) by beck
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

actually error out when we would overflow by using the return value from
strlcpy, instead of just warning about out, and clobbering stuff anyway.
ok millert@

Revision 1.118 / (download) - annotate - [select for diffs], Wed Apr 13 04:02:06 2005 UTC (19 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.117: +6 -6 lines
Diff to previous 1.117 (colored)

avoid variable aliasing

Revision 1.117 / (download) - annotate - [select for diffs], Fri Jan 28 15:39:14 2005 UTC (19 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.116: +2 -3 lines
Diff to previous 1.116 (colored)

Allow setting of kern.tty.*; now we can set kern.tty.maxptys.  The kernel
itself will return an error if the user tries to set a read-only variable.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Sep 14 22:09:38 2004 UTC (19 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored)

do not alias over libc ttyname(3)

Revision 1.115 / (download) - annotate - [select for diffs], Sun Aug 8 19:04:25 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.114: +10 -10 lines
Diff to previous 1.114 (colored)

spacing

Revision 1.114 / (download) - annotate - [select for diffs], Wed Jul 28 17:15:12 2004 UTC (19 years, 10 months ago) by tholo
Branch: MAIN
Changes since 1.113: +31 -2 lines
Diff to previous 1.113 (colored)

This touches only MI code, and adds new time keeping code.  The
code is all conditionalized on __HAVE_TIMECOUNTER, and not
enabled on any platforms.

adjtime(2) support exists, courtesy of nordin@, sysctl(2) support
and a concept of quality for each time source attached exists.

High quality time sources exists for PIIX4 ACPI timer as well as
some AMD power management chips.  This will have to be redone
once we actually add ACPI support (at that time we need to use
the ACPI interfaces to get at these clocks).

ok art@ ken@ miod@ jmc@ and many more

Revision 1.113 / (download) - annotate - [select for diffs], Thu Apr 15 00:23:17 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.112: +44 -23 lines
Diff to previous 1.112 (colored)

new world order for emulations.  adjust, and become more robust.
testing ok deraadt@

Revision 1.112 / (download) - annotate - [select for diffs], Sun Mar 21 01:46:42 2004 UTC (20 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.111: +3 -8 lines
Diff to previous 1.111 (colored)

CPU_LONGRUN is gone.  repair kern.emul.nemuls, strcmp on right string

Revision 1.111 / (download) - annotate - [select for diffs], Wed Feb 25 08:39:02 2004 UTC (20 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

note that -w is optional and adjust accordingly;
remove -w from EXAMPLES;

diffs from Paul de Weerd;
ok deraadt@

Revision 1.110 / (download) - annotate - [select for diffs], Tue Feb 24 21:45:01 2004 UTC (20 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.109: +28 -2 lines
Diff to previous 1.109 (colored)

deal with bpf node

Revision 1.109 / (download) - annotate - [select for diffs], Tue Feb 10 19:53:33 2004 UTC (20 years, 4 months ago) by grange
Branch: MAIN
Changes since 1.108: +3 -3 lines
Diff to previous 1.108 (colored)

Add flags field to the sensor structure and an only flag SENSOR_FINVALID
which allows to drop information from broken, unwired, disabled, etc
sensors.

ok hshoexer@

Revision 1.108 / (download) - annotate - [select for diffs], Tue Feb 10 03:52:53 2004 UTC (20 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.107: +9 -3 lines
Diff to previous 1.107 (colored)

Tell user to run pstat -t to get kern.tty.ttyinfo if they explicitly
ask for it, else just ignore it.  This is consistent with sysctl
behavior and other entries of type CTLTYPE_STRUCT.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Feb 10 01:20:12 2004 UTC (20 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.106: +3 -3 lines
Diff to previous 1.106 (colored)

Don't hard-code type for tty sysctls to CTLTYPE_QUAD; some values are
now int.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Jan 19 01:09:06 2004 UTC (20 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored)

little wflag fallout spotted by atle kristensen

Revision 1.105 / (download) - annotate - [select for diffs], Sun Jan 11 22:19:18 2004 UTC (20 years, 5 months ago) by grange
Branch: MAIN
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored)

Trivial changes to pass through -Wall

ok millert@

Revision 1.104 / (download) - annotate - [select for diffs], Sun Jan 11 21:56:31 2004 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.103: +3 -7 lines
Diff to previous 1.103 (colored)

remove the temporary -O flag..

Revision 1.103 / (download) - annotate - [select for diffs], Sun Jan 11 21:54:27 2004 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.102: +35 -31 lines
Diff to previous 1.102 (colored)

Print output as "var=value" instead of "var = value".  Also, any assignment
implies -w.  I have despised the existing behaviour for years.  ok from
henning, millert, grange

Revision 1.102 / (download) - annotate - [select for diffs], Fri Jan 9 02:46:04 2004 UTC (20 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.101: +3 -2 lines
Diff to previous 1.101 (colored)

Tell the user to run ps if they try to view things under KERN_PROC2
(same handling as KERN_PROC).

Revision 1.101 / (download) - annotate - [select for diffs], Mon Jan 5 15:26:18 2004 UTC (20 years, 5 months ago) by markus
Branch: MAIN
Changes since 1.100: +4 -4 lines
Diff to previous 1.100 (colored)

0K == -273.15C and sync computation with drivers; ok grange

Revision 1.100 / (download) - annotate - [select for diffs], Fri Oct 17 21:04:57 2003 UTC (20 years, 7 months ago) by mcbride
Branch: MAIN
Changes since 1.99: +8 -2 lines
Diff to previous 1.99 (colored)

Common Address Redundancy Protocol

Allows multiple hosts to share an IP address, providing high availability
and load balancing.

Based on code by mickey@, with additional help from markus@
and Marco_Pfatschbacher@genua.de

ok deraadt@

Revision 1.99 / (download) - annotate - [select for diffs], Fri Sep 26 16:09:27 2003 UTC (20 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.98: +16 -10 lines
Diff to previous 1.98 (colored)

check strdup failure; ok anil millert

Revision 1.98 / (download) - annotate - [select for diffs], Tue Sep 9 11:55:05 2003 UTC (20 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.97: +4 -4 lines
Diff to previous 1.97 (colored)

slight cleanup of man page and sync usage();

Revision 1.97 / (download) - annotate - [select for diffs], Sun Aug 24 01:30:26 2003 UTC (20 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.96: +38 -20 lines
Diff to previous 1.96 (colored)

don't print info about duplicate emuls.  gives the illusion there is only
one linux emul and one freebsd emul.  ok deraadt@

Revision 1.96 / (download) - annotate - [select for diffs], Thu Aug 21 18:56:07 2003 UTC (20 years, 9 months ago) by tedu
Branch: MAIN
Changes since 1.95: +133 -2 lines
Diff to previous 1.95 (colored)

emulation is now controlled by sysctl.  changes:
add e_flags to struct emul.  this stores on/off and native flags.
check for emul enabled in check_exec().  gather all the emuls into a
emulsw so a sysctl can find them.  create sysctl.  move maxhdrsiz calcualation
into init_main so it cleans up sys_execve codepath.  teach sysctl utility
to grok kern.emul hierarchy.
requested and ok deraadt@  some comments from mickey@

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jun 11 06:22:15 2003 UTC (21 years ago) by deraadt
Branch: MAIN
Changes since 1.94: +4 -3 lines
Diff to previous 1.94 (colored)

ansification

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jun 2 20:06:17 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.93: +3 -7 lines
Diff to previous 1.93 (colored)

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

Revision 1.93 / (download) - annotate - [select for diffs], Mon May 26 08:35:05 2003 UTC (21 years ago) by tedu
Branch: MAIN
Changes since 1.92: +7 -2 lines
Diff to previous 1.92 (colored)

ignore longrun struct.  eliminates a warning

Revision 1.92 / (download) - annotate - [select for diffs], Wed May 14 01:50:33 2003 UTC (21 years, 1 month ago) by jfb
Branch: MAIN
Changes since 1.91: +50 -33 lines
Diff to previous 1.91 (colored)

Add the -q flag to suppress all output when setting a variable
with -w

ok jsyn@, millert@

Revision 1.91 / (download) - annotate - [select for diffs], Tue May 6 19:30:14 2003 UTC (21 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.90: +76 -76 lines
Diff to previous 1.90 (colored)

KNF while I'm here

Revision 1.90 / (download) - annotate - [select for diffs], Tue May 6 19:27:47 2003 UTC (21 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.89: +11 -7 lines
Diff to previous 1.89 (colored)

for hw.sensors, print stuff in a human friendly way - temperatures in
degC and degF, fan speed in RPM, and voltages in (surprise) V.
theo, millert, grange agree

Revision 1.89 / (download) - annotate - [select for diffs], Fri Apr 25 20:32:18 2003 UTC (21 years, 1 month ago) by grange
Branch: MAIN
Changes since 1.88: +64 -2 lines
Diff to previous 1.88 (colored)

Support for accessing the information from the hardware monitoring sensors
via hw.sensors node. To get the information from the all sensors
just do
$ sysctl hw.sensors.
To get the information from the particular sensor (number 5 e.g.) do
$ sysctl hw.sensors.5

Tested and ok'ed by henning@ and millert@.

Revision 1.88 / (download) - annotate - [select for diffs], Fri Apr 25 20:27:19 2003 UTC (21 years, 1 month ago) by grange
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored)

Very little tweak for consistency in space vs \t

Revision 1.87 / (download) - annotate - [select for diffs], Mon Apr 7 23:10:46 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.86: +3 -3 lines
Diff to previous 1.86 (colored)

strlcat; ok millert

Revision 1.86 / (download) - annotate - [select for diffs], Tue Jan 21 16:59:23 2003 UTC (21 years, 4 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.85: +31 -2 lines
Diff to previous 1.85 (colored)

add kern.watchdog sysctl and generic watchdog interface;
based on feedback and discussions with mickey, henric, fgsch and jakob.
ok art@, mickey@, jakob@, henric@

Revision 1.85 / (download) - annotate - [select for diffs], Tue Dec 17 23:11:32 2002 UTC (21 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.84: +70 -4 lines
Diff to previous 1.84 (colored)

Make SysV-style shared memory and semaphore limits sysctl'able.
Instead of allocating a static amount of memory for the data
structures via valloc() in allocsys(), allocate things dynamically
using pool(9) when possible and malloc(9) when not.  The various
members of struct seminfo and struct shminfo are in kern.seminfo
and kern.shminfo respectively (not all members of kern.seminfo are
changable).

The data structures used still leave something to be desired but
things are not made worse in that respect by this commit.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Jul 6 19:14:20 2002 UTC (21 years, 11 months ago) by nordin
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.83: +2 -7 lines
Diff to previous 1.83 (colored)

Remove kernel support for NTP. ok deraadt@ and tholo@

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jul 3 22:32:34 2002 UTC (21 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.82: +38 -110 lines
Diff to previous 1.82 (colored)

ansi

Revision 1.82 / (download) - annotate - [select for diffs], Sun Jun 9 08:13:09 2002 UTC (22 years ago) by todd
Branch: MAIN
Changes since 1.81: +4 -4 lines
Diff to previous 1.81 (colored)

rm trailing whitespace

Revision 1.81 / (download) - annotate - [select for diffs], Sun Jun 9 04:49:19 2002 UTC (22 years ago) by angelos
Branch: MAIN
Changes since 1.80: +7 -2 lines
Diff to previous 1.80 (colored)

Print message for kern.mbstat (to use netstat)

Revision 1.80 / (download) - annotate - [select for diffs], Sun May 26 07:55:01 2002 UTC (22 years ago) by matthieu
Branch: MAIN
Changes since 1.79: +73 -2 lines
Diff to previous 1.79 (colored)

- CPU_MAXID and CPU_CHIPSET were swapped in cpu.h
- add support to print machdep.chipset mib on alpha
ok deraadt@

Revision 1.79 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:38 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.78: +21 -21 lines
Diff to previous 1.78 (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.78 / (download) - annotate - [select for diffs], Tue Dec 4 14:57:27 2001 UTC (22 years, 6 months ago) by art
Branch: MAIN
Changes since 1.77: +6 -3 lines
Diff to previous 1.77 (colored)

Support for the new uvm sysctls.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Nov 5 23:15:25 2001 UTC (22 years, 7 months ago) by art
Branch: MAIN
Changes since 1.76: +2 -3 lines
Diff to previous 1.76 (colored)

No need to vm_param.h here.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Aug 2 11:09:39 2001 UTC (22 years, 10 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.75: +5 -4 lines
Diff to previous 1.75 (colored)

nkmempages.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Jul 13 23:51:35 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.74: +4 -2 lines
Diff to previous 1.74 (colored)

escape a wrning on msgbuf, under certain circumstances

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jul 5 08:42:15 2001 UTC (22 years, 11 months ago) by jjbg
Branch: MAIN
Changes since 1.73: +15 -2 lines
Diff to previous 1.73 (colored)

IPComp support. angelos@ ok.

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

UVM is no longer an option

Revision 1.72 / (download) - annotate - [select for diffs], Fri Jun 22 23:17:27 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.71: +20 -11 lines
Diff to previous 1.71 (colored)

Fix more printf formats.
Add some missing prototypes.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jun 22 22:34:26 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.70: +19 -15 lines
Diff to previous 1.70 (colored)

Fix a bunch of u_int64_t formats.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jun 22 22:14:39 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored)

more arguments than format

Revision 1.69 / (download) - annotate - [select for diffs], Fri Jun 22 21:39:07 2001 UTC (22 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.68: +5 -2 lines
Diff to previous 1.68 (colored)

block on msgbuf

Revision 1.68 / (download) - annotate - [select for diffs], Fri Jun 22 21:35:46 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.67: +2 -3 lines
Diff to previous 1.67 (colored)

unused variable

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jun 22 21:31:02 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.66: +10 -3 lines
Diff to previous 1.66 (colored)

Nicer printing of kmem buckets.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Jun 1 20:08:31 2001 UTC (23 years ago) by mickey
Branch: MAIN
Changes since 1.65: +9 -5 lines
Diff to previous 1.65 (colored)

make listall immune to supuh long names; after deraadtification

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jun 1 19:29:13 2001 UTC (23 years ago) by mickey
Branch: MAIN
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored)

duh, main returns

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jun 1 19:27:07 2001 UTC (23 years ago) by mickey
Branch: MAIN
Changes since 1.63: +3 -4 lines
Diff to previous 1.63 (colored)

do not use strlen after strlcpy

Revision 1.63 / (download) - annotate - [select for diffs], Mon May 14 07:14:53 2001 UTC (23 years, 1 month ago) by angelos
Branch: MAIN
Changes since 1.62: +51 -5 lines
Diff to previous 1.62 (colored)

Ignore empty strings in kern.malloc.kmemstat.<foo>, add tty stats.

Revision 1.62 / (download) - annotate - [select for diffs], Sat May 12 06:47:17 2001 UTC (23 years, 1 month ago) by angelos
Branch: MAIN
Changes since 1.61: +16 -7 lines
Diff to previous 1.61 (colored)

Better argument checking for kmemstats.

Revision 1.61 / (download) - annotate - [select for diffs], Fri May 11 06:43:41 2001 UTC (23 years, 1 month ago) by angelos
Branch: MAIN
Changes since 1.60: +220 -11 lines
Diff to previous 1.60 (colored)

Print the new sysctls (nchstats, kmemstats, nselcoll, forkstat)

Revision 1.60 / (download) - annotate - [select for diffs], Fri Feb 23 16:46:36 2001 UTC (23 years, 3 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.59: +34 -19 lines
Diff to previous 1.59 (colored)

give cp_time a proper treatment

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jan 22 23:10:33 2001 UTC (23 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.58: +4 -4 lines
Diff to previous 1.58 (colored)

attempting to sysctl clear a string was failing; checked by millert and aaron

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jan 4 22:02:02 2001 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.57: +2 -4 lines
Diff to previous 1.57 (colored)

Sync.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jan 4 07:50:33 2001 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.56: +15 -14 lines
Diff to previous 1.56 (colored)

Read a struct kmembuckets, rather than individual values.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Jan 4 06:07:22 2001 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.55: +81 -3 lines
Diff to previous 1.55 (colored)

Print the kern.malloc.* branch

Revision 1.55 / (download) - annotate - [select for diffs], Fri Dec 22 22:47:04 2000 UTC (23 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.54: +4 -6 lines
Diff to previous 1.54 (colored)

strlcpy is great

Revision 1.54 / (download) - annotate - [select for diffs], Tue Nov 21 06:18:27 2000 UTC (23 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

Fix an int * that should be a size_t * when calling sysctl(3).

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Fri Oct 6 20:40:28 2000 UTC (23 years, 8 months ago) by jason
Branch: OPENBSD_2_7
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) next main 1.50 (colored)

Pull in patch from current (more to come...):
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.53 / (download) - annotate - [select for diffs], Fri Jun 30 16:00:10 2000 UTC (23 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Wed Jun 14 16:54:46 2000 UTC (24 years ago) by provos
Branch: MAIN
Changes since 1.51: +45 -6 lines
Diff to previous 1.51 (colored)

add swapencrypt ctl level.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jun 7 00:20:32 2000 UTC (24 years ago) by itojun
Branch: MAIN
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

s/PIMCTL/PIM6CTL/ for less confusion.

Revision 1.50 / (download) - annotate - [select for diffs], Mon May 22 17:29:42 2000 UTC (24 years ago) by mickey
Branch: MAIN
Changes since 1.49: +135 -27 lines
Diff to previous 1.49 (colored)

modify vfs subtree to accomodate for fs-specific variables.
in particular expose vfs.nfs.iothreads, which is a replacement
for nfsiod kludge.
this is not a netbsd port-over, since this particular
implementation builds up the needed variable indexes dynamically
(using the already existing `generic' vfs variables),
as opposed to netbsd which relies on static matching w/ kernel
definitions and configuration...
man changes to come soon.

Revision 1.49 / (download) - annotate - [select for diffs], Mon Apr 10 19:50:50 2000 UTC (24 years, 2 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE
Branch point for: OPENBSD_2_7
Changes since 1.48: +19 -12 lines
Diff to previous 1.48 (colored)

this is how rnd stats are printed out now

Revision 1.48 / (download) - annotate - [select for diffs], Tue Mar 21 20:46:30 2000 UTC (24 years, 2 months ago) by mickey
Branch: MAIN
Changes since 1.47: +9 -4 lines
Diff to previous 1.47 (colored)

more random stats

Revision 1.47 / (download) - annotate - [select for diffs], Sun Feb 6 16:58:01 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

do not directly include netinet6/{ip6,icmp6}.h

Revision 1.46 / (download) - annotate - [select for diffs], Fri Jan 21 02:53:06 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (colored)

ip4.allow -> ipip.allow

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 7 21:34:58 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.44: +7 -4 lines
Diff to previous 1.44 (colored)

gre.allow and mobileip.allow

Revision 1.44 / (download) - annotate - [select for diffs], Thu Dec 30 19:06:06 1999 UTC (24 years, 5 months ago) by provos
Branch: MAIN
Changes since 1.43: +9 -2 lines
Diff to previous 1.43 (colored)

vm.swapencrypt for UVM

Revision 1.43 / (download) - annotate - [select for diffs], Fri Dec 10 10:12:56 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.42: +107 -2 lines
Diff to previous 1.42 (colored)

add IPv6 support.  net.inet6.{ip6,icmp6} will be printed.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 28 03:34:03 1999 UTC (24 years, 7 months ago) by angelos
Branch: MAIN
Changes since 1.41: +50 -2 lines
Diff to previous 1.41 (colored)

net.inet.etherip.allow sysctl

Revision 1.41 / (download) - annotate - [select for diffs], Thu Sep 2 22:04:38 1999 UTC (24 years, 9 months ago) by pjanzen
Branch: MAIN
Changes since 1.40: +23 -8 lines
Diff to previous 1.40 (colored)

Treat kern.hostid as a u_int, and clean up parsing of integers on the command
line.

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jul 1 15:45:18 1999 UTC (24 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.39: +19 -2 lines
Diff to previous 1.39 (colored)

print kern.arandom unsigned

Revision 1.39 / (download) - annotate - [select for diffs], Sun Apr 11 19:41:41 1999 UTC (25 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.38: +41 -59 lines
Diff to previous 1.38 (colored)

Introduce net.inet.{ah,esp}.enable sysctl controls that are off by default.
If you are going to use either of AH or ESP or both, enable these in
/etc/sysctl.conf.  Also correct the IPSec debugging sysctl code, it is now
named net.inet.ip.encdebug.  Some corrected function signatures too.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Apr 9 23:30:06 1999 UTC (25 years, 2 months ago) by niklas
Branch: MAIN
Changes since 1.37: +5 -3 lines
Diff to previous 1.37 (colored)

The userland parts of a sysctl that can switch on/off IP-in-IP (protocol 4)

Revision 1.37 / (download) - annotate - [select for diffs], Thu Feb 25 21:59:50 1999 UTC (25 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

mib for pf_key is PF_KEY not PF_KEY_V2

Revision 1.36 / (download) - annotate - [select for diffs], Wed Feb 24 22:59:43 1999 UTC (25 years, 3 months ago) by angelos
Branch: MAIN
Changes since 1.35: +6 -7 lines
Diff to previous 1.35 (colored)

New position for the encdebug variable.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Mar 19 07:36:11 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.34: +4 -5 lines
Diff to previous 1.34 (colored)

fix type botches

Revision 1.34 / (download) - annotate - [select for diffs], Sun Mar 15 17:48:48 1998 UTC (26 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.33: +83 -8 lines
Diff to previous 1.33 (colored)

Add support for vfs.* from lite2

Revision 1.33 / (download) - annotate - [select for diffs], Tue Feb 17 20:51:24 1998 UTC (26 years, 3 months ago) by matthieu
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

use warn() instead of warnx() to print error message

Revision 1.32 / (download) - annotate - [select for diffs], Sat Oct 25 21:46:06 1997 UTC (26 years, 7 months ago) by mickey
Branch: MAIN
Changes since 1.31: +43 -11 lines
Diff to previous 1.31 (colored)

fix diskinfo listing, support blk2chr,chr2blk

Revision 1.31 / (download) - annotate - [select for diffs], Sat Oct 25 08:23:38 1997 UTC (26 years, 7 months ago) by mickey
Branch: MAIN
Changes since 1.30: +45 -19 lines
Diff to previous 1.30 (colored)

make diskinfo working; fix one bug and one exploit

Revision 1.30 / (download) - annotate - [select for diffs], Wed Oct 22 23:40:35 1997 UTC (26 years, 7 months ago) by mickey
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored)

newer bios stuff

Revision 1.29 / (download) - annotate - [select for diffs], Wed Oct 15 19:30:55 1997 UTC (26 years, 8 months ago) by kstailey
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

s/xntpd/xntpdc/

Revision 1.28 / (download) - annotate - [select for diffs], Fri Oct 3 21:15:19 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

put real geo field in ()

Revision 1.27 / (download) - annotate - [select for diffs], Fri Oct 3 20:58:04 1997 UTC (26 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored)

avoid sign extension on bios geometry!

Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 21 23:02:03 1997 UTC (26 years, 8 months ago) by mickey
Branch: MAIN
Changes since 1.25: +46 -12 lines
Diff to previous 1.25 (colored)

new machdep.bios subtree

Revision 1.25 / (download) - annotate - [select for diffs], Fri Sep 12 03:56:08 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

Add parens to shut up -Wall.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Aug 29 02:40:40 1997 UTC (26 years, 9 months ago) by mickey
Branch: MAIN
Changes since 1.23: +4 -2 lines
Diff to previous 1.23 (colored)

fix case we have no CPU_BIOS* defined

Revision 1.23 / (download) - annotate - [select for diffs], Thu Aug 28 19:39:20 1997 UTC (26 years, 9 months ago) by mickey
Branch: MAIN
Changes since 1.22: +20 -3 lines
Diff to previous 1.22 (colored)

symbolic bios bootdev, s/hpc/tpc/ for bios geonetry

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 28 19:31:51 1997 UTC (26 years, 9 months ago) by mickey
Branch: MAIN
Changes since 1.21: +20 -2 lines
Diff to previous 1.21 (colored)

grok bios geometry

Revision 1.21 / (download) - annotate - [select for diffs], Tue Aug 19 23:20:32 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.20: +118 -123 lines
Diff to previous 1.20 (colored)

Some KNF, check a few return values and use err/warn.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 19 22:38:31 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.19: +70 -71 lines
Diff to previous 1.19 (colored)

Move bad dynamic port parsing into parse_baddynamic().

Revision 1.19 / (download) - annotate - [select for diffs], Tue Aug 19 06:42:42 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.18: +51 -12 lines
Diff to previous 1.18 (colored)

Add support for adding/subtracting ports from the current baddynamic
mask.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Aug 19 06:16:26 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

typo

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 19 05:53:12 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.16: +33 -26 lines
Diff to previous 1.16 (colored)

Make net.inet.tcp.baddynamic and net.inet.udp.baddynamic
comma-separated instead of space-separated when printing
so it is easy to cut and paste.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Aug 19 05:32:57 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.15: +6 -4 lines
Diff to previous 1.15 (colored)

Only print bad dynamic ports list for udp and tcp since that's all
that exist.  This fixes a bug where net.inet.ip.redirect,
net.inet.ip.directed-broadcast, and net.inet.tcp.keepinittimem
got interpreted as dynamic port lists.  Oops.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 9 23:36:31 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.14: +55 -5 lines
Diff to previous 1.14 (colored)

The list of tcp/udp ports not to allocate dynamically is now
a bitmask configurable via sysctl([38]).  The default values
have not changed.  If one wants to change the list it should
be done early on in /etc/rc.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Jul 22 15:06:54 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.13: +28 -28 lines
Diff to previous 1.13 (colored)

tabify, use NULL for ptr ops, not 0

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 22 14:43:19 1997 UTC (26 years, 10 months ago) by kstailey
Branch: MAIN
Changes since 1.12: +20 -20 lines
Diff to previous 1.12 (colored)

re-tabify (angelos!)

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jul 15 00:38:15 1997 UTC (26 years, 11 months ago) by angelos
Branch: MAIN
Changes since 1.11: +77 -20 lines
Diff to previous 1.11 (colored)

sysctl for PF_ENCAP.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 28 07:05:34 1997 UTC (26 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +11 -11 lines
Diff to previous 1.10 (colored)

fix the rnd types

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 24 02:45:02 1997 UTC (26 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.9: +5 -4 lines
Diff to previous 1.9 (colored)

more accounting!

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 17 19:42:02 1997 UTC (26 years, 11 months ago) by mickey
Branch: MAIN
Changes since 1.8: +9 -9 lines
Diff to previous 1.8 (colored)

count slow queue low entropy drops
bigger queue
use queue overflows for arc4_stir()

Revision 1.8 / (download) - annotate - [select for diffs], Sat Jun 14 21:37:12 1997 UTC (27 years ago) by mickey
Branch: MAIN
Changes since 1.7: +23 -3 lines
Diff to previous 1.7 (colored)

split the treatment of the random events
event_q by flipk@
spl fix by deraadt@
gother statistics about whole processing
use 'sysctl kern.random' to view what had happened
also fix wrong vm.psstrings description

Revision 1.7 / (download) - annotate - [select for diffs], Sun Apr 6 20:19:22 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Use a size_t as arg 4 to sysctl(3).

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jan 16 03:57:31 1997 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.5: +11 -2 lines
Diff to previous 1.5 (colored)

Support VM_PSSTRINGS.  Man, this has been sitting in my tree for a while...

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jan 15 23:44:22 1997 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Mon Nov 25 08:22:43 1996 UTC (27 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.3: +89 -7 lines
Diff to previous 1.3 (colored)

ipx sysctl.
cleanup (protyping, printf formats and so)
1 (one) bug fix in printf's arg (struct instead of field)

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 8 06:36:48 1996 UTC (27 years, 10 months ago) by tholo
Branch: MAIN
Changes since 1.2: +40 -1 lines
Diff to previous 1.2 (colored)

Make {,f}chown(2) behaviour POSIX.1 compliant with SUID / SGID files
Enable CTL_FS processing by sysctl(3)
Add CTL_FS request to disable clearing SUID / SGID bit when a files owner
or group is changed by root
Make sysctl(8) understand CTL_FS requests

Revision 1.2 / (download) - annotate - [select for diffs], Sat Mar 30 04:53:15 1996 UTC (28 years, 2 months ago) by mickey
Branch: MAIN
Changes since 1.1: +4 -0 lines
Diff to previous 1.1 (colored)

DDB support added.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:48:22 1995 UTC (28 years, 8 months ago) by deraadt
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:48:22 1995 UTC (28 years, 8 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.