Commit Graph

21 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
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
fvdl 1ed7a0186a Check for both the filesystem name and the filesystem flags to determine
whether a directory is a union mount, and thus needs to have double
entries filtered out.
1997-02-25 13:16:39 +00:00
cgd c97004a9b9 string.h for prototypes 1996-12-20 20:44:55 +00:00
cgd 3d113b326b don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated 1995-06-18 10:58:06 +00:00
jtc a646349d2b Open with O_NONBLOCK, in case someone tries to open a blocking device
or a non-open fifo instead of a directory.
1995-06-12 19:38:02 +00:00
cgd 2c4d3c4c4a clean up Id's on files previously imported... 1995-02-25 08:50:56 +00:00
mycroft 31146ca7e8 Format police, and a small patch for 64-bitness. 1994-12-28 03:34:37 +00:00
mycroft 0121eacdc1 Repair a couple of things. 1994-12-28 03:22:37 +00:00
mycroft 05fe3ff1f7 Mostly sync with CSRG. 1994-12-28 03:06:05 +00:00
pk 07dce62879 Use getpagesize() in stead of CLBYTES. 1994-09-15 10:48:51 +00:00
jtc 699331c73f Add RCS Id's 1994-07-27 14:39:44 +00:00
jtc b0cd982f44 Return NULL and set errno to ENOTDIR if opening a non-directory (POSIX.1,
Section 5.1.2.4).  Rename _seekdir to __seekdir, as former is in the
user's namespace.
1994-07-27 14:37:39 +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