jrf
190b2e4c51
Replaced strncpy with strlcpy. Thanks to Peter Postma who
...
pointed them our in PR #25762 . Approved by christos@NetBSD.org .
2004-09-07 13:20:39 +00:00
atatat
990f278f7a
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.
2004-04-25 05:47:52 +00:00
he
30f13a8751
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.
2004-04-11 09:10:58 +00:00
atatat
11d2a71805
Descriptions for user.* sysctl nodes. Mostly copied from sysctl(3).
2004-04-08 04:10:44 +00:00
he
9e1e88e1c4
Introduce sysc_init_field() and use it to make the code a little less ugly.
...
Also, fix another gcc2-unfriendly initialization.
2004-03-26 22:54:42 +00:00
he
2f47eb75f7
Modify this so that it actually compiles with gcc2.
2004-03-26 12:53:58 +00:00
atatat
44afe14cb6
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.
2004-03-25 18:36:49 +00:00
atatat
ce0d7254d4
Description framework for user-level sysctl nodes. Still haven't
...
written the descriptions.
2004-03-24 19:31:46 +00:00
atatat
c6abd47f96
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.
2004-03-24 17:21:02 +00:00
atatat
d42aae36c0
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.
2004-03-24 16:34:34 +00:00
atatat
9b4aa5d493
Remove my private hack for watching how sysctl works. That's not
...
supposed to be there.
2004-03-24 16:29:10 +00:00
atatat
19af35fd0d
Tango on sysctl_createv() and flags. The flags have all been renamed,
...
and sysctl_createv() now uses more arguments.
2004-03-24 15:34:46 +00:00
atatat
6fc962bc06
oops
2003-12-04 19:45:19 +00:00
atatat
fcc5d1a731
Adapt userland sysctl goop to new world order, permitting dynamic
...
discovery.
2003-12-04 19:40:55 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
kleink
ac7290d7c2
Add a sysconf(3) knob for {ATEXIT_MAX}.
2002-12-19 23:31:54 +00:00
mycroft
605490369c
Delint.
...
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
lukem
d896261208
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
...
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem
b48252f365
* 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
1999-09-16 11:44:54 +00:00
kleink
72db869909
Now that it's delinted, make it compile on LP64 platforms again. (Using a
...
size_t for namelen isn't strictly appropriate/necessary anyhow.)
1998-11-18 20:51:51 +00:00
christos
d6f530541f
delint
1998-11-13 12:31:50 +00:00
jtc
43fa6fe319
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>.
1997-07-21 14:06:24 +00:00
christos
68c8f13fd6
Include "extern.h" to pick up prototype for sysctl.
...
Fix RCSID's
1997-07-13 19:33:49 +00:00
jtc
3ba2c075cf
#include appropriate header files to bring prototypes into scope
1995-05-13 06:58:18 +00:00
cgd
ee38224d2e
fix up some RCS Id's i botched.
1995-03-04 01:55:49 +00:00
cgd
9060ff0dc7
merge with 4.4-Lite, keeping local changes. clean up Ids
1995-02-27 05:50:11 +00:00
cgd
060d0e3d1a
various sysctl-related libc functions
1994-05-07 02:52:59 +00:00