Commit Graph

11 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
is 42f95dd899 In case of an error returned by sysctl, and errno=ENOMEM, restore the
old errno and return 0. This makes us complant with SUSV2 and our own
manual page. See PR pr7836 by Simon Burge.
1999-11-18 22:12:53 +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
kleink a01bbaa113 Need an internal name for getdomainname(). 1998-10-13 20:40:29 +00:00
kleink 42feb529b8 For consistency with the {get,set}hostname() change, change the type of
the `namelen' argument to {get,set}domainname() from int to size_t.
1998-05-06 19:53:41 +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
jtc 9c87841ac4 Change return type of {get,set}{domain,host}name() from long to int. 1995-06-16 07:36:03 +00:00
cgd b585e843ca update from Lite, with local changes. fix Ids, etc. 1995-02-27 04:12:15 +00:00
cgd 3580a0da69 domainname stuff 1994-05-07 03:09:19 +00:00