History log of /freebsd-10.0-release/lib/libc/gen/sysctlbyname.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

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

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

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


# 244153 12-Dec-2012 pjd

Eliminate redundant variable.


# 204172 21-Feb-2010 ed

While there, trim some trailing whitespace.


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


# 90039 31-Jan-2002 obrien

Fix SCM ID's.


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 34358 09-Mar-1998 jb

Change a variable to type size_t to suit the sysctl prototype.

Add #include <string.h> to get prototypes.


# 27343 12-Jul-1997 peter

Have sysctlbyname() take a const first arg (the ascii string)


# 26285 30-May-1997 phk

sysctlbyname allows acces to sysctl variables by name.

The manpage has been sent to linquistic decontamination and will arrive
when released from the quarantine

Reviewed by: peter