Commit Graph

13 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
kleink 95478cea62 strtok() -> strtok_r() to avoid side-effects. 1999-01-11 23:31:50 +00:00
christos 983a6b1f22 Delint 1998-12-09 14:35:02 +00:00
mycroft 55ac0c2da3 const poisoning. 1998-07-26 21:58:46 +00:00
jtc 23bee85a3f Fix files using old TNF copyright notice 1997-07-31 00:01:15 +00:00
mikel 20690bcbac include <fnmatch.h> for fnmatch() prototype
use __CONCAT() to generate pathenv
1997-06-20 06:42:20 +00:00
mycroft 8feb354e12 Pull in err.h for prototypes. 1997-05-09 18:37:45 +00:00
gwr 603bda9c4e Use _exit after exec failure (not exit). 1996-11-29 18:50:37 +00:00
gwr d8201fb9f6 Use snprintf instead of sprintf. 1996-11-22 22:04:25 +00:00
gwr 3d5027bee4 Correct lengths used to build environment strings. (Fixes PR#2948) 1996-11-18 18:54:36 +00:00
gwr 9d69345016 Allow the ttyname parameter of ttyaction() to be the full pathname of
the device, because that is what getty and login have handy.  The
"/dev/" part is skipped before scanning the /etc/ttyaction file.
1996-11-14 19:16:01 +00:00
gwr 6ab34f5889 Add ttyaction.3 and ttyaction.c 1996-11-14 17:53:07 +00:00