History log of /freebsd-10.1-release/lib/libc/gen/sysctlbyname.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

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