<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/sysctl/sysctl.c, branch releng/5.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F5.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F5.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2002-11-12T21:18:21Z</updated>
<entry>
<title>Fix a "bug" in sysctl(8).  Limit the length when we print a string from</title>
<updated>2002-11-12T21:18:21Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2002-11-12T21:18:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9866352ec765176c127868a10aebb7ce34d88302'/>
<id>urn:sha1:9866352ec765176c127868a10aebb7ce34d88302</id>
<content type='text'>
the kernel rather than ignoring the length and keeping on going till we
finally hit a \0 character in the buffer.
</content>
</entry>
<entry>
<title>Replace various spelling with FALLTHROUGH which is lint()able</title>
<updated>2002-08-25T13:10:45Z</updated>
<author>
<name>Philippe Charnier</name>
<email>charnier@FreeBSD.org</email>
</author>
<published>2002-08-25T13:10:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7fed38d0a00297914313d5b57f3fae8ef7d4e627'/>
<id>urn:sha1:7fed38d0a00297914313d5b57f3fae8ef7d4e627</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't err(3) (and exit prematurely) when a sysctl's object size has</title>
<updated>2002-05-24T08:34:18Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-05-24T08:34:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=996076bbc78d20f67e819dabc0b7ff87bfa8603f'/>
<id>urn:sha1:996076bbc78d20f67e819dabc0b7ff87bfa8603f</id>
<content type='text'>
changed, instead just warn(3)
</content>
</entry>
<entry>
<title>Don't forget to null-terminate string we got from sysctl (f.e. in 'A' format).</title>
<updated>2002-05-08T23:49:19Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2002-05-08T23:49:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=76d3dc52977e73e170f53423775b123ad7355ec3'/>
<id>urn:sha1:76d3dc52977e73e170f53423775b123ad7355ec3</id>
<content type='text'>
Stack garbadge may be printed otherwise.
</content>
</entry>
<entry>
<title>Take the "tickadj" element out of struct clockinfo.  Our adjtime(2)</title>
<updated>2002-04-15T12:11:06Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-04-15T12:11:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b35c8f287dfb5f263beb4c6c165a3012d8f96aef'/>
<id>urn:sha1:b35c8f287dfb5f263beb4c6c165a3012d8f96aef</id>
<content type='text'>
implementation is being changed and the very concept of tickadj will
no longer be meaningful.
</content>
</entry>
<entry>
<title>Make the handling of machdep.guessed_bootdev compiled on i386 only.</title>
<updated>2002-03-11T06:50:28Z</updated>
<author>
<name>Luigi Rizzo</name>
<email>luigi@FreeBSD.org</email>
</author>
<published>2002-03-11T06:50:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bca9bbeae7be0f3637084160666645350b8d6912'/>
<id>urn:sha1:bca9bbeae7be0f3637084160666645350b8d6912</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Export a (machine dependent) kernel variable bootdev as</title>
<updated>2002-03-10T20:08:44Z</updated>
<author>
<name>Luigi Rizzo</name>
<email>luigi@FreeBSD.org</email>
</author>
<published>2002-03-10T20:08:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=60cf2c125444db70da70008cd0ba4ab618e770d9'/>
<id>urn:sha1:60cf2c125444db70da70008cd0ba4ab618e770d9</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>#include &lt;sys/time.h&gt; instead of depending on namespace pollution in</title>
<updated>2002-02-25T03:36:06Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2002-02-25T03:36:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ce685842265608d98db7bc3ab8504c8a9c1d5242'/>
<id>urn:sha1:ce685842265608d98db7bc3ab8504c8a9c1d5242</id>
<content type='text'>
&lt;sys/stat.h&gt; for its prerequisite &lt;sys/time.h&gt;.

#include &lt;sys/param.h&gt; in the correct place instead of bogusly including
&lt;sys/types.h&gt;.
</content>
</entry>
<entry>
<title>Allow setting of variables of type dev_t by indicating the name of</title>
<updated>2001-12-30T10:33:34Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2001-12-30T10:33:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d58f005463154c3e828e97ff4e5a4a90952e7de4'/>
<id>urn:sha1:d58f005463154c3e828e97ff4e5a4a90952e7de4</id>
<content type='text'>
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 &lt;thomas@cuivre.fr.eu.org&gt;
</content>
</entry>
<entry>
<title>Add code to export and print the description associated to sysctl</title>
<updated>2001-12-16T02:55:41Z</updated>
<author>
<name>Luigi Rizzo</name>
<email>luigi@FreeBSD.org</email>
</author>
<published>2001-12-16T02:55:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6105f815658a08bdf488d8b4ff3a39b59b812660'/>
<id>urn:sha1:6105f815658a08bdf488d8b4ff3a39b59b812660</id>
<content type='text'>
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
</content>
</entry>
</feed>
