Commit Graph

5 Commits

Author SHA1 Message Date
ed
1fdea921e1 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.
2010-02-21 13:57:02 +00:00
tjr
037ba0f24b #include <string.h> for strlen()'s prototype. 2003-01-04 00:11:11 +00:00
obrien
675250e8eb Fix SCM ID's. 2002-02-01 00:57:29 +00:00
ru
c632b830a9 Suppress compiler warning by adding a type cast. 2001-05-17 12:51:43 +00:00
mckusick
3343c7fd58 Add the function sysctlnametomib to libc. Details on the semantics
and use of this function have been added to the sysctl.3 manual page.
2001-01-23 03:40:32 +00:00