History log of /freebsd-9.3-release/lib/libc/gen/sysctl.3
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 253683 26-Jul-2013 hrs

MFC 253262, 253318, 243184, 253444, 253505, 253520:

- Add a leaf node CTL_NET.PF_ROUTE.0.AF.NET_RT_DUMP.0.FIB. This returns
routing table with the specified FIB number, not td->td_proc->p_fibnum.

- Add check_namevarlist() to check if ${name}_var is reserved in
rc.subr or not.

- Fix a bug in ipv6_prefix_IF. It did not work with the 64-bit prefix
notation like 2001:db8:1:1.

- Use eui64 flag in ifconfig(8) instead of network6_getladdr()[*] for
interface indentifier part.

- Fix address range specification with ifconfig(8) options such as:

* inet 192.0.2.1-10 netmask 255.255.255.0 (inet range spec + ifconfig options)
* inet6 2001:db8:1::1-f prefixlen 60 (inet6 range spec + ifconfig options)

If prefixlen or netmask option is specified with CIDR notation at
the same time, the option is used.

- Do not set ND6_IFF_ACCEPT_RTADV on if_bridge(4) interfaces when
ipv6_enable=yes.

Approved by: re (marius)


# 231768 15-Feb-2012 bz

MFC r231505,231520:

Introduce a new NET_RT_IFLISTL API to query the address list. It works
on extended and extensible structs if_msghdrl and ifa_msghdrl. This
will allow us to extend both the msghdrl structs and eventually if_data
in the future without breaking the ABI.

The MFC is just to provide the new API to old stable branches to make
updating and if needed downgrading a lot easier for updates to 10.

Bump __FreeBSD_version to allow ports to more easily detect the new API.

Reviewed by: brooks
Tested by: brooks


# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 213573 08-Oct-2010 uqs

mdoc: drop redundant .Pp and .LP calls

They have no effect when coming in pairs, or before .Bl/.Bd


# 207186 25-Apr-2010 jilles

sysctl(3): Update description of various kern.* variables.
Also add xrefs for confstr(3) (as sysconf(3) but for strings) and kvm(3)
(which is a more convenient way to access some of the variables).

PR: 116480
MFC after: 1 week


# 206615 14-Apr-2010 uqs

mdoc: remove .Pp where not needed

This trips up mdocml and can simply go away.

Reviewed by: ru
Approved by: philip, ed (mentors)


# 204170 21-Feb-2010 ed

Add proper const keywords to sysctl(3) parameters.

The `name' and `newp' arguments can be marked const, because the buffers
they refer to are never changed. While there, perform some other
cleanups:

- Remove K&R from sysctl.c.
- Implement sysctlbyname() using sysctlnametomib() to prevent
duplication of an undocumented kernel interface.
- Fix some whitespace nits.

It seems the prototypes are now in sync with NetBSD as well.


# 187824 28-Jan-2009 trhodes

Update the description of KERN_PROC.

PR: 100242
Reviewed by: jhb


# 177652 26-Mar-2008 ru

Removed no longer existing CTL_MACHDEP defines.

Inspired by: phk


# 172699 16-Oct-2007 ru

VM_METER is long deprecated.


# 172698 16-Oct-2007 ru

Rescue parts of the sensorsd commit that are still relevant:

- HW_FLOATINGPOINT renamed to HW_FLOATINGPT.
- Documented HW_REALMEM.
- Sorted as per <sys/sysctl.h>.


# 172674 15-Oct-2007 netchild

Backout sensors framework.

Requested by: phk
Discussed on: cvs-all


# 172646 14-Oct-2007 ru

Fix mdoc in last commit.


# 172631 14-Oct-2007 netchild

Import OpenBSD's sysctl hardware sensors framework.

This commit includes the following core components:

* sample configuration file for sensorsd
* rc(8) script and glue code for sensorsd(8)
* sysctl(3) doc fixes for CTL_HW tree
* sysctl(3) documentation for hardware sensors
* sysctl(8) documentation for hardware sensors
* support for the sensor structure for sysctl(8)
* rc.conf(5) documentation for starting sensorsd(8)
* sensor_attach(9) et al documentation
* /sys/kern/kern_sensors.c
o sensor_attach(9) API for drivers to register ksensors
o sensor_task_register(9) API for the update task
o sysctl(3) glue code
o hw.sensors shadow tree for sysctl(8) internal magic
* <sys/sensors.h>
* HW_SENSORS definition for <sys/sysctl.h>
* sensors display for systat(1), including documentation
* sensorsd(8) and all applicable documentation

The userland part of the framework is entirely source-code
compatible with OpenBSD 4.1, 4.2 and -current as of today.

All sensor readings can be viewed with `sysctl hw.sensors`,
monitored in semi-realtime with `systat -sensors` and also
logged with `sensorsd`.

Submitted by: Constantine A. Murenin <cnst@FreeBSD.org>
Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors)
Mentored by: syrinx
Tested by: many
OKed by: kensmith
Obtained from: OpenBSD (parts)


# 168579 10-Apr-2007 ru

Expand the description of the host's UUID.

OK'ed by: pjd


# 168551 09-Apr-2007 pjd

Document KERN_HOSTUUID.

Reminded by: ru


# 165903 08-Jan-2007 imp

Per Regents of the University of Calfornia letter, remove advertising
clause.

# If I've done so improperly on a file, please let me know.


# 147402 15-Jun-2005 ru

Assorted markup fixes.

Approved by: re


# 145216 18-Apr-2005 das

Add a sysctl that returns the full path of a process' text file.
This information is needed by things like `gdb -p' and Sun's javac,
and previously it could only be obtained via procfs


# 140505 20-Jan-2005 ru

Sort sections.


# 131504 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


# 127401 25-Mar-2004 bms

Document the existence of NET_RT_IFMALIST.

Reviewed by: ru


# 127400 25-Mar-2004 ru

[troff] removed the unnecessary use of \_ escapes.


# 127015 15-Mar-2004 truckman

Document additional reasons that sysctl(3) can return ENOMEM (due to
vslock() failure).


# 119893 08-Sep-2003 ru

mdoc(7): Use the new feature of the .In macro.


# 119654 01-Sep-2003 eivind

Update the kern.osreldate documentation to document the present format
used, and refer to <osreldate.h> to get userland date.

Submitted by: ru


# 108087 19-Dec-2002 ru

mdoc(7) police: "The .Fa argument.".


# 108030 18-Dec-2002 ru

mdoc(7) police: "The .Fn function".


# 107788 12-Dec-2002 ru

Uniformly refer to a file system as "file system".

Approved by: re


# 93081 24-Mar-2002 dd

Fix braino.


# 89700 23-Jan-2002 ru

The sixth argument to the NET_RT_IFLIST sysctl is actually 0 for
all interfaces, and ifnet.if_index value for a single interface.


# 87794 13-Dec-2001 ru

If the OID is missing, sysctl(3) returns ENOENT, not EOPNOTSUPP.

PR: docs/32793
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>


# 84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


# 82642 31-Aug-2001 ru

Use ``.Rv -std'' wherever possible.

Submitted by: yar


# 81251 07-Aug-2001 ru

mdoc(7) police:

Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.


# 73099 26-Feb-2001 ru

Use ``.St -p1003.[12]''.


# 71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


# 71416 23-Jan-2001 ru

mdoc(7) police: replaced empty line with .Pp, updated document date.


# 71409 23-Jan-2001 mckusick

Add the function sysctlnametomib to libc. Details on the semantics
and use of this function have been added to the sysctl.3 manual page.


# 70481 29-Dec-2000 ru

Prepare for mdoc(7)NG.


# 69051 22-Nov-2000 ru

mdoc(7) police: Er macro usage cleanup.


# 68710 14-Nov-2000 sheldonh

Change [Ii]t's to "It is" and "its" as appropriate.


# 68709 14-Nov-2000 sheldonh

Whitespace only: remove hard sentence breaks introduced in previous
commit and use a paragraph marker (Pp) instead of a blank line.


# 68608 11-Nov-2000 abial

Correct description of KERN_PROC. Add description of KERN_PROC_ARGS.


# 68575 10-Nov-2000 ru

Avoid use of direct troff requests in mdoc(7) manual pages.


# 67967 30-Oct-2000 asmodai

Whitespace only change: trim trailing whitespace.


# 63757 22-Jul-2000 sheldonh

Remove the reference to KERN_UPDATEINTERVAL and syncer(4), since
KERN_UPDATEINTERVAL can't be used to control sched_sync(). In
fact, there's no easy way to control the syncer with sysctls.

Reported by: bde


# 63498 19-Jul-2000 sheldonh

Update stale references to update(4) with references to the new
syncer(4) manual page.


# 60077 06-May-2000 phantom

mdoc related cleanup:
. use construction ".Aq Pa filename" instead of ".Pa <filename>"
. replace Section Heading macro (.Sh) with Subsection (.Ss) macro for
subsections


# 59460 21-Apr-2000 phantom

Introduce ".Lb" macro to libc manpages.

More libraries manpages updates following.


# 57102 09-Feb-2000 chris

Replace the existing documentation for ``KERN_QUANTUM'' with a more
descriptive (and generally more useful) explanation.


# 56268 19-Jan-2000 chris

Document KERN_QUANTUM under CTL_KERN

PR: 15637
Submitted by: jhs


# 55502 06-Jan-2000 itojun

remove most of PF_INET6 description. add references only.

Suggested by: Ruslan Ermilov <ru@FreeBSD.org>


# 55493 06-Jan-2000 itojun

bring in description for KAME IPv6 changes.
XXX it looks that sysctl.3 lacks most of PF_INET items.
Reviewed by: shin
Obtained from: KAME (netbsd-current)


# 53977 01-Dec-1999 green

Separate some common sysctl code into sysctl_find_oid() and calling
thereof. Also, make the errno returns _correct_, and add a new one
which is more appropriate.


# 51457 20-Sep-1999 phantom

Correct spelling : ascii -> ASCII

PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48794 12-Jul-1999 nik

Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

.\" $Id$
.\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by: bde


# 44961 23-Mar-1999 jkoshy

Typo fix.

PR: docs/10733
Submitted by: Steve Coltrin <spcoltri@io.com>


# 42353 06-Jan-1999 des

Make the implementation and documentation agree. Specifically:

- document that sysctl() and sysctlbyname() return 0 on success

- if the provided buffer is too small, set errno to ENOMEM and return -1
instead of returning ENOMEM.


# 39750 29-Sep-1998 jkoshy

`kern.maxproc' is not changeable from sysctl(8).

Reminded by: Bruce Evans <bde@zeta.org.au>


# 39334 16-Sep-1998 jkoshy

Sort table and descriptions.

Pointed out by: bde


# 39267 15-Sep-1998 jkoshy

Turn off replies to ICMP echo requests for broadcast and multicast
addresses by default.

Add a knob "icmp_bmcastecho" to "rc.network" to allow this
behaviour to be controlled from "rc.conf".

Document the controlling sysctl variable "net.inet.icmp.bmcastecho"
in sysctl(3).

Reviewed by: dg, jkh
Reminded on -hackers by: Steinar Haug <sthaug@nethelp.no>


# 39022 09-Sep-1998 ghelmer

Document a number of VM sysctl variables with help from old emails
written by John Dyson.


# 37319 30-Jun-1998 eivind

Cross-reference to sysconf(3).


# 32562 16-Jan-1998 bde

Fixed missing return type in a prototype.


# 28916 30-Aug-1997 kato

Added HW_MACHINE_ARCH.


# 27344 12-Jul-1997 peter

Add a quick description of sysctlbyname() and link sysctl.3 to
sysctlbyname.3


# 26898 24-Jun-1997 jhay

Add tickadj to struct clockinfo, like NetBSD and OpenBSD.


# 26826 23-Jun-1997 steve

Show the real revision date and not the date that this
manpage is being viewed.


# 23667 11-Mar-1997 peter

Merge from Lite2: man page updates


# 22147 30-Jan-1997 mpp

Very minor mdoc cleanup.


# 19390 04-Nov-1996 bde

Document that the `old' count is returned for the ENOMEM case.


# 18563 29-Sep-1996 bde

Made this about as (in)complete as sysctl.8.
- removed references to nonexistent pathconf-related variables.
- document everything in CTL_MACHDEP(more than in sysctl.8) and
80% of the things in CTL_KERN (same as in sysctl.8).


# 17782 22-Aug-1996 mpp

Correctly use .Fn instead of .Nm to reference function names
in a bunch of man pages.

Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros
instead of explicitly specifying the version in the text
in a bunch of man pages.


# 17780 22-Aug-1996 mpp

Update a bunch of man pages to use .Fn instead
of .Nm when referencing funciton names.


# 16279 10-Jun-1996 phk

Update man to tell that <sys/types.h> is needed.
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>


# 14517 11-Mar-1996 hsu

From Lite2: rename fs to vfs.


# 14516 11-Mar-1996 hsu

From Lite2: rename fs to vfs.


# 14101 15-Feb-1996 mpp

Fixed a bunch of man page cross references that were
in the main text of various man pages.

Thanks to Warner Losh for adding an option to manck to allow
it to scan the entire man page looking for bogus xrefs, instead
of just checking the SEE ALSO section.


# 3682 18-Oct-1994 ache

Remove CPU_COLORDISP, GIO_COLOR now exists


# 3667 17-Oct-1994 ache

Add new machdep variables


# 1574 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1573,
which included commits to RCS files with non-trunk default branches.


# 1573 27-May-1994 rgrimes

BSD 4.4 Lite Lib Sources