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 ...
|
#
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 ...
|