| Age | Commit message (Collapse) | Author |
|
|
|
by tedu @ openbsd in tech-userlevel. Thanks!
|
|
definitions along the way. Fixed gcc 4.1 build (thank you vax)
|
|
- 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@
|
|
|
|
|
|
|
|
|
|
|
|
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.
The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems. On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems. However, we leave the isascii()
untouched for now, so as not to change the current behavior.
|
|
_DIAGASSERT() is still retained.
|
|
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
|
|
|
|
Fix gcc warnings
Add missing prototypes
Use "namespace.h"
|
|
same as this, with our changes also included (resolv.conf and
other minor differences).
|
|
|