Commit Graph

16 Commits

Author SHA1 Message Date
mycroft
605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +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
christos
d6f530541f delint 1998-11-13 12:31:50 +00:00
perry
5f05b863b4 trivial changes to quiet lint. 1998-02-27 18:21:19 +00:00
perry
4146d58604 remove obsolete register declarations 1998-02-03 18:23:37 +00:00
fvdl
05ea709dff Fix another getdents() botch. I must've had a Makefile without
warnings on.
1997-10-10 14:31:55 +00:00
fvdl
b57ab4df0f Use getdents(). Read NFS directories in one go (just as union dirs, but
without removing double entries). This makes sure that we get a
consistent snapshot of the directory, and protects against any
'bad cookie' errors.
1997-10-10 02:18:18 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
christos
26cc2d4f50 Fix RCSID's 1997-07-13 19:45:36 +00:00
cgd
2c4d3c4c4a clean up Id's on files previously imported... 1995-02-25 08:50:56 +00:00
mycroft
05fe3ff1f7 Mostly sync with CSRG. 1994-12-28 03:06:05 +00:00
cgd
09349637c8 beware cast type. 1994-10-19 03:13:42 +00:00
jtc
699331c73f Add RCS Id's 1994-07-27 14:39:44 +00:00
jtc
409e85d379 opendir() & friends from 4.4lite. 1994-07-27 05:26:23 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00