Commit Graph

16 Commits

Author SHA1 Message Date
wiz
f343a3e8ab Use pid_t for pids. From Jeff Ito in PR 24854. 2004-03-29 11:52:39 +00:00
cgd
3e7f7ef82d __CONCAT does token pasting, not string concatnation. if something like:
__CONCAT("PATH=",_PATH_STDPATH);
actually works to concantate strings, it's because the preprocessor expands
it into "PATH=""whatever _PATH_STDPATH is" as separate strings, and then
ANSI string concatenation is performed on that.  It's more straightforward
to just use ANSI string concatenation directly, and newer GCCs complain
(rightly) about mis-use of token pasting.
2000-12-19 23:09:02 +00:00
ad
fce98185a9 - __RCSID() police.
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
2000-07-05 11:46:40 +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
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