Commit Graph

22 Commits

Author SHA1 Message Date
pooka
2fcb6fa0a5 add check for HAVE_USER_FROM_UID 2002-07-03 17:17:35 +00:00
tv
259a2ab95f Add some more bits of host compatibility. 2002-02-26 22:29:38 +00:00
tv
a328e34106 Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
2002-01-29 10:20:28 +00:00
lukem
08aaa6443d reorder the weak_alias stuff into the !HAVE_CONFIG_H section 2002-01-24 06:31:38 +00:00
lukem
6542230523 support reachover compile from tools/compat 2002-01-24 04:07:13 +00:00
lukem
463cd54319 - Implement pwcache_userdb(3), which changes the routines that
user_from_uid(3) and uid_from_user(3) use to lookup user information.
- Implement pwcache_groupdb(3), which changes the routines that
  group_from_gid(3) and gid_from_group(3) use to lookup group information.
- Ensure that private functions in pwcache.c are declared static
- Use strlcpy(3) instead of strncpy(3)
2002-01-24 02:46:32 +00:00
lukem
86301f004f ANSI KNF. remove NET2_STAT cruft 2002-01-04 14:50:29 +00:00
msaitoh
f9b799b651 check LIBC_SCCS 2000-09-13 22:32:25 +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
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
mycroft
3d9372fc29 Simplify this code slightly. 1999-01-19 08:32:34 +00:00
mycroft
f091800e8b Fix a typo in a comment. 1998-07-28 18:13:53 +00:00
mycroft
76428db157 Import the version from pax(1), with a few changes:
* Functions renamed to match libc interface.
* Fixed to actually put entries into the hash tables!
* Different hash function, simpler but with the same distribution.
1998-07-28 16:58:36 +00:00
perry
4146d58604 remove obsolete register declarations 1998-02-03 18:23:37 +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
28af8b8ef8 Fix RCSID's
Parenthesize
1997-07-13 19:17:13 +00:00
sommerfe
f218af3428 Longer login name support: use MAXLOGNAME, not UT_NAMESIZE 1996-12-20 20:16:05 +00:00
jtc
3ba2c075cf #include appropriate header files to bring prototypes into scope 1995-05-13 06:58:18 +00:00
cgd
f9f97c4fab merge with Lite, keeping local changes. Fix up Id format, etc. 1995-02-27 04:34:47 +00:00
jtc
e304028c04 Fix off by one bug in pwcashe routine group_from_gid(). 1994-01-19 21:15:46 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00