The NetBSD Project

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

[BACK] Up to [cvs.NetBSD.org] / src / sbin / sysctl

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.165 / (download) - annotate - [select for diffs], Sun Apr 2 18:15:24 2023 UTC (12 months, 2 weeks ago) by ryo
Branch: MAIN
CVS Tags: HEAD
Changes since 1.164: +3 -9 lines
Diff to previous 1.164 (colored)

commonize case block

Revision 1.164 / (download) - annotate - [select for diffs], Sun Apr 2 18:11:26 2023 UTC (12 months, 2 weeks ago) by ryo
Branch: MAIN
Changes since 1.163: +3 -3 lines
Diff to previous 1.163 (colored)

don't pass add=1 to print_tree() when displaying by specifying nodes.

For example, "sysctl -w kern.mbuf=" had been displayed extra node names in the MIB.
 # sysctl -w kern.mbuf=
 kern.mbuf.mbuf.msize = 512
 kern.mbuf.mbuf.mclbytes = 2048
 :

Revision 1.163 / (download) - annotate - [select for diffs], Tue Dec 28 16:06:57 2021 UTC (2 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.162: +3 -2 lines
Diff to previous 1.162 (colored)

kern.hashstat takes too long and it is meaningless here.

Revision 1.160.4.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:23 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.160.4.1: +8 -8 lines
Diff to previous 1.160.4.1 (colored) to branchpoint 1.160 (colored) next main 1.161 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Mon Aug 19 16:00:03 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.161: +8 -8 lines
Diff to previous 1.161 (colored) next main 1.162 (colored)

Pull up following revision(s) (requested by kamil in ticket #95):

	sbin/sysctl/prog_ops.h: revision 1.3
	sbin/sysctl/sysctl_rumpops.c: revision 1.2
	sbin/sysctl/sysctl_hostops.c: revision 1.2
	sbin/sysctl/Makefile: revision 1.22
	sbin/sysctl/sysctl.c: revision 1.162

sysctl: Add indirection of symbols to remove clash with sanitizers

Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlbyname and sysctlgetmibinfo.

Revision 1.162 / (download) - annotate - [select for diffs], Sun Aug 18 04:10:22 2019 UTC (4 years, 8 months ago) by kamil
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.161: +8 -8 lines
Diff to previous 1.161 (colored)

sysctl: Add indirection of symbols to remove clash with sanitizers

Add indirection and symbol renaming under MKSANITIZER for the linked in
version of sysctlbyname and sysctlgetmibinfo.

Revision 1.160.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:36 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.160: +11 -11 lines
Diff to previous 1.160 (colored)

Sync with HEAD

Revision 1.160.2.1 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:14 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.160: +11 -11 lines
Diff to previous 1.160 (colored) next main 1.161 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.161 / (download) - annotate - [select for diffs], Tue Oct 30 19:41:21 2018 UTC (5 years, 5 months ago) by kre
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.160: +11 -11 lines
Diff to previous 1.160 (colored)

kern.boottime was changed from a struct timeval to a struct timespec
in January 2009 (the Christos' time merge, when time_t went to 64 bits).

sysctl needs to catch up.   (So do other progs, which will happen, eventually,
but most of them are unaffected in any practical way.)

If you are running a system (NetBSD 6 or later) without this change, try
	sysctl -nn kern.boottime
and marvel at the result (in theory, seconds.microseconds) most
probably being something like:
	jinx$ sysctl -nn kern.boottime
	1540801874.999995564
(There is a 1 in 1000 chance your system will have booted
in the interval [0 , 999999] nanoseconds after some second,
in which case this will not be observed.   You should get
(almost) the same value after this change - just now it is as
it should be (there should now always be 9 digits after the '.').

On the other hand, if you're on a big-endian 64 bit host (running
64 bit sysctl) you would have always seen 0 for the microseconds field.
That should be fixed by this.

In sysctl(7) also document what we mean by "the time the system booted".

XXX Pullup -8
XXX Pullup -7
XXX Pullup -6 (oops, missed that one...)

Revision 1.160 / (download) - annotate - [select for diffs], Sun Feb 4 09:03:23 2018 UTC (6 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.159: +4 -3 lines
Diff to previous 1.159 (colored)

updates for GCC 6.4:

identd has aliasing violations, use -fno-strict-aliasing.

newfs_msdos's getbpbinfo() has missing {} issues.

sysctl's kern_cp_id() has missing {} issues.

Revision 1.157.2.2 / (download) - annotate - [select for diffs], Wed Apr 26 02:52:57 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.157.2.1: +5 -2 lines
Diff to previous 1.157.2.1 (colored) to branchpoint 1.157 (colored) next main 1.158 (colored)

Sync with HEAD

Revision 1.158.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:15 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.158: +5 -2 lines
Diff to previous 1.158 (colored) next main 1.159 (colored)

Sync with HEAD

Revision 1.159 / (download) - annotate - [select for diffs], Thu Apr 13 14:46:32 2017 UTC (7 years ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Changes since 1.158: +5 -2 lines
Diff to previous 1.158 (colored)

say ipsec stats are viewable with netstat.

Revision 1.157.2.1 / (download) - annotate - [select for diffs], Sat Aug 6 00:19:03 2016 UTC (7 years, 8 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.157: +17 -10 lines
Diff to previous 1.157 (colored)

Sync with HEAD

Revision 1.158 / (download) - annotate - [select for diffs], Sun Jul 31 23:30:28 2016 UTC (7 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, localcount-20160914, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.157: +17 -10 lines
Diff to previous 1.157 (colored)

Apply patch from PR 43587, mostly from martin and kre. When writing a
sysctl variable using ?= fails with EPERM, don't print an error
message.

Ideally setting a sysctl to the same value it already has should also
not fail regardless of permissions, but this would need to be done in
the kernel.

Revision 1.157 / (download) - annotate - [select for diffs], Sun Dec 13 14:24:47 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Changes since 1.156: +4 -2 lines
Diff to previous 1.156 (colored)

mention ip6addrctl

Revision 1.156 / (download) - annotate - [select for diffs], Mon Aug 17 06:42:46 2015 UTC (8 years, 8 months ago) by knakahara
Branch: MAIN
Changes since 1.155: +7 -2 lines
Diff to previous 1.155 (colored)

Add intrctl(8).

Revision 1.155 / (download) - annotate - [select for diffs], Sun Nov 9 22:50:38 2014 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.154: +2 -4 lines
Diff to previous 1.154 (colored)

remove debugging

Revision 1.154 / (download) - annotate - [select for diffs], Sun Nov 9 18:36:02 2014 UTC (9 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.153: +7 -4 lines
Diff to previous 1.153 (colored)

add handler for /kern/evcnt and print the actual error when failing.

Revision 1.143.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:28 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.143.2.1: +71 -69 lines
Diff to previous 1.143.2.1 (colored) to branchpoint 1.143 (colored) next main 1.144 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.151.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:53:05 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.151: +7 -5 lines
Diff to previous 1.151 (colored) next main 1.152 (colored)

Rebase.

Revision 1.138.2.4 / (download) - annotate - [select for diffs], Thu May 22 11:37:32 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.138.2.3: +66 -66 lines
Diff to previous 1.138.2.3 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.153 / (download) - annotate - [select for diffs], Fri May 16 12:22:32 2014 UTC (9 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.152: +3 -3 lines
Diff to previous 1.152 (colored)

Get rid of all sysc_init_field uses - initialize fields directly in C99
notation.

Revision 1.152 / (download) - annotate - [select for diffs], Fri May 16 08:59:24 2014 UTC (9 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.151: +6 -4 lines
Diff to previous 1.151 (colored)

Do not loop over children if a node is not marked as CTLTYPE_NODE.

Revision 1.151 / (download) - annotate - [select for diffs], Fri Jan 10 18:37:18 2014 UTC (10 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.150: +66 -66 lines
Diff to previous 1.150 (colored)

use __func__, EXIT_{SUCCESS,FAILURE}

Revision 1.150 / (download) - annotate - [select for diffs], Fri Jan 10 09:38:56 2014 UTC (10 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.149: +5 -5 lines
Diff to previous 1.149 (colored)

give err() some reason to avoid:
sysctl.c:2713:5: error: zero-length gnu_printf format string [-Werror=format-zero-length]

Revision 1.143.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:28:11 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.143: +105 -2 lines
Diff to previous 1.143 (colored)

resync with head

Revision 1.138.2.3 / (download) - annotate - [select for diffs], Wed Jan 16 05:32:34 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.138.2.2: +105 -2 lines
Diff to previous 1.138.2.2 (colored) to branchpoint 1.138 (colored)

sync with (a bit old) head

Revision 1.124.2.2 / (download) - annotate - [select for diffs], Sun Jan 13 16:35:24 2013 UTC (11 years, 3 months ago) by bouyer
Branch: netbsd-5
Changes since 1.124.2.1: +3 -2 lines
Diff to previous 1.124.2.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #1832):
	sbin/sysctl/sysctl.c: revision 1.149 via patch
Add missing free() in error path.

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Tue Dec 25 21:01:14 2012 UTC (11 years, 3 months ago) by snj
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.140: +3 -2 lines
Diff to previous 1.140 (colored) next main 1.141 (colored)

Pull up following revision(s) (requested by msaitoh in ticket #757):
	sbin/sysctl/sysctl.c: revision 1.149
Add missing free() in error path.

Revision 1.149 / (download) - annotate - [select for diffs], Thu Dec 13 05:27:01 2012 UTC (11 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Changes since 1.148: +3 -2 lines
Diff to previous 1.148 (colored)

Add missing free() in error path.

Revision 1.148 / (download) - annotate - [select for diffs], Fri Dec 7 02:27:29 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.147: +14 -13 lines
Diff to previous 1.147 (colored)

use __BITMAP_TYPE

Revision 1.147 / (download) - annotate - [select for diffs], Wed Dec 5 13:53:39 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.146: +4 -3 lines
Diff to previous 1.146 (colored)

fix bug found by clang.

Revision 1.146 / (download) - annotate - [select for diffs], Sat Dec 1 15:30:16 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.145: +20 -18 lines
Diff to previous 1.145 (colored)

switch from fd_set to bitmap macros, by popular demand.

Revision 1.145 / (download) - annotate - [select for diffs], Thu Nov 29 02:24:14 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.144: +4 -2 lines
Diff to previous 1.144 (colored)

put back line I accidentally deleted.

Revision 1.144 / (download) - annotate - [select for diffs], Thu Nov 29 02:06:17 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.143: +99 -3 lines
Diff to previous 1.143 (colored)

add a handler for the reserved port sysctl variable.

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:32 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.138.2.1: +9 -2 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored)

sync with head

Revision 1.143 / (download) - annotate - [select for diffs], Sat Jun 2 21:38:09 2012 UTC (11 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.142: +9 -2 lines
Diff to previous 1.142 (colored)

Add support for unsigned decimal values.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:43 2012 UTC (12 years ago) by yamt
Branch: yamt-pagecache
Changes since 1.138: +20 -13 lines
Diff to previous 1.138 (colored)

sync with head

Revision 1.142 / (download) - annotate - [select for diffs], Thu Mar 15 02:02:22 2012 UTC (12 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.141: +3 -3 lines
Diff to previous 1.141 (colored)

Add __printflike attribution to use vprintf and friends with an argument
as format string.

Revision 1.141 / (download) - annotate - [select for diffs], Sun Mar 11 23:33:00 2012 UTC (12 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.140: +17 -9 lines
Diff to previous 1.140 (colored)

PR/44961: Jukka Ruohonen: for sysctl's with built-in handlers, return OPNOTSUPP
if we don't have handlers instead of using the handler we have and silently
failing on attempts to write a node that cannot be written.

Revision 1.140 / (download) - annotate - [select for diffs], Sun Feb 12 20:54:07 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6
Changes since 1.139: +4 -4 lines
Diff to previous 1.139 (colored)

Only print errors when -A or required. Fix the error message to match others.

Revision 1.139 / (download) - annotate - [select for diffs], Wed Jan 4 16:09:42 2012 UTC (12 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.138: +2 -3 lines
Diff to previous 1.138 (colored)

include <netipsec/ipsec.h> rather than <netinet6/ipsec.h> from userland
where possible, for consistency and compatibility to FreeBSD
(exception: KAME specific statistics gathering in netstat(1) and systat(1))

Revision 1.138 / (download) - annotate - [select for diffs], Mon Aug 29 14:35:04 2011 UTC (12 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored)

Use __dead

Revision 1.137 / (download) - annotate - [select for diffs], Wed Aug 24 12:15:44 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.136: +30 -19 lines
Diff to previous 1.136 (colored)

Instead of using strncat and re-scanning the strings all the time, use and
append printf function.

Revision 1.136 / (download) - annotate - [select for diffs], Wed Aug 3 01:58:30 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.135: +5 -3 lines
Diff to previous 1.135 (colored)

no -A or -a with -q

Revision 1.135 / (download) - annotate - [select for diffs], Wed Aug 3 01:47:40 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.134: +7 -5 lines
Diff to previous 1.134 (colored)

allow -q flag to work for reads.

Revision 1.134 / (download) - annotate - [select for diffs], Sat Apr 16 01:15:54 2011 UTC (13 years ago) by christos
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.133: +44 -33 lines
Diff to previous 1.133 (colored)

PR/44864: Paul Ripke: Compile regular expressions on demand and only once.

Revision 1.133 / (download) - annotate - [select for diffs], Mon Dec 13 17:47:40 2010 UTC (13 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.132: +36 -43 lines
Diff to previous 1.132 (colored)

RUMP_ACTION -> RUMPPRG

Revision 1.132 / (download) - annotate - [select for diffs], Fri Nov 5 15:55:23 2010 UTC (13 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.131: +14 -2 lines
Diff to previous 1.131 (colored)

make sysctl(8) work as a rump client

Revision 1.131 / (download) - annotate - [select for diffs], Sun Apr 11 01:52:10 2010 UTC (14 years ago) by mrg
Branch: MAIN
Changes since 1.130: +66 -5 lines
Diff to previous 1.130 (colored)

implement CTLTYPE_BOOL support.  it was entirely missing.  HI MATT!

Revision 1.130 / (download) - annotate - [select for diffs], Wed Sep 30 04:30:50 2009 UTC (14 years, 6 months ago) by elad
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.129: +4 -5 lines
Diff to previous 1.129 (colored)

Remove stale references to the "read only at securelevel [12]" flags in
the documentation and code comments.

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:07 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.125: +21 -11 lines
Diff to previous 1.125 (colored) next main 1.126 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Wed Apr 1 21:37:02 2009 UTC (15 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.124: +12 -4 lines
Diff to previous 1.124 (colored)

Pull up following revision(s) (requested by christos in ticket #635):
	sbin/sysctl/sysctl.8: revision 1.160
	sbin/sysctl/sysctl.c: revision 1.129
Don't print an error with sysctl -w name?=value if name does not exist.
Should be pulled up to 5.0

Revision 1.129 / (download) - annotate - [select for diffs], Wed Apr 1 15:55:27 2009 UTC (15 years ago) by christos
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.128: +12 -4 lines
Diff to previous 1.128 (colored)

Don't print an error with sysctl -w name?=value if name does not exist.
Should be pulled up to 5.0

Revision 1.128 / (download) - annotate - [select for diffs], Fri Mar 20 13:18:50 2009 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.127: +9 -8 lines
Diff to previous 1.127 (colored)

fix sign-compare issues

Revision 1.127 / (download) - annotate - [select for diffs], Wed Mar 18 01:28:25 2009 UTC (15 years, 1 month ago) by pgoyette
Branch: MAIN
Changes since 1.126: +3 -3 lines
Diff to previous 1.126 (colored)

Format the address/offset of hexdump in hex, not decimal.

Addresses my PR bin/41035

Revision 1.126 / (download) - annotate - [select for diffs], Thu Mar 5 15:35:59 2009 UTC (15 years, 1 month ago) by njoly
Branch: MAIN
Changes since 1.125: +3 -2 lines
Diff to previous 1.125 (colored)

Add missing free() in machdep_diskinfo().

Revision 1.122.12.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:48:54 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.122.12.2: +1 -1 lines
Diff to previous 1.122.12.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)

Sync with HEAD.

Revision 1.125 / (download) - annotate - [select for diffs], Sun Dec 28 20:20:37 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.124: +3 -3 lines
Diff to previous 1.124 (colored)

fix dev_t format.

Revision 1.122.12.2 / (download) - annotate - [select for diffs], Sun Sep 28 11:17:15 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.122.12.1: +2 -3 lines
Diff to previous 1.122.12.1 (colored) to branchpoint 1.122 (colored)

Sync with HEAD.

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:28:30 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.123: +4 -5 lines
Diff to previous 1.123 (colored) next main 1.124 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Jul 20 01:20:23 2008 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2
Branch point for: netbsd-5
Changes since 1.123: +4 -5 lines
Diff to previous 1.123 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
(Tweak some to use a consistent format.)

Revision 1.122.12.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:21:24 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.122: +2 -5 lines
Diff to previous 1.122 (colored)

Sync with HEAD.

Revision 1.122.14.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:54 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.122: +2 -5 lines
Diff to previous 1.122 (colored) next main 1.123 (colored)

sync with head.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:01 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.122: +2 -5 lines
Diff to previous 1.122 (colored)

Convert to new 2 clause license

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Sat Dec 30 05:20:12 2006 UTC (17 years, 3 months ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0
Changes since 1.120: +3 -5 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Pull up following revision(s) (requested by elad in ticket #298):
	sbin/sysctl/sysctl.c: revision 1.122
PR/35304: C J Coleman: Off-by-one nul byte overwrite in mode_bits routine
of sbin/sysctl

Revision 1.122 / (download) - annotate - [select for diffs], Thu Dec 21 22:25:39 2006 UTC (17 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.121: +3 -5 lines
Diff to previous 1.121 (colored)

PR/35304: C J Coleman: Off-by-one nul byte overwrite in mode_bits routine
of sbin/sysctl

Revision 1.121 / (download) - annotate - [select for diffs], Mon Dec 18 12:50:08 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.120: +6 -5 lines
Diff to previous 1.120 (colored)

Exit with non-zero on errors.

Revision 1.120 / (download) - annotate - [select for diffs], Thu Nov 2 14:54:21 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.119: +6 -3 lines
Diff to previous 1.119 (colored)

PR/34965: Nicolas Joly: sysctl(1) small memory leak

Revision 1.119 / (download) - annotate - [select for diffs], Wed Nov 1 22:26:36 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored)

prefix name in kern.drivers

Revision 1.118 / (download) - annotate - [select for diffs], Sun Oct 15 21:33:34 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.117: +55 -17 lines
Diff to previous 1.117 (colored)

support printing kern.drivers

Revision 1.117 / (download) - annotate - [select for diffs], Sun Jul 30 19:53:20 2006 UTC (17 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.116: +2 -10 lines
Diff to previous 1.116 (colored)

CTLFLAG_READONLY1 and CTLFLAG_READONLY2 were deprecated in earlier commit, remove them here too

Revision 1.116 / (download) - annotate - [select for diffs], Fri Jul 14 21:55:19 2006 UTC (17 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored)

move security.setid_core.* to kern.coredump.setid.*, as requested by yamt@.

Revision 1.115 / (download) - annotate - [select for diffs], Thu Mar 30 08:02:40 2006 UTC (18 years ago) by jnemeth
Branch: MAIN
Changes since 1.114: +6 -2 lines
Diff to previous 1.114 (colored)

Coverity CID 2784: Add more checks for value==NULL.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Mar 26 23:12:48 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.113: +15 -3 lines
Diff to previous 1.113 (colored)

Coverity CID 2763: Add more checks for value==NULL.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Mar 26 23:10:26 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.112: +6 -2 lines
Diff to previous 1.112 (colored)

Coverity CID 2764: Avoid null reference

Revision 1.112 / (download) - annotate - [select for diffs], Wed Mar 22 02:25:44 2006 UTC (18 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored)

Coverity CID 786: Avoid NULL dereference.

Revision 1.111 / (download) - annotate - [select for diffs], Wed Feb 8 18:13:56 2006 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored)

detect integer overflow differently. previous change broke negative sysctl
values.

Revision 1.110 / (download) - annotate - [select for diffs], Sun Feb 5 22:42:55 2006 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.109: +10 -10 lines
Diff to previous 1.109 (colored)

PR/17441: John F. Woods: integer sysctl does not accept numbers > 0x7fffffff
Use unsigned int in the range comparison, and use strerror() instead of
home brewed error strings.

Revision 1.109 / (download) - annotate - [select for diffs], Thu Feb 2 18:00:07 2006 UTC (18 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.108: +4 -2 lines
Diff to previous 1.108 (colored)

- make use of the recently added mode_bits for security.setid_core.mode;
- document setid_core variables.

Revision 1.108 / (download) - annotate - [select for diffs], Thu Feb 2 16:23:25 2006 UTC (18 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.107: +91 -2 lines
Diff to previous 1.107 (colored)

add support for parsing file mode bits.

when printed, you'll see something like "0600 (rw-------)", like the
ls output. when reading input you can either specify octal mode (0600)
or chmod-like (u=rw).

ideas from atatat@ and kjk@; okay and lots of help from atatat@.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Sep 6 03:22:58 2005 UTC (18 years, 7 months ago) by rpaulo
Branch: MAIN
Changes since 1.106: +6 -2 lines
Diff to previous 1.106 (colored)

Handle net.inet.tcp.debug, net.inet.tcp.debx, net.ns.spp.debug and
net.ns.spp.debx. Bump man page date.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Aug 28 16:18:04 2005 UTC (18 years, 7 months ago) by rpaulo
Branch: MAIN
Changes since 1.105: +3 -2 lines
Diff to previous 1.105 (colored)

net.inet?.*.stats are viewable with netstat(1).

Revision 1.105 / (download) - annotate - [select for diffs], Thu Aug 4 19:44:18 2005 UTC (18 years, 8 months ago) by rpaulo
Branch: MAIN
Changes since 1.104: +3 -2 lines
Diff to previous 1.104 (colored)

Inform the user that net.bpf.stats and net.bpf.peers are viewable with
netstat(1).

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jun 27 01:00:07 2005 UTC (18 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.103: +11 -11 lines
Diff to previous 1.103 (colored)

Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Jun 16 14:56:36 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.102: +89 -2 lines
Diff to previous 1.102 (colored)

Add code to handle cp_id. From atatat.

Revision 1.102 / (download) - annotate - [select for diffs], Wed Apr 6 21:13:03 2005 UTC (19 years ago) by christos
Branch: MAIN
Changes since 1.101: +4 -4 lines
Diff to previous 1.101 (colored)

PPR/29909: Manuel Bouyer: sysctl dumps core if kern.consdev returns unknown
device.  If we cannot determine the device name of the console, print the
console dev_t in hex.

Revision 1.86.2.10.2.1 / (download) - annotate - [select for diffs], Wed Apr 6 14:47:09 2005 UTC (19 years ago) by he
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.86.2.10: +3 -3 lines
Diff to previous 1.86.2.10 (colored) next main 1.87 (colored)

Pull up revision 1.96 (requested by atatat in ticket #1048):
  Pass dynamic buffer pointer to display_string(), not static
  buffer pointer.  This fixes a problem if the kernel says the
  buffer needs to be too much larger.

Revision 1.101 / (download) - annotate - [select for diffs], Mon Mar 28 04:03:13 2005 UTC (19 years ago) by christos
Branch: MAIN
Changes since 1.100: +10 -6 lines
Diff to previous 1.100 (colored)

make sysctl -n print the real console tty name and -nn print the numeric
value.
XXX: -n means don't print name, not numeric. We should stop overloading
it and use a different flag.

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Wed Mar 23 11:10:04 2005 UTC (19 years ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.97.2.2: +49 -7 lines
Diff to previous 1.97.2.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

Pull up revision 1.100 (requested by atatat in ticket #52):
If a "create" or "destroy" operation succeeds, mark the cached tree as
"stale" so that the next time we try to read or write to it, we can
purge (and refresh) it.
Addresses PR 29222.

Revision 1.100 / (download) - annotate - [select for diffs], Wed Mar 23 03:45:25 2005 UTC (19 years ago) by atatat
Branch: MAIN
Changes since 1.99: +51 -9 lines
Diff to previous 1.99 (colored)

If a "create" or "destroy" operation succeeds, mark the cached tree as
"stale" so that the next time we try to read or write to it, we can
purge (and refresh) it.

Addresses PR 29222.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Sun Mar 20 21:49:09 2005 UTC (19 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.97.2.1: +1 -1 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored)

Pull up revision 1.99 (requested by atatat in ticket #36):
Fix possible segmentation fault when retrieving descriptions.  Thought
I committed this a while ago.  I guess the fact that no one filed a pr
meant no one else found it.  :)

Revision 1.99 / (download) - annotate - [select for diffs], Sat Mar 19 23:19:17 2005 UTC (19 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.98: +3 -3 lines
Diff to previous 1.98 (colored)

Fix possible segmentation fault when retrieving descriptions.  Thought
I committed this a while ago.  I guess the fact that no one filed a pr
meant no one else found it.  :)

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Sat Mar 19 13:21:25 2005 UTC (19 years, 1 month ago) by tron
Branch: netbsd-3
Changes since 1.97: +109 -84 lines
Diff to previous 1.97 (colored)

Pull up revision 1.98 (requested by atatat in ticket #11):
Use regexes instead of static lists of annoying numbers to recognize
sysctl nodes that have "helpers".  This is more concise, imho more
easy to understand, and has the added bonus of making it *possible* to
assign helpers to dynamically numbered nodes.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Mar 18 04:52:24 2005 UTC (19 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.97: +109 -84 lines
Diff to previous 1.97 (colored)

Use regexes instead of static lists of annoying numbers to recognize
sysctl nodes that have "helpers".  This is more concise, imho more
easy to understand, and has the added bonus of making it *possible* to
assign helpers to dynamically numbered nodes.

Revision 1.97 / (download) - annotate - [select for diffs], Tue Mar 15 13:59:35 2005 UTC (19 years, 1 month ago) by atatat
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.96: +4 -2 lines
Diff to previous 1.96 (colored)

Make requestors of kern.file2 be referred to pstat (the same as
kern.file) and add EINVAL to the list of errno values which are
silently ignored when walking the tree.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Dec 17 05:03:03 2004 UTC (19 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Pass dynamic buffer pointer to display_string(), not static buffer
pointer.  Causes...misfunction if the kernel says the buffer needs to
be too much larger.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Oct 17 11:04:39 2004 UTC (19 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.94: +11 -11 lines
Diff to previous 1.94 (colored)

constify handlers[]

Revision 1.86.2.10 / (download) - annotate - [select for diffs], Wed Apr 28 05:30:41 2004 UTC (19 years, 11 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2
Changes since 1.86.2.9: +9 -9 lines
Diff to previous 1.86.2.9 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored)

Pullup rev 1.94 (requested by atatat in ticket #192)

When converting a string to a number, also make sure that you didn't
convert an empty string to a zero. PR#25115

Revision 1.86.2.9 / (download) - annotate - [select for diffs], Mon Apr 26 20:00:24 2004 UTC (19 years, 11 months ago) by jdc
Branch: netbsd-2-0
Changes since 1.86.2.8: +3 -3 lines
Diff to previous 1.86.2.8 (colored) to branchpoint 1.86 (colored)

Pull up revision 1.93 (requested by atatat in ticket #181)

Allocate adjusted size, not fixed size.

Revision 1.94 / (download) - annotate - [select for diffs], Sun Apr 25 05:36:49 2004 UTC (19 years, 11 months ago) by atatat
Branch: MAIN
Changes since 1.93: +9 -9 lines
Diff to previous 1.93 (colored)

When converting a string to a number, also make sure that you didn't
convert an empty string to a zero.

Follow on to PR bin/25115 in private email.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Apr 23 12:03:39 2004 UTC (19 years, 11 months ago) by atatat
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

Allocate adjusted size, not fixed size.

Revision 1.86.2.8 / (download) - annotate - [select for diffs], Thu Apr 22 07:52:03 2004 UTC (19 years, 11 months ago) by tron
Branch: netbsd-2-0
Changes since 1.86.2.7: +198 -163 lines
Diff to previous 1.86.2.7 (colored) to branchpoint 1.86 (colored)

Pull up revision 1.92 (requested by atatat in ticket #174):
Some lint cleaning, strip leading (and sometimes trailing) whitespace
from values to be assigned when processing a file.  Clean up error
reporting (print the name of the file and the line number), and tidy
some numeric conversions.  Continue after most "errors" when
processing a -f argument.
Addresses PR bin/25115.

Revision 1.92 / (download) - annotate - [select for diffs], Thu Apr 22 03:56:31 2004 UTC (19 years, 11 months ago) by atatat
Branch: MAIN
Changes since 1.91: +200 -165 lines
Diff to previous 1.91 (colored)

Some lint cleaning, strip leading (and sometimes trailing) whitespace
from values to be assigned when processing a file.  Clean up error
reporting (print the name of the file and the line number), and tidy
some numeric conversions.  Continue after most "errors" when
processing a -f argument.

Addresses PR bin/25115.

Revision 1.86.2.7 / (download) - annotate - [select for diffs], Fri Apr 16 07:54:34 2004 UTC (20 years ago) by tron
Branch: netbsd-2-0
Changes since 1.86.2.6: +3 -3 lines
Diff to previous 1.86.2.6 (colored) to branchpoint 1.86 (colored)

Pull up revision 1.91 (requested by atatat in ticket #136):
If the node was specifically requested but has no description, print
the "no description" message instead of skipping (as happens when
recursing into a subtree).  This does not apply to non-node-type
nodes.

Revision 1.91 / (download) - annotate - [select for diffs], Wed Apr 14 05:13:50 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored)

If the node was specifically requested but has no description, print
the "no description" message instead of skipping (as happens when
recursing into a subtree).  This does not apply to non-node-type
nodes.

Revision 1.86.2.6 / (download) - annotate - [select for diffs], Thu Apr 8 20:26:06 2004 UTC (20 years ago) by jdc
Branch: netbsd-2-0
Changes since 1.86.2.5: +3 -3 lines
Diff to previous 1.86.2.5 (colored) to branchpoint 1.86 (colored)

Pull up revision 1.90 (requested by atatat in ticket #94)

Don't copy the size that sysctl gave back directly, copy the size of
the description.  *thwap*

Revision 1.86.2.5 / (download) - annotate - [select for diffs], Thu Apr 8 20:24:21 2004 UTC (20 years ago) by jdc
Branch: netbsd-2-0
Changes since 1.86.2.4: +3 -3 lines
Diff to previous 1.86.2.4 (colored) to branchpoint 1.86 (colored)

Pull up revision 1.89 (requested by atatat in ticket #92)

Don't copy the size that sysctl gave back directly, copy the size of
the description.

Revision 1.86.2.4 / (download) - annotate - [select for diffs], Thu Apr 8 20:22:45 2004 UTC (20 years ago) by jdc
Branch: netbsd-2-0
Changes since 1.86.2.3: +4 -4 lines
Diff to previous 1.86.2.3 (colored) to branchpoint 1.86 (colored)

Backout previous.  It contained the changes for both
tickets #92 and #94 (instead of just #92).

Revision 1.86.2.3 / (download) - annotate - [select for diffs], Thu Apr 8 20:06:45 2004 UTC (20 years ago) by jdc
Branch: netbsd-2-0
Changes since 1.86.2.2: +4 -4 lines
Diff to previous 1.86.2.2 (colored) to branchpoint 1.86 (colored)

Pull up revision 1.89 (requested by atatat in ticket #92)

Don't copy the size that sysctl gave back directly, copy the size of
the description.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Thu Apr 8 19:34:16 2004 UTC (20 years ago) by jdc
Branch: netbsd-2-0
Changes since 1.86.2.1: +6 -4 lines
Diff to previous 1.86.2.1 (colored) to branchpoint 1.86 (colored)

Pull up revision 1.88 (requested by atatat in ticket #88)

Do nothing else for nodes with no children if -d is used (dflag is
set).  Otherwise, some nodes (those with "printers") will also print
the "use foo ..." message.

Revision 1.90 / (download) - annotate - [select for diffs], Thu Apr 8 06:49:03 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored)

Don't copy the size that sysctl gave back directly, copy the size of
the description.  *thwap*

Revision 1.89 / (download) - annotate - [select for diffs], Thu Apr 8 06:12:43 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored)

Don't copy the size that sysctl gave back directly, copy the size of
the description.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Apr 8 04:00:33 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.87: +6 -4 lines
Diff to previous 1.87 (colored)

Do nothing else for nodes with no children if -d is used (dflag is
set).  Otherwise, some nodes (those with "printers") will also print
the "use foo ..." message.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Wed Apr 7 05:04:46 2004 UTC (20 years ago) by jmc
Branch: netbsd-2-0
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored)

Pullup rev 1.87 (requested by atatat in ticket #81)

Add -d flag to usage message(s).

Revision 1.87 / (download) - annotate - [select for diffs], Tue Apr 6 19:39:44 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored)

Add -d flag to usage message(s).

Revision 1.86 / (download) - annotate - [select for diffs], Fri Mar 26 23:55:45 2004 UTC (20 years ago) by he
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.85: +3 -3 lines
Diff to previous 1.85 (colored)

Make this too gcc2-compileable.

Revision 1.85 / (download) - annotate - [select for diffs], Thu Mar 25 19:36:27 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.84: +5 -8 lines
Diff to previous 1.84 (colored)

Move sysctlbyname(), sysctlnametomib(), and sysctlgetmibinfo() from
sysctl(8) into libc, making the minor number jump.  Add prototypes to
sys/sysctl.h, fix sets, modify man pages, etc.  That oughta cover it.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Mar 24 18:11:09 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.83: +201 -7 lines
Diff to previous 1.83 (colored)

Implement sysctl descriptions.  Now all that remains is actually to
write them.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:56 2004 UTC (20 years ago) by atatat
Branch: MAIN
Changes since 1.82: +57 -58 lines
Diff to previous 1.82 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.82 / (download) - annotate - [select for diffs], Sat Mar 20 05:22:41 2004 UTC (20 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.81: +37 -21 lines
Diff to previous 1.81 (colored)

A little syntactic sugar

Revision 1.81 / (download) - annotate - [select for diffs], Fri Feb 20 05:27:39 2004 UTC (20 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.80: +34 -9 lines
Diff to previous 1.80 (colored)

Make this:

	% sysctl -A kern.cp_time

(and also "sysctl -A" without the kern.cp_time argument) print this:

	kern.cp_time: user = 851648, nice = 683496, sys = 69383, ...
	kern.cp_time.0: user = 85648, nice = 68496, sys = 6983, ...
	...

instead of just:

	kern.cp_time.0: user = 85648, nice = 68496, sys = 6983, ...
	...

Revision 1.80 / (download) - annotate - [select for diffs], Thu Feb 19 06:51:11 2004 UTC (20 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.79: +68 -25 lines
Diff to previous 1.79 (colored)

More better display of kern.cp_time for MP machines.  Now we use one
sysctl() call to query for each of three different display modes:

(1) sum across all cpus

	% sysctl kern.cp_time
	kern.cp_time: user = 93240, nice = 1507, sys = 17252, ...

(2) data for just cpu 0

	% sysctl kern.cp_time.0
	kern.cp_time.0: user = 93282, nice = 1507, sys = 17264, ...

(3) each cpu individually up to hw.ncpu

	% sysctl -A kern.cp_time
	kern.cp_time.0: user = 93349, nice = 1507, sys = 17280, ...
	kern.cp_time.1: user = 93403, nice = 1507, sys = 17291, ...
	...

Revision 1.79 / (download) - annotate - [select for diffs], Thu Feb 19 06:44:18 2004 UTC (20 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.78: +21 -12 lines
Diff to previous 1.78 (colored)

Miscellaneous display bugfixes.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Feb 19 06:40:14 2004 UTC (20 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.77: +9 -8 lines
Diff to previous 1.77 (colored)

Rename sysctlnametomib() to sysctlgetmibinfo() and add FreeBSD
compatible sysctlnametomib() and sysctlbyname() functions.

These are intended to move to libc real soon now.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Jan 5 23:23:33 2004 UTC (20 years, 3 months ago) by jmmv
Branch: MAIN
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Dec 4 20:07:59 2003 UTC (20 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.75: +4 -2 lines
Diff to previous 1.75 (colored)

sysctlnametomib() is a private function for the moment.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Dec 4 19:49:39 2003 UTC (20 years, 4 months ago) by atatat
Branch: MAIN
Changes since 1.74: +1714 -1074 lines
Diff to previous 1.74 (colored)

New sysctl(8) binary.  Performs auto-discovery and can add/remove
nodes from the tree.  Never needs to be recompiled again.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Nov 10 20:03:29 2003 UTC (20 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.73: +30 -3 lines
Diff to previous 1.73 (colored)

Make per-protocol network input queue stats visible to userland via
sysctl. Add a protocol-independent sysctl handler to show the per-protocol
"struct ifq' statistics. Add IP(v4) specific call to the handler.
Other protocols can show their per-protocol input statistics by
allocating a sysclt node and calling sysctl_ifq() with their own struct ifq *.

As posted to tech-kern plus improvements/cleanup suggested by Andrew Brown.

Revision 1.73 / (download) - annotate - [select for diffs], Sun Sep 21 15:23:56 2003 UTC (20 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.72: +7 -7 lines
Diff to previous 1.72 (colored)

Combine multiple single-letter options.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Sep 20 17:02:19 2003 UTC (20 years, 7 months ago) by grant
Branch: MAIN
Changes since 1.71: +24 -15 lines
Diff to previous 1.71 (colored)

add -e flag to set the separator to '=' where the default is ' = '.
this allows sysctl output to fed back into itself. inspired by
FreeBSD's sysctl(8).

ok'd by atatat.

Revision 1.71 / (download) - annotate - [select for diffs], Thu Aug 7 10:04:40 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.70: +3 -7 lines
Diff to previous 1.70 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22308, verified by myself.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Jun 17 03:34:23 2003 UTC (20 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.69: +2 -5 lines
Diff to previous 1.69 (colored)

Remove the KERN_DRIVERS case handler (prototype code?).

Revision 1.69 / (download) - annotate - [select for diffs], Mon Jun 16 21:52:58 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.68: +39 -16 lines
Diff to previous 1.68 (colored)

Print hw.cnmagic as escaped hex bytes (unless -n given).
Change 'special' to be a numeral not a bit, it isn't ever used as a bit
and I can't see why it should ever be used that way.

Revision 1.68 / (download) - annotate - [select for diffs], Sat May 31 23:42:23 2003 UTC (20 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.67: +4 -4 lines
Diff to previous 1.67 (colored)

Avoid a strict-alias warning in gcc 3.3.

Revision 1.67 / (download) - annotate - [select for diffs], Sun May 18 02:07:20 2003 UTC (20 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.66: +3 -4 lines
Diff to previous 1.66 (colored)

simplify more

Revision 1.66 / (download) - annotate - [select for diffs], Sun May 18 02:06:28 2003 UTC (20 years, 11 months ago) by itojun
Branch: MAIN
Changes since 1.65: +16 -20 lines
Diff to previous 1.65 (colored)

simplify by strlcpy/cat

Revision 1.65 / (download) - annotate - [select for diffs], Sun Apr 6 05:19:03 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.64: +19 -12 lines
Diff to previous 1.64 (colored)

Tweak behaviour introduced in rev 1.50;
    *	by default, warning messages go to stderr
    *	if -A or -a is used, send warning messages to stdout instead.

The behaviour in 1.50 meant that
	somevar=`sysctl -n machdep.booted_kernel 2>/dev/null`
could end up with $somevar="machdep.booted_kernel: the value is not available"
rather than the more useful $somevar="".

(This way, "sysctl -A | grep ..." is still useful.)

Revision 1.64 / (download) - annotate - [select for diffs], Fri Mar 7 00:42:04 2003 UTC (21 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.63: +5 -4 lines
Diff to previous 1.63 (colored)

Quell formwat warning for LP64 for the diskinfo printf.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Jan 22 17:12:41 2003 UTC (21 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.62: +34 -2 lines
Diff to previous 1.62 (colored)

display machdep.diskinfo for i386 and x86_84
(agreed by christos)

Revision 1.62 / (download) - annotate - [select for diffs], Tue Dec 24 12:15:46 2002 UTC (21 years, 3 months ago) by manu
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.61: +31 -2 lines
Diff to previous 1.61 (colored)

On Darwin, mach_init is the system bootstrap process. It is responsible
for forking the traditional UNIX init(8) and it does the Mach port naming
service. We need mach_init for the naming service, but unfortunately, it
will only act as such if its PID is 1. We introduce a sysctl
(emul.darwin.init_pid) to fool a given process into thinking its PID is 1.
That way we can get mach_init into behaving as the name server.

Typical use:
/sbin/sysctl -w emul.darwin.init_pid=$$ ; exec /emul/darwin/sbin/mach_init

Revision 1.61 / (download) - annotate - [select for diffs], Sat Nov 30 03:10:54 2002 UTC (21 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored)

tweaks for fparseln(3) move from libutil to libc:
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Fri Nov 15 00:39:49 2002 UTC (21 years, 5 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.58: +5 -2 lines
Diff to previous 1.58 (colored) next main 1.59 (colored)

Pull up revision 1.59 (requested by simon in ticket #958):
When printing out nodes of type "string", don't print anything if
sysctl() reports that 0 bytes were returned.
Reported by Matt Green with "sysctl hw.disknames" on a system with no
disks.
--

Revision 1.37.2.4 / (download) - annotate - [select for diffs], Sun Nov 10 20:00:45 2002 UTC (21 years, 5 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.37.2.3: +5 -2 lines
Diff to previous 1.37.2.3 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored)

sbin/sysctl/sysctl.c				1.59

  When printing out nodes of type "string", don't print anything if
  sysctl() reports that 0 bytes were returned.  Reported by Matt Green.

(simonb)

Revision 1.60 / (download) - annotate - [select for diffs], Sat Nov 9 09:03:59 2002 UTC (21 years, 5 months ago) by manu
Branch: MAIN
Changes since 1.59: +39 -2 lines
Diff to previous 1.59 (colored)

Added sysctl to change all IRIX kernel values reported by uname and systeminfo:
OS name, hw name, kernel version, and so forth.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Nov 3 07:06:06 2002 UTC (21 years, 5 months ago) by simonb
Branch: MAIN
Changes since 1.58: +5 -2 lines
Diff to previous 1.58 (colored)

When printing out nodes of type "string", don't print anything if
sysctl() reports that 0 bytes were returned.

Reported by Matt Green with "sysctl hw.disknames" on a system with no
disks.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Mar 24 00:11:00 2002 UTC (22 years ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1
Branch point for: netbsd-1-6
Changes since 1.57: +20 -11 lines
Diff to previous 1.57 (colored)

Add -q flag, for use with -w and -f, which suppresses output after a set.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Mar 20 00:29:24 2002 UTC (22 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.56: +2 -3 lines
Diff to previous 1.56 (colored)

remove debugging line.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Mar 20 00:23:23 2002 UTC (22 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.55: +73 -100 lines
Diff to previous 1.55 (colored)

handle new emulation sysctls, and cleanup function duplication.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Jan 31 20:15:14 2002 UTC (22 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.54: +5 -16 lines
Diff to previous 1.54 (colored)

fix inconsistencies with USEAPP; centralize the flags check so that we
don't have to deal with it in the future.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Jan 28 02:07:40 2002 UTC (22 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.53: +30 -2 lines
Diff to previous 1.53 (colored)

Descend into kern.tkstat.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Jan 28 01:37:17 2002 UTC (22 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.52: +30 -80 lines
Diff to previous 1.52 (colored)

ANSIfy.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Jan 27 23:50:36 2002 UTC (22 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

Fix a tyop in a comment.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Jan 27 12:47:37 2002 UTC (22 years, 2 months ago) by simonb
Branch: MAIN
Changes since 1.50: +7 -2 lines
Diff to previous 1.50 (colored)

Teach sysctl(8) that hw.diskstats is a structure.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Dec 24 01:30:38 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.49: +24 -21 lines
Diff to previous 1.49 (colored)

change a lot of the "error" messages to display to stdout instead of
stderr, so that "sysctl -A" output is actually usable.  requested by perry

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jul 27 04:22:09 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.48: +3 -10 lines
Diff to previous 1.48 (colored)

show net.inet6.tcp6.* as mirror image of net.inet.tcp.  better for future
INET-less kernels.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jul 2 20:55:16 2001 UTC (22 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.47: +4 -2 lines
Diff to previous 1.47 (colored)

pipe sysctl stuff is now in <sys/pipe.h>

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jun 16 12:00:04 2001 UTC (22 years, 10 months ago) by jdolecek
Branch: MAIN
Changes since 1.46: +35 -2 lines
Diff to previous 1.46 (colored)

Add port of high performance pipe implementation written by John S. Dyson
for FreeBSD project. Besides huge speed boost compared with socketpair-based
pipes, this implementation also uses pagable kernel memory instead of mbufs.

Significant differences to FreeBSD version:
* uses uvm_loan() facility for direct write
* async/SIGIO handling correct also for sync writer, async reader
* limits settable via sysctl, amountpipekva and nbigpipes available via sysctl
* pipes are unidirectional - this is enforced on file descriptor level
	for now only, the code would be updated to take advantage of it
	eventually
* uses lockmgr(9)-based locks instead of home brew variant
* scatter-gather write is handled correctly for direct write case, data
  is transferred by PIPE_DIRECT_CHUNK bytes maximum, to avoid running out of kva

All FreeBSD/NetBSD specific code is within appropriate #ifdef, in preparation
to feed changes back to FreeBSD tree.

This pipe implementation is optional for now, add 'options NEW_PIPE'
to your kernel config to use it.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Mar 9 01:02:11 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.45: +16 -25 lines
Diff to previous 1.45 (colored)

add UBC memory-usage balancing.  we track the number of pages in use for
each of the basic types (anonymous data, executable image, cached files)
and prevent the pagedaemon from reusing a given page if that would reduce
the count of that type of page below a sysctl-setable minimum threshold.
the thresholds are controlled via three new sysctl tunables:
vm.anonmin, vm.vnodemin, and vm.vtextmin.  these tunables are the
percentages of pageable memory reserved for each usage, and we do not allow
the sum of the minimums to be more than 95% so that there's always some
memory that can be reused.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Feb 19 22:56:23 2001 UTC (23 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.44: +9 -8 lines
Diff to previous 1.44 (colored)

convert to use getprogname()

Revision 1.44 / (download) - annotate - [select for diffs], Sun Feb 4 21:13:12 2001 UTC (23 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.43: +3 -4 lines
Diff to previous 1.43 (colored)

fix nested extern.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jan 9 21:31:02 2001 UTC (23 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored)

Number of toplevel names grew by one, account for it.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 5 02:02:58 2001 UTC (23 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.41: +7 -7 lines
Diff to previous 1.41 (colored)

use %ll_ instead of the less standard %q_

Revision 1.37.2.3 / (download) - annotate - [select for diffs], Sat Jul 22 04:40:39 2000 UTC (23 years, 9 months ago) by simonb
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.37.2.2: +10 -2 lines
Diff to previous 1.37.2.2 (colored) to branchpoint 1.37 (colored)

Pull up rev 1.40:
 Handle KERN_MSGBUF and KERN_CONSDEV gracefully.

Revision 1.37.2.2 / (download) - annotate - [select for diffs], Sat Jul 22 01:47:47 2000 UTC (23 years, 9 months ago) by enami
Branch: netbsd-1-5
Changes since 1.37.2.1: +5 -5 lines
Diff to previous 1.37.2.1 (colored) to branchpoint 1.37 (colored)

Pullup revision 1.41 (requested by thorpej):
Free storage allocated by fparseln.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 19 10:05:43 2000 UTC (23 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored)

Free storage allocated by fparseln.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Jul 15 07:07:02 2000 UTC (23 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.39: +10 -2 lines
Diff to previous 1.39 (colored)

Handle KERN_MSGBUF and KERN_CONSDEV gracefully.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Sat Jul 15 02:01:28 2000 UTC (23 years, 9 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.37: +4 -4 lines
Diff to previous 1.37 (colored)

pullup 1.38 -> 1.39 (requested by releng-1-5)
sync with sys/sysctl.h change (constify)

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jul 15 01:44:35 2000 UTC (23 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.38: +4 -4 lines
Diff to previous 1.38 (colored)

sync with sys/sysctl.h change (is it the right way to workaround this?)

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jun 26 15:37:26 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

we now need <uvm/uvm_param.h>

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 16:05:53 2000 UTC (23 years, 10 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.34: +11 -8 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Jun 7 04:40:47 2000 UTC (23 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored)

s/PIMCTL/PIM6CTL/ to avoid future confusion.

Revision 1.36 / (download) - annotate - [select for diffs], Mon May 29 21:42:12 2000 UTC (23 years, 10 months ago) by matt
Branch: MAIN
Changes since 1.35: +8 -5 lines
Diff to previous 1.35 (colored)

LP64 format problems.  u_int64_t on alpha != %llu

Revision 1.35 / (download) - annotate - [select for diffs], Mon May 29 11:59:01 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored)

cp_time[] is an array of u_int64_t's now.

Revision 1.34 / (download) - annotate - [select for diffs], Sat May 27 15:30:12 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.33: +3 -2 lines
Diff to previous 1.33 (colored)

Handle kern.proc_args as well.

Revision 1.33 / (download) - annotate - [select for diffs], Sat May 27 15:11:05 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.32: +35 -38 lines
Diff to previous 1.32 (colored)

s/fprintf(stdout/printf(/

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 27 15:05:14 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.31: +18 -3 lines
Diff to previous 1.31 (colored)

Deal with new structure returning sysctl()s.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Apr 21 02:49:37 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

Fix minor annoyance - when showing the boottime, the ctime() result
already has a trailing newline, so don't add an extra one.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Apr 14 06:03:40 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.29: +2 -4 lines
Diff to previous 1.29 (colored)

Don't declare 'extern opt*' getopt variables.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Apr 8 23:18:27 2000 UTC (24 years ago) by soren
Branch: MAIN
Changes since 1.28: +5 -4 lines
Diff to previous 1.28 (colored)

Update usage with -f.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Mar 12 22:58:05 2000 UTC (24 years, 1 month ago) by tsarna
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Fix warning.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Mar 12 22:56:49 2000 UTC (24 years, 1 month ago) by tsarna
Branch: MAIN
Changes since 1.26: +33 -8 lines
Diff to previous 1.26 (colored)

Add a "-f file" flag to process directives from a file.

Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 17 08:54:16 2000 UTC (24 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.25: +12 -2 lines
Diff to previous 1.25 (colored)

List vfs.generic.usermount in manpage. Don't try to handle machdep.diskinfo
for the i386, thus avoiding a warning message in 'sysctl -a'.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Feb 12 18:00:58 2000 UTC (24 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.24: +17 -2 lines
Diff to previous 1.24 (colored)

Support vm.nkmempages.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Feb 6 11:12:40 2000 UTC (24 years, 2 months ago) by itojun
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

fix include file path.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 17 02:32:06 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.22: +0 -0 lines
Diff to previous 1.22 (colored)

Moved from usr.sbin/sysctl/sysctl.c,v

Revision 1.21.2.1, Mon Dec 27 18:38:10 1999 UTC (24 years, 3 months ago) by wrstuden
Changes since 1.21: +146 -18 lines
FILE REMOVED

Pull up to last week's -current.

Revision 1.22, Tue Sep 28 14:48:48 1999 UTC (24 years, 6 months ago) by bouyer
Branch: MAIN
Changes since 1.21: +146 -18 lines
FILE REMOVED

Add handling of the proc hierarchy. Document it, as well as kern.defcorename.

Revision 1.21, Fri Jul 30 10:29:35 1999 UTC (24 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.20: +2 -3 lines
FILE REMOVED

do not include sys/netinet6/in6_systm.h, this has been empty.

Revision 1.20, Fri Jul 2 08:58:22 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.19: +215 -5 lines
FILE REMOVED

IPv6/IPsec sysctl MIB support.

Revision 1.19, Mon Apr 26 22:13:52 1999 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.18: +37 -2 lines
FILE REMOVED

Add support for kern.mbuf.*

Revision 1.18, Fri Nov 13 20:56:21 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.17: +13 -5 lines
FILE REMOVED

Direct the user to use nfsstat to print nfs statistics.

Revision 1.17, Fri Nov 13 20:16:49 1998 UTC (25 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +111 -3 lines
FILE REMOVED

Implement support for the vfs. toplevel.

Revision 1.16, Wed Mar 11 17:44:02 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.15: +7 -6 lines
FILE REMOVED

Fix typos lossage on the Alpha.

Revision 1.15, Thu Mar 5 23:23:29 1998 UTC (26 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.14: +3 -2 lines
FILE REMOVED

Include unistd.h to import declaration of getopt(3)

Revision 1.14, Thu Mar 5 14:02:00 1998 UTC (26 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.13: +55 -44 lines
FILE REMOVED

WARNSify

Revision 1.13, Sun Mar 1 02:26:07 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.12: +4 -4 lines
FILE REMOVED

Merge with Lite2 + local changes

Revision 1.1.1.2 (vendor branch), Sun Mar 1 02:14:20 1998 UTC (26 years, 1 month ago) by fvdl
Changes since 1.1.1.1: +80 -8 lines
FILE REMOVED

Import 4.4BSD-Lite2

Revision 1.12, Fri Feb 6 21:18:46 1998 UTC (26 years, 2 months ago) by jonathan
Branch: MAIN
Changes since 1.11: +9 -2 lines
FILE REMOVED

Tell user to use xnptdc to view kern.ntptime, as a workaround until
sysctl and libntp agree about "progname".
Based on a patch suggested by Soren S. Jorvang <soren@t.dk> in PR bin/4433.

Revision 1.11, Sat Nov 1 06:54:14 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.10: +3 -3 lines
FILE REMOVED

getopt returns -1 not EOF

Revision 1.10, Thu Jan 9 05:38:55 1997 UTC (27 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +5 -2 lines
FILE REMOVED

Grok and document CTL_DDB.

Revision 1.9, Sat Sep 30 07:12:50 1995 UTC (28 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +7 -2 lines
FILE REMOVED

New-style RCS ids.

Revision 1.8, Sat Sep 30 07:05:22 1995 UTC (28 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +6 -2 lines
FILE REMOVED

Add support for the net.inet.tcp sysctl group and document.  From
John Kohl <jtk@kolvir.blrc.ma.us>.

Revision 1.7, Wed Jun 7 17:41:17 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.6: +6 -5 lines
FILE REMOVED

typeof(timeval.tv_sec) != time_t

Revision 1.6, Fri Jun 2 15:03:34 1995 UTC (28 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.5: +2 -2 lines
FILE REMOVED

Correct argument in error msg. (PR #1087)

Revision 1.5, Fri Dec 23 16:42:26 1994 UTC (29 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.4: +5 -3 lines
FILE REMOVED

be safe with types

Revision 1.4, Sun Sep 18 21:59:40 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +3 -3 lines
FILE REMOVED

Print tickadj.

Revision 1.3, Fri May 13 11:02:09 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -11 lines
FILE REMOVED

re-enable net sysctl code

Revision 1.2, Mon May 9 04:02:31 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.1: +13 -2 lines
FILE REMOVED

punt networking goo for now

Revision 1.1.1.1 (vendor branch), Mon May 9 03:49:45 1994 UTC (29 years, 11 months ago) by cgd
Changes since 1.1: +0 -0 lines
FILE REMOVED

sysctl-of-fish

Revision 1.1, Mon May 9 03:49:44 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
FILE REMOVED

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.




CVSweb <webmaster@jp.NetBSD.org>