Commit Graph

17 Commits

Author SHA1 Message Date
itojun 9134efabd0 use strlcpy where it is more appropriate. 2002-11-17 01:51:24 +00:00
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
kleink c46d95a329 The previous assertion change was incorrect: the preg argument is permitted to
be NULL (part of the interface definition!) unless errcode is REG_ATOI, which
is a non-portable extension.

Also, remove assertions from the local regatoi() function, as they are either
redundant or will never fail due to the buffer allocation for that argument in
regerror().
1999-09-17 09:33:34 +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
drochner 285638718a correct a comment, minor formatting 1998-12-08 13:48:06 +00:00
christos 4523c05fa8 Delint:
- we don't need to use longs; convert to use int32_t.
	- remove break statements after returns.
	- cast things properly.
1998-11-14 16:43:49 +00:00
mycroft 392dcacb66 const poisoning. 1998-07-26 12:17:51 +00:00
mycroft 9ad899cc18 constify some tables. 1998-07-26 11:24:14 +00:00
perry c8bafd6265 remove obsolete register declarations 1998-02-03 18:38:12 +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 05e3795ec8 Add braces in initializers.
Fix RCSID's
Remove unused variables
1997-07-13 20:05:37 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
cgd 2c84ad3a41 add unintrusive Ids 1995-02-27 13:22:58 +00:00
cgd 7c6ed81dae clean up import; kill old cruft. 1995-01-30 12:19:13 +00:00
jtc 6931099e77 Update to Henry's Nov 2, 1993 alpha3.2 release. 1993-11-11 02:02:57 +00:00
jtc b90ff8310a Henry Spencer's POSIX.2 compatibile regular expression matching routines. 1993-11-10 23:34:55 +00:00