Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/sysctl.c
RevisionDateAuthorComments
 1.38  30-Mar-2021  rillig libc/gen: fix hack for previously unsupported lint initializers

Supported since init.c 1.182 from 2021-03-30.
 1.37  16-May-2018  joerg Avoid complicated arithmetic involving NULL.
 1.36  10-Jan-2017  christos branches: 1.36.12;
simplify cast.
 1.35  05-Feb-2015  christos branches: 1.35.2;
add a couple of casts.
 1.34  16-May-2014  martin Get rid of all sysc_init_field uses - initialize fields directly in C99
notation.
 1.33  16-May-2014  martin When creating the descriptions for the "user" node, advance the output
pointer properly.
 1.32  20-Mar-2012  matt branches: 1.32.2; 1.32.8;
Use C89 definitions.
Remove use of __P
 1.31  13-Mar-2012  christos PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
builds)

approved by core@
 1.30  27-Aug-2008  christos branches: 1.30.2; 1.30.6;
setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko
 1.29  24-Feb-2006  drochner branches: 1.29.20;
complete constification of the sysctl() user side
 1.28  29-Nov-2005  christos WARNS=4
 1.27  07-Sep-2004  jrf Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
 1.26  25-Apr-2004  atatat Remove dynamic sysctl node version 0 from the tree. It seemed okay at
first, but quickly showed its shortcomings. The version 1 node we're
now using should be good for a while.
 1.25  11-Apr-2004  he Avoid using preprocessing conditionals in a macro argument list at least
as long as all ports have not yet been converted to using gcc 3.3.3.

Build bug discovered when building for vax.
 1.24  08-Apr-2004  atatat Descriptions for user.* sysctl nodes. Mostly copied from sysctl(3).
 1.23  26-Mar-2004  he branches: 1.23.2;
Introduce sysc_init_field() and use it to make the code a little less ugly.
Also, fix another gcc2-unfriendly initialization.
 1.22  26-Mar-2004  he Modify this so that it actually compiles with gcc2.
 1.21  25-Mar-2004  atatat Unwind the nested designators for fields within structs within structs
(or unions). This should really be put back once we're all using gcc3
for everything, since that makes it look a *lot* cleaner.
 1.20  24-Mar-2004  atatat Description framework for user-level sysctl nodes. Still haven't
written the descriptions.
 1.19  24-Mar-2004  atatat New node version and layout. This should take care of the netbsd32
emulation problem, formalizes the versioning (should it ever be needed
again), and provides a slot for descriptions.
 1.18  24-Mar-2004  atatat The new sysctl query interface returns the same information as the old
one, but you must pass in an empty node that indicates the version
you're using.
 1.17  24-Mar-2004  atatat Remove my private hack for watching how sysctl works. That's not
supposed to be there.
 1.16  24-Mar-2004  atatat Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
 1.15  04-Dec-2003  atatat oops
 1.14  04-Dec-2003  atatat Adapt userland sysctl goop to new world order, permitting dynamic
discovery.
 1.13  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.12  19-Dec-2002  kleink Add a sysconf(3) knob for {ATEXIT_MAX}.
 1.11  22-Jan-2000  mycroft branches: 1.11.6;
Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.10  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.9  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.8  18-Nov-1998  kleink Now that it's delinted, make it compile on LP64 platforms again. (Using a
size_t for namelen isn't strictly appropriate/necessary anyhow.)
 1.7  13-Nov-1998  christos delint
 1.6  21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.5  13-Jul-1997  christos Include "extern.h" to pick up prototype for sysctl.
Fix RCSID's
 1.4  13-May-1995  jtc branches: 1.4.4;
#include appropriate header files to bring prototypes into scope
 1.3  04-Mar-1995  cgd fix up some RCS Id's i botched.
 1.2  27-Feb-1995  cgd merge with 4.4-Lite, keeping local changes. clean up Ids
 1.1  07-May-1994  cgd branches: 1.1.1;
Initial revision
 1.1.1.1  07-May-1994  cgd various sysctl-related libc functions
 1.4.4.1  19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.11.6.1  29-Dec-2002  thorpej Sync with HEAD.
 1.23.2.3  28-Apr-2004  jmc Pullup rev 1.26 (requested by atatat in ticket #193)

Remove dynamic sysctl node version 0 from the tree.
 1.23.2.2  11-Apr-2004  tron Pull up revision 1.25 (requested by he in ticket #128):
Avoid using preprocessing conditionals in a macro argument list at least
as long as all ports have not yet been converted to using gcc 3.3.3.
Build bug discovered when building for vax.
 1.23.2.1  08-Apr-2004  jdc Pull up revision 1.24 (requested by atatat in ticket #89)

Descriptions for user.* sysctl nodes. Mostly copied from sysctl(3).
 1.29.20.1  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.30.6.2  27-Aug-2008  christos setup _POSIX2_C_BIND per SUSv3, from Andy Shevchenko
 1.30.6.1  27-Aug-2008  christos file sysctl.c was added on branch christos-time_t on 2008-08-27 08:56:50 +0000
 1.30.2.1  17-Apr-2012  yamt sync with head
 1.32.8.1  10-Aug-2014  tls Rebase.
 1.32.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.35.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.36.12.1  21-May-2018  pgoyette Sync with HEAD

RSS XML Feed