<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sbin/sysctl/sysctl.c, branch release/5.2.1</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F5.2.1</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F5.2.1'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2003-11-07T16:41:47Z</updated>
<entry>
<title>Whitespace cleanup.</title>
<updated>2003-11-07T16:41:47Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2003-11-07T16:41:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=705916c69251965a3e7d3578d339328e94f1ee2b'/>
<id>urn:sha1:705916c69251965a3e7d3578d339328e94f1ee2b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a command-line option to format output for human readability.</title>
<updated>2003-11-07T16:33:45Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2003-11-07T16:33:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=45817aaa9c54b0241bb8b89a29d775475564507b'/>
<id>urn:sha1:45817aaa9c54b0241bb8b89a29d775475564507b</id>
<content type='text'>
Currently, the only effect it has is to print some (but not all) numbers
using thousands separators.
</content>
</entry>
<entry>
<title>Fix a few style glitches in the previous commit and make the</title>
<updated>2003-11-01T07:06:04Z</updated>
<author>
<name>Mike Silbersack</name>
<email>silby@FreeBSD.org</email>
</author>
<published>2003-11-01T07:06:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ac8711d28e3377b5e06a31d2c02efa4d563adacd'/>
<id>urn:sha1:ac8711d28e3377b5e06a31d2c02efa4d563adacd</id>
<content type='text'>
tunable error message more brief.

Suggested by:	bde
</content>
</entry>
<entry>
<title>Fix a 64 bit warning.  Have set_T_dev_t() take a pointer to a size_t rather</title>
<updated>2003-10-26T04:45:08Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-10-26T04:45:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7e9c84c75747e8ddeacd15eff021adcb30ca55e8'/>
<id>urn:sha1:7e9c84c75747e8ddeacd15eff021adcb30ca55e8</id>
<content type='text'>
than a pointer to an int, since that is what it really wants anyway.
</content>
</entry>
<entry>
<title>Wrap a long line in the previous commit</title>
<updated>2003-10-21T18:48:49Z</updated>
<author>
<name>Mike Silbersack</name>
<email>silby@FreeBSD.org</email>
</author>
<published>2003-10-21T18:48:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d108e6633bc6a47ca49cc8347f343b87dc40ec36'/>
<id>urn:sha1:d108e6633bc6a47ca49cc8347f343b87dc40ec36</id>
<content type='text'>
Suggested by:	njl
</content>
</entry>
<entry>
<title>Have sysctl print out a more useful error message when it detects that the</title>
<updated>2003-10-21T16:49:30Z</updated>
<author>
<name>Mike Silbersack</name>
<email>silby@FreeBSD.org</email>
</author>
<published>2003-10-21T16:49:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b4b73b7bac633ce64b5012ff6f3773e40d8aff2'/>
<id>urn:sha1:9b4b73b7bac633ce64b5012ff6f3773e40d8aff2</id>
<content type='text'>
user has attempted to write to a read only, tunable value.
</content>
</entry>
<entry>
<title>Tighten up the string-&gt;integer conversion in sysctl(8):</title>
<updated>2003-06-15T06:26:08Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2003-06-15T06:26:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a78d3eaffc61fd8b344a6ae77d810a50be4b8007'/>
<id>urn:sha1:a78d3eaffc61fd8b344a6ae77d810a50be4b8007</id>
<content type='text'>
(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.
</content>
</entry>
<entry>
<title>Output machdep.guessed_bootdev as an integer rather than try to format</title>
<updated>2003-04-03T21:41:14Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2003-04-03T21:41:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5b03e4b6a1eb6c4a25cf8aa27ef92ab7e1c0222a'/>
<id>urn:sha1:5b03e4b6a1eb6c4a25cf8aa27ef92ab7e1c0222a</id>
<content type='text'>
it according to ancient and obsolete rules.

This removes one more user of &lt;sys/diskslice.h&gt;
</content>
</entry>
<entry>
<title>Fix what I think is an off-by-one in certain worst-case scenarios</title>
<updated>2003-01-22T00:34:22Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-01-22T00:34:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=661b2c16830b5489aed79015cb5e7a5bfff507fb'/>
<id>urn:sha1:661b2c16830b5489aed79015cb5e7a5bfff507fb</id>
<content type='text'>
caused by rev 1.45.  (eg: the estimate being exactly half of the result.)
</content>
</entry>
<entry>
<title>Cleanup the formatting from the last commit, convert everything to</title>
<updated>2003-01-11T20:03:43Z</updated>
<author>
<name>Matthew Dillon</name>
<email>dillon@FreeBSD.org</email>
</author>
<published>2003-01-11T20:03:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=654e22e7bbaa814c2d459387002f487d7a0430f3'/>
<id>urn:sha1:654e22e7bbaa814c2d459387002f487d7a0430f3</id>
<content type='text'>
a more human-readable 'kilobytes' instead of pages.
</content>
</entry>
</feed>
