History log of /freebsd/sbin/sysctl/sysctl.c (Results 151 – 175 of 312)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9f98e452 13-Apr-2005 Matthew N. Dodd <mdodd@FreeBSD.org>

Zero buffers. Seatbelt against sysctl(3) returning non-NUL terminated
string data.


# 8d646af5 10-Feb-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sync program's usage() with manpage's SYNOPSIS.


# 1d4961c0 25-Jan-2005 Suleiman Souhlal <ssouhlal@FreeBSD.org>

Get rid of a NULL dereference when oid is too long.

Reviewed by: keramida
Approved by: grehan (mentor)
MFC after: 1 week


Revision tags: release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0
# 0a16dedc 17-Sep-2004 Lukas Ertl <le@FreeBSD.org>

Use correct format string.

Submitted by: ssouhlal


# c591d41f 31-Aug-2004 Peter Wemm <peter@FreeBSD.org>

Add a suffix descriptor for the acpi thermal values as a hint for the userland
sysctl tool to print a more readable value for temperatures.


Revision tags: release/4.10.0_cvs, release/4.10.0
# 4c723140 09-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp


# 4d90830f 02-Mar-2004 Dima Dorfman <dd@FreeBSD.org>

Add CTLTYPE_QUAD to the list of types for which we don't want an empty
value. All the other numeric types are doing it . . .


Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0
# 705916c6 07-Nov-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Whitespace cleanup.


# 45817aaa 07-Nov-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Add a command-line option to format output for human readability.
Currently, the only effect it has is to print some (but not all) numbers
using thousands separators.


# ac8711d2 01-Nov-2003 Mike Silbersack <silby@FreeBSD.org>

Fix a few style glitches in the previous commit and make the
tunable error message more brief.

Suggested by: bde


Revision tags: release/4.9.0_cvs, release/4.9.0
# 7e9c84c7 26-Oct-2003 Peter Wemm <peter@FreeBSD.org>

Fix a 64 bit warning. Have set_T_dev_t() take a pointer to a size_t rather
than a pointer to an int, since that is what it really wants anyway.


# d108e663 21-Oct-2003 Mike Silbersack <silby@FreeBSD.org>

Wrap a long line in the previous commit

Suggested by: njl


# 9b4b73b7 21-Oct-2003 Mike Silbersack <silby@FreeBSD.org>

Have sysctl print out a more useful error message when it detects that the
user has attempted to write to a read only, tunable value.


# a78d3eaf 15-Jun-2003 Robert Watson <rwatson@FreeBSD.org>

Tighten up the string->integer conversion in sysctl(8):

(1) Reject zero-length strings for CTLTYPE_INT, _UINT, _LONG,
_ULONG. Do not silently convert to 0.

(2) When converting CTLTYPE_INT, _UI

Tighten up the string->integer conversion in sysctl(8):

(1) Reject zero-length strings for CTLTYPE_INT, _UINT, _LONG,
_ULONG. Do not silently convert to 0.

(2) When converting CTLTYPE_INT, _UINT, _LONG, and _ULONG, check the
end pointer generated by strtol() and strtoul() rather than
discarding it. Reject the string if either none of the string
was useful for conversion to an integer, or if there was
trailing garbage.

I.e., we will not allow you to set a numeric sysctl to a value unless
we can completely convert the string argument to a numeric value.
I tripped over this when I put the following in /etc/sysctl.conf:

kern.maxfiles="4000"

Ouch.

show more ...


Revision tags: release/5.1.0_cvs, release/5.1.0
# 5b03e4b6 03-Apr-2003 Poul-Henning Kamp <phk@FreeBSD.org>

Output machdep.guessed_bootdev as an integer rather than try to format
it according to ancient and obsolete rules.

This removes one more user of <sys/diskslice.h>


Revision tags: release/4.8.0_cvs, release/4.8.0
# 661b2c16 22-Jan-2003 Peter Wemm <peter@FreeBSD.org>

Fix what I think is an off-by-one in certain worst-case scenarios
caused by rev 1.45. (eg: the estimate being exactly half of the result.)


Revision tags: release/5.0.0_cvs, release/5.0.0
# 654e22e7 11-Jan-2003 Matthew Dillon <dillon@FreeBSD.org>

Cleanup the formatting from the last commit, convert everything to
a more human-readable 'kilobytes' instead of pages.


# f7550ecf 11-Jan-2003 Matthew Dillon <dillon@FreeBSD.org>

Make 'sysctl vm.vmtotal' work properly using updated patch from Hiten.
(the patch in the PR was stale).

PR: kern/5689
Submitted by: Hiten Pandya <hiten@unixdaemons.com>


# 9866352e 12-Nov-2002 Peter Wemm <peter@FreeBSD.org>

Fix a "bug" in sysctl(8). Limit the length when we print a string from
the kernel rather than ignoring the length and keeping on going till we
finally hit a \0 character in the buffer.


Revision tags: release/4.7.0_cvs
# 7fed38d0 25-Aug-2002 Philippe Charnier <charnier@FreeBSD.org>

Replace various spelling with FALLTHROUGH which is lint()able


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs
# 996076bb 24-May-2002 Alfred Perlstein <alfred@FreeBSD.org>

Don't err(3) (and exit prematurely) when a sysctl's object size has
changed, instead just warn(3)


# 76d3dc52 09-May-2002 Andrey A. Chernov <ache@FreeBSD.org>

Don't forget to null-terminate string we got from sysctl (f.e. in 'A' format).
Stack garbadge may be printed otherwise.


# b35c8f28 15-Apr-2002 Poul-Henning Kamp <phk@FreeBSD.org>

Take the "tickadj" element out of struct clockinfo. Our adjtime(2)
implementation is being changed and the very concept of tickadj will
no longer be meaningful.


# bca9bbea 11-Mar-2002 Luigi Rizzo <luigi@FreeBSD.org>

Make the handling of machdep.guessed_bootdev compiled on i386 only.


# 60cf2c12 10-Mar-2002 Luigi Rizzo <luigi@FreeBSD.org>

Export a (machine dependent) kernel variable bootdev as
machdep.guessed_bootdev, and add code to sysctl to parse its value
and give a (not necessarily correct) name to the device we booted
from (the

Export a (machine dependent) kernel variable bootdev as
machdep.guessed_bootdev, and add code to sysctl to parse its value
and give a (not necessarily correct) name to the device we booted
from (the main motivation for this code is to use the info in the
PicoBSD boot scripts, and the impact on the kernel is minimal).

NOTE: the information available in bootdev is not always reliable,
so you should not trust it too much. The parsing code is the same
as in boot2.c, and cannot cover all cases -- as it is, it seems to
work fine with floppies and IDE disks recognised by the BIOS. It
_should_ work as well with SCSI disks recognised by the BIOS.
Booting from a CDROM in floppy emulation will return /dev/fd0 (because
this is what the BIOS tells us).
Booting off the network (e.g. with etherboot) leaves bootdev unset so
the value will be printed as "invalid (0xffffffff)".

Finally, this feature might go away at some point, hopefully when we
have a more reliable way to get the same information.

MFC-after: 5 days

show more ...


12345678910>>...13