History log of /freebsd/sbin/sysctl/sysctl.c (Results 176 – 200 of 312)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# ce685842 25-Feb-2002 Bruce Evans <bde@FreeBSD.org>

#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for its prerequisite <sys/time.h>.

#include <sys/param.h> in the correct place instead of bogusly including
<sys/typ

#include <sys/time.h> instead of depending on namespace pollution in
<sys/stat.h> for its prerequisite <sys/time.h>.

#include <sys/param.h> in the correct place instead of bogusly including
<sys/types.h>.

show more ...


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# d58f0054 30-Dec-2001 Poul-Henning Kamp <phk@FreeBSD.org>

Allow setting of variables of type dev_t by indicating the name of
a special file on the command line, eg:
sysctl kern.dumpdev=/dev/ad1s1b

In parse(), when a value is given for a CTLTYPE_QUAD vari

Allow setting of variables of type dev_t by indicating the name of
a special file on the command line, eg:
sysctl kern.dumpdev=/dev/ad1s1b

In parse(), when a value is given for a CTLTYPE_QUAD variable,
newval and newsize erroneously fail to be set because of an early
"break".

show_var() contains code that duplicates the functionality of the
oidfmt() function.

PR: 33151, 33150
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>

show more ...


# 6105f815 16-Dec-2001 Luigi Rizzo <luigi@FreeBSD.org>

Add code to export and print the description associated to sysctl
variables. Use the -d flag in sysctl(8) to see this information.

Possible extensions to sysctl:
+ report variables that do not have

Add code to export and print the description associated to sysctl
variables. Use the -d flag in sysctl(8) to see this information.

Possible extensions to sysctl:
+ report variables that do not have a description
+ given a name, report the oid it maps to.

Note to developers: have a look at your code, there are a number of
variables which do not have a description.

Note to developers: do we want this in 4.5 ? It is a very small change
and very useful for documentation purposes.

Suggested by: Orion Hodson

show more ...


# d0b8aabb 30-Oct-2001 Anton Berezin <tobez@FreeBSD.org>

Implement -e option. It modifies the output produced by sysctl(8) in
such a way that the name and the value of the variable(s) are separated
with `=' instead of the usual `: '. This is useful for p

Implement -e option. It modifies the output produced by sysctl(8) in
such a way that the name and the value of the variable(s) are separated
with `=' instead of the usual `: '. This is useful for producing output
that can be fed back to the sysctl utility (pasted to sysctl.conf, for
example).

Reviewed by: rwatson
Approved by: markm
MFC after: 2 weeks

show more ...


# 1ce1a53d 18-Jun-2001 Jim Pirzyk <pirzyk@FreeBSD.org>

modfied sysctl command to allow setting values > 2GB if the mib supports it.

PR: kern/21132
Reviewed by: no objections to by -arch
MFC after: 1 month


# 31fb4661 09-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Normalize the use of sizeof according to style(9).

Reviewed by: md5(1)


# ce359783 01-Jun-2001 Dima Dorfman <dd@FreeBSD.org>

Remove unused variable (descr) in show_var().

PR: 22582
Submitted by: Giorgos Keramidas <charon@gray.westgate.gr>


# a89ab9bb 28-May-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Perform random drive-by style cleanups, and rewrite a while loop that
offended my artistic sensibilities.


# 9a2402bc 28-May-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Try to make sysctl options slightly more orthogonal:

- introduce a -o option that displays opaque variables.
- introduce a -x option that displays opaque variables in full.
- deprecate -A in favo

Try to make sysctl options slightly more orthogonal:

- introduce a -o option that displays opaque variables.
- introduce a -x option that displays opaque variables in full.
- deprecate -A in favor of -ao and -X in favor of -ax.
- remove -A and -X from usage() and SYNOPSIS (but not from DESCRIPTION).
- ignore -a if one or more variables were listed on the command line.
- deprecate -w, it is not needed to determine the user's intentions.
- some language and style cleanup in the man page.

This commit should not break any existing scripts.

MFC after: 4 weeks

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0
# 0ef56fd8 14-Jan-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Document the -N option in the usage message and the man page.


# ca5fac55 14-Jan-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Add a -N option that makes sysctl(8) print out just the variable names.
Zsh users can add the following to their .zshrc for sysctl completion:

function listsysctls {
case $1 in
*.*) set -A r

Add a -N option that makes sysctl(8) print out just the variable names.
Zsh users can add the following to their .zshrc for sysctl completion:

function listsysctls {
case $1 in
*.*) set -A reply $(sysctl -AN ${1%.*}) ;;
*) set -A reply $(sysctl -AN) ;;
esac
}
compctl -K listsysctls sysctl

While I'm here, brucify the getopt() switch.

show more ...


Revision tags: release/4.2.0
# 3c884b50 23-Oct-2000 Andrew Gallatin <gallatin@FreeBSD.org>

Give correct results for SYSCTL_LONG arrays when sizeof(int) != sizeof(long)
This fixes unaligned access on alpha for, eg, sysctl kern.ipc.mbtypes.


Revision tags: release/4.1.1_cvs, release/4.1.0
# aa02fb57 11-Jul-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Array of long support.

Submitted by: Ian Dowse <iedowse@maths.tcd.ie>


# 9701cd40 05-Jul-2000 John Baldwin <jhb@FreeBSD.org>

Support for unsigned integer and long sysctl variables. Update the
SYSCTL_LONG macro to be consistent with other integer sysctl variables
and require an initial value instead of assuming 0. Update

Support for unsigned integer and long sysctl variables. Update the
SYSCTL_LONG macro to be consistent with other integer sysctl variables
and require an initial value instead of assuming 0. Update several
sysctl variables to use the unsigned types.

PR: 15251
Submitted by: Kelly Yancey <kbyanc@posi.net>

show more ...


Revision tags: release/3.5.0_cvs
# 6ed3a297 10-Jun-2000 Poul-Henning Kamp <phk@FreeBSD.org>

Handle minors like ls(1) does it.

PR: 19179
Submitted by: Kelly Yancey <kbyanc@posi.net>


Revision tags: release/4.0.0_cvs, release/3.4.0_cvs
# 2d730c26 22-Nov-1999 Dag-Erling Smørgrav <des@FreeBSD.org>

Belatedly back out rev. 1.20.


# 26909c80 18-Nov-1999 Greg Lehey <grog@FreeBSD.org>

Allow octal or hex input.
Suggested-by: Geoff Steckel <gwes@sitaranetworks.com>


Revision tags: release/3.3.0_cvs
# 7f3dea24 28-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# c1160fe4 21-Jul-1999 Bill Fumerola <billf@FreeBSD.org>

Avoid ambigious if/else


Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8
# 81e7454a 10-Jan-1999 Dag-Erling Smørgrav <des@FreeBSD.org>

Clean up option handling a little.
Add an option for showing sysctl descriptions instead of their values.


# 2b4c0a3b 08-Nov-1998 Poul-Henning Kamp <phk@FreeBSD.org>

Allow for printing out integer arrays.


# dbf9b92f 25-Aug-1998 Doug Rabson <dfr@FreeBSD.org>

Change length arguments to sysctl to size_t.


Revision tags: release/2.2.7
# c2deb608 29-Jun-1998 Bruce Evans <bde@FreeBSD.org>

Don't assume that time_t is long.


Revision tags: release/2.2.6
# 14b94d04 18-Nov-1997 John Polstra <jdp@FreeBSD.org>

Add missing argument detected by "-Wformat".


Revision tags: release/2.2.5_cvs
# d9b1bc77 20-Oct-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3). Change err(-1,... to err(1,...


12345678910>>...13