History log of /freebsd-10.2-release/lib/libc/gen/sysctlbyname.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 285830 23-Jul-2015 gjb

- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
builds.
- Update newvers.sh to reflect RC1.
- Update __FreeBSD_version to reflect 10.2.
- Update default pkg(8) configuration to use the quarterly branch.[1]

Discussed with: re, portmgr [1]
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 01-Feb-2002 obrien

Fix SCM ID's.


# 50476 28-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