Commit Graph

23 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
christos 3eeda4afc6 Fix gcc-2.8.1 warnings. 1999-03-16 18:13:44 +00:00
perry 8205792218 trivial changes to quiet lint. 1998-02-27 18:34:06 +00:00
perry 4146d58604 remove obsolete register declarations 1998-02-03 18:23:37 +00:00
mycroft 5ae3044c2d Make sure the command list is properly terminated when parsing an
octal mode.  From Alasdair Baird in PR 4232.
1997-10-08 17:19:13 +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 1200f6cd80 Fix RCSID's
pacify gcc
1997-07-13 19:18:39 +00:00
christos 50c92675a9 I ``who'' was not specified, set the appropriate bits as the manual page
states. chmod +s foo  and chmod +t . now work.
1997-02-07 22:21:06 +00:00
cgd a1971a18d9 pull in unistd.h, const poisoning 1996-12-20 19:38:57 +00:00
jtc af07dd15d4 Add explict function return types 1996-04-03 19:48:56 +00:00
jtc 7870f9f542 removed unnecessary #include <stddef.h> 1995-03-23 19:51:13 +00:00
cgd ee38224d2e fix up some RCS Id's i botched. 1995-03-04 01:55:49 +00:00
cgd 9060ff0dc7 merge with 4.4-Lite, keeping local changes. clean up Ids 1995-02-27 05:50:11 +00:00
cgd abc6222e32 update based on some work i did for 4.4BSD 1994-03-29 10:50:28 +00:00
cgd f70e42e2ee hopefully last one; more corner cases. Thanks to Mark Weaver for
inspiration, for demanding that i put one of these fixes in, and
for double-checking.
1994-02-11 05:55:45 +00:00
cgd e5b8be437f fix -[ugo] and =[ugo] 1994-02-10 23:42:09 +00:00
cgd 29270058b2 clean up, reorganize, etc. 1994-02-10 23:36:59 +00:00
cgd fdacf1c630 DTRT if op is = 1994-01-04 05:05:36 +00:00
jtc 3f5672d010 Explicitly declare function return types to silence "gcc -Wall". 1993-12-23 23:14:43 +00:00
jtc 9c20f740a3 Declare rcsid strings so they are stored in text segment. 1993-08-26 00:43:03 +00:00
mycroft f23f94cb77 Add even more RCS frobs. 1993-07-30 08:21:41 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00