#
f37ea538 |
| 14-Jun-2014 |
apb <apb@NetBSD.org> |
If sysctl kern.version returns a string that's too long to fit in {struct utsname}.version then just use the truncated value.
|
#
cf884af3 |
| 20-Mar-2012 |
matt <matt@NetBSD.org> |
Use C89 definitions. Remove use of __P
|
#
f13e324e |
| 15-Jan-2007 |
cbiere <cbiere@NetBSD.org> |
Bail out on the first sysctl() error as suggested by Pierre Pronchery in PR lib/35403. christos agreed it's cleaner.
|
#
eb7c1594 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
#
60549036 |
| 22-Jan-2000 |
mycroft <mycroft@NetBSD.org> |
Delint. Remove trailing ; from uses of __weak_alias(). The macro inserts this if needed.
|
#
d8962612 |
| 20-Sep-1999 |
lukem <lukem@NetBSD.org> |
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. _DIAGASSERT() is still retained.
|
#
b48252f3 |
| 16-Sep-1999 |
lukem <lukem@NetBSD.org> |
* 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 attemp
* 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
show more ...
|
#
e79648d0 |
| 18-Aug-1998 |
thorpej <thorpej@NetBSD.org> |
Add some braces to make egcs happy.
|
#
43fa6fe3 |
| 21-Jul-1997 |
jtc <jtc@NetBSD.org> |
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
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>.
show more ...
|
#
26cc2d4f |
| 13-Jul-1997 |
christos <christos@NetBSD.org> |
Fix RCSID's
|
#
63de9506 |
| 25-Feb-1995 |
cgd <cgd@NetBSD.org> |
merge with Lite, keep local changes. clean up id usage
|
#
060d0e3d |
| 07-May-1994 |
cgd <cgd@NetBSD.org> |
various sysctl-related libc functions
|