Commit Graph

15 Commits

Author SHA1 Message Date
wiz 3eb0e0c1cf De-lint. Reviewed by christos. 2001-02-08 18:10:02 +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
wrstuden b75289e7bc 'c' is only used #ifndef BZERO so wrap its declaration accordingly. 1998-08-09 22:48:11 +00:00
cgd 4da39bc7c1 limits.h if user-land, machine/limits.h if kernel or standalone 1998-03-27 05:34:15 +00:00
cgd 372e996fc3 when deciding whether to use standard system include files or libkern.h,
check _STANDALONE as well as _KERNEL.  _KERNEL is incorrect for use when
building boot blocks, and it looks like the rest of the code is already
using _STANDALONE for this purpose.
1998-03-26 23:53:36 +00:00
thorpej 59b2a29cc7 Cast pointers to u_long before masking them, not int. 1998-02-04 09:01:44 +00:00
perry 741740203c remove obsolete register declarations 1998-02-03 18:49:08 +00:00
perry 5f8a6c06f3 update to lite-2 1998-01-30 23:37:40 +00:00
christos 3d2267c88c Fix RCSID's
Use "extern.h" where appropriate.
1997-07-13 20:24:09 +00:00
jtc 4063ad5adb #ifdef _KERNEL, #include <lib/libkern/libkern.h> instead of <string.h>. 1996-08-15 22:45:17 +00:00
jtc 752ff8fb6c don't include <sys/cdefs.h>, it's a 'private' header 1995-06-15 00:07:11 +00:00
jtc 9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00