Commit Graph

16 Commits

Author SHA1 Message Date
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
christos 8cc3f31582 delint 1998-11-15 17:21:49 +00:00
mycroft 4024f73640 const poisoning. 1998-07-26 13:34:18 +00:00
lukem c197a64bba don't assume buf is NL_TEXTMAX long 1998-02-16 11:27:15 +00:00
perry 741740203c remove obsolete register declarations 1998-02-03 18:49:08 +00:00
christos 3d2267c88c Fix RCSID's
Use "extern.h" where appropriate.
1997-07-13 20:24:09 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
jtc ace90ad26b Since the user provide his own message catalog (via NLSPATH and LANG)
the __strerror() and __strsignal() functions can not assume that the
messages will not overflow a NL_TEXTSIZE-sized buffer.

Noted by Mike Long <mike.long@analog.com> in PR
1996-10-11 00:51:07 +00:00
jtc d758cb389a Include errno.h (declarations of sys_errlist and sys_nerr were moved
from stdio.h to errno.h).
1996-01-20 01:41:51 +00:00
cgd b523e3778b cast last argument of catgets() to (char *) to quiet compiler's complaints
about loss of 'const'-ness.
1995-04-24 16:37:31 +00:00
jtc 92737ece73 Rework indirect reference support as outlined by my recent message to
the tech-userlevel mailing list.
1994-12-12 22:42:20 +00:00
jtc 1bd8c27e8b Private versions of cat*() functions now have only one leading underscore. 1994-11-18 15:38:32 +00:00
jtc afdcfb9eeb Use __sys_errlist[] & __sys_nerr. 1994-10-10 04:52:13 +00:00
jtc 76cf6eaace Call internal NLS interfaces: __catopen(), __catgets(), and __catclose(). 1994-10-06 18:17:52 +00:00
jtc 6d3bf399eb __strerror() and __strsignal() have been broken out into their own files
and use message catalogs if NLS is defined.
Increased the size of char buffers used by strerror() and strsignal();
the error and signal strings may be much longer in some locales.
1994-09-03 05:07:49 +00:00