History log of /netbsd-src/lib/libc/gen/initgroups.c (Results 1 – 22 of 22)
Revision Date Author Comments
# 9e66e6d7 25-Jun-2012 abs <abs@NetBSD.org>

Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# fa36c878 19-Jan-2003 dsl <dsl@NetBSD.org>

Ignore groups beyond _SC_NGROUPS_MAX (as man page)
Ensure kernel doesn't pick up random numbers (would happen if _SC_NGROUPS_MAX
> NGROUPS)
(change agreed by christos)


# 60549036 22-Jan-2000 mycroft <mycroft@NetBSD.org>

Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.


# d8962612 20-Sep-1999 lukem <lukem@NetBSD.org>

back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.


# b48252f3 16-Sep-1999 lukem <lukem@NetBSD.org>

* 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 attemp

* 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

show more ...


# 3ebdcecd 31-Mar-1999 lukem <lukem@NetBSD.org>

don't use warn() in initgroups(); it's not documented to do that, and
if stderr isn't valid the caller may dump core.
from Giles Lean <giles@nemeton.com.au> in [lib/7273]


# 853e41b3 27-Feb-1998 perry <perry@NetBSD.org>

trivial changes to quiet lint.


# 43fa6fe3 21-Jul-1997 jtc <jtc@NetBSD.org>

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

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>.

show more ...


# 70e0aeb1 13-Jul-1997 christos <christos@NetBSD.org>

Use namespace.h


# 8470989b 04-Jul-1997 kleink <kleink@NetBSD.org>

Common sense dictates that the `basegid' paramater of initgroups(3) should
be of type gid_t, and not int.


# ac1e0f51 03-Jun-1995 mycroft <mycroft@NetBSD.org>

Don't set the rgid or egid. Document this behavior. This is compatible with
SunOS and SysV.


# 19755ba1 02-Jun-1995 mycroft <mycroft@NetBSD.org>

We must do setgid() explicitly now.


# 3ba2c075 13-May-1995 jtc <jtc@NetBSD.org>

#include appropriate header files to bring prototypes into scope


# 2c4d3c4c 25-Feb-1995 cgd <cgd@NetBSD.org>

clean up Id's on files previously imported...


# 3c98cdcd 12-Dec-1994 jtc <jtc@NetBSD.org>

Rework indirect reference support as outlined by my recent message to
the tech-userlevel mailing list.


# 9cc12a55 11-Dec-1994 christos <christos@NetBSD.org>

- Changed all internal libc references of {v,}err{x,} and {v,}warn{x,} to
__{v,}err{x,} and __{v,}warn{x,}
- moved err.c to __err.c and added err.c which contains weak references for
the above fu

- Changed all internal libc references of {v,}err{x,} and {v,}warn{x,} to
__{v,}err{x,} and __{v,}warn{x,}
- moved err.c to __err.c and added err.c which contains weak references for
the above functions.
- Reordered the functions in __err.c to avoid redeclarations and changed
the varargs declarations to conform with the K&R style.

show more ...


# fedcc257 19-Sep-1994 mycroft <mycroft@NetBSD.org>

Update to 4.4-Lite version.


# f67d02e5 30-Mar-1994 cgd <cgd@NetBSD.org>

gid_t is your friend!


# 9c20f740 26-Aug-1993 jtc <jtc@NetBSD.org>

Declare rcsid strings so they are stored in text segment.


# f23f94cb 30-Jul-1993 mycroft <mycroft@NetBSD.org>

Add even more RCS frobs.


# 61f28255 21-Mar-1993 cgd <cgd@NetBSD.org>

initial import of 386bsd-0.1 sources