Home | History | Annotate | Download | only in include
History log of /src/include/grp.h
RevisionDateAuthorComments
 1.24  19-Oct-2007  christos kill _NETBSD_TOOLS.
 1.23  18-Oct-2007  christos Introduce _NETBSD_TOOLS for symbols the are needed in tools build
 1.22  24-May-2005  kleink branches: 1.22.10;
Make namespace protection feature tests for reentrant functions more
accurate (and actually less restrictive).
 1.21  02-Apr-2005  christos Add getpwent_r, getgrent_r
 1.20  03-Feb-2005  perry branches: 1.20.2;
de-__P -- the hack is long since useless. Discussed with christos,
matt, kleink, others. Approved by christos.
 1.19  04-Oct-2004  lukem Overhaul the use of nsdispatch(3) by public APIs so that the back-end
methods use va_list in a manner that is directly related to the public API.
This makes it much easier to write dynamic nsswitch backends for getgrent(3).
Per my proposal on tech-userlevel.

Implement getgrgid_r() and getgrnam_r() APIs per the POSIX 1003.1, 2004 Ed.
These aren't fully reentrant or threadsafe yet, because the compat stuff
currently uses non-reentrant data sources (getnetgrent(3), getgrent(3)),
and there is probably some locking to be improved in the backends.
This will be fixed in the near future.
We also need to add _SC_GETGR_R_SIZE_MAX to sysconf(3).
 1.18  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22270, verified by myself.
 1.17  28-Apr-2003  bjh21 Add a new feature-test macro, _NETBSD_SOURCE. If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
!defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them. In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.
 1.16  27-Jan-2002  lukem public prototypes should use __P(); fix entries for pwcache_{user,group}db()
 1.15  24-Jan-2002  lukem - 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)
 1.14  28-Jul-1998  mycroft branches: 1.14.12;
Add gid_from_group() and uid_from_user().
 1.13  27-Jul-1998  mycroft Mark more functions returning internal buffers for const auditing.
 1.12  27-Jul-1998  mycroft Make many of the new consts dependent on a new `__AUDIT__' flag, to avoid
breaking third party software. *sigh*
 1.11  26-Jul-1998  mycroft const poisoning.
 1.10  22-Jun-1998  msaitoh pid/gid is not int but pid_t/gid_t (u_int32_t (unsigned!)).
 1.9  06-May-1998  kleink Reorganize name space protection.
 1.8  11-Jun-1996  jtc POSIX.1 requires programs to include <sys/types.h> before including
<grp.h> or <utime.h> while XPG4.2 makes <sys/types.h> optional. So
I've included <sys/types.h> to provide the XPG4.2 behavior.
 1.7  29-Apr-1995  cgd provide group_from_gid() proto if not _POSIX_SOURCE and not _XOPEN_SOURCE
 1.6  26-Oct-1994  cgd new RCS ID format.
 1.5  16-May-1994  cgd add back jtc's _XOPEN_SOURCE changes, return type of setgrent back to void
 1.4  16-May-1994  cgd update all but ctype.h, dumprestore.h, time.h to 4.4-Lite versions.
USL copyright additions on those. Kill varargs.h, because it can simply
be a link to the machine-dependent version.
 1.3  25-Oct-1993  jtc X/Open 1170 defines the return type of setgrent() to be void -- a trival
change since our setgrent() allways succeeded.
Removed prototype for obsolete function setgrfile(), added prototype for
setgroupent().
Added _XOPEN_SOURCE to conditionals in case someone wants to compile
something in an strict X/Open environment.
 1.2  01-Aug-1993  mycroft Add RCS identifiers.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  02-Feb-1998  perry import lite-2
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.14.12.1  28-Jan-2002  nathanw Catch up to -current.
 1.20.2.2  11-Jul-2005  tron Pull up revision 1.21 (requested by lukem in ticket #541):
Add getpwent_r, getgrent_r
 1.20.2.1  28-May-2005  tron Pull up revision 1.22 (requested by kleink in ticket #345):
Make namespace protection feature tests for reentrant functions more
accurate (and actually less restrictive).
 1.22.10.1  06-Nov-2007  matt sync with HEAD

RSS XML Feed