History log of /netbsd-current/lib/libc/gen/getnetgrent.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.43 31-May-2016 dholland

PR 51002 David Binderman: fix wrong printing code not enabled by default.


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base yamt-pagecache-base5 yamt-pagecache-base4
# 1.42 20-Mar-2012 matt

Use C89 definitions.
Remove use of __P


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
# 1.41 21-Oct-2009 snj

branches: 1.41.6;
Remove 3rd and 4th clauses in christos' license. OK christos.


Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 christos-time_t-nbase christos-time_t-base netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-baseX yamt-pf42-base2 wrstuden-revivesa-base yamt-pf42-base
# 1.40 05-Apr-2008 rtr

branches: 1.40.10;
whitespace fix


Revision tags: keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
# 1.39 07-Feb-2007 oster

Add "local" versions of getnetgrent() et al. and now call those for the NIS
versions. Fix conditional compilation issues with YP and NSS_FILES.


# 1.38 06-Feb-2007 oster

nsdispatch()-ify getnetgrent() and friends.

Approved by: christos


Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base netbsd-4-base
# 1.37 15-Oct-2006 christos

fix incomplete initializers


Revision tags: abandoned-netbsd-4-base
# 1.36 03-Aug-2006 tron

Remove leftover debugging message. Problem pointed out by Kurt Schreiner
on "current-users" mailing list.


# 1.35 27-Jul-2006 dogcow

back out last change as it is actually a visible function.


# 1.34 27-Jul-2006 dogcow

define _ng_cycle to be static, so gcc won't whing about its implicit decl.


# 1.33 27-Jul-2006 christos

move include of StringList.h before netgroup.h


# 1.32 27-Jul-2006 christos

add an _ng_cycle function to print the list of netgroups that are are dups.


# 1.31 19-Mar-2006 christos

Coverity 2278: Avoid leak on allocation failure.


# 1.30 25-Jul-2005 christos

PR/30832: Tomas Sk�re: Freed memory used in lib/libc/getnetgrent.c
While there, KNF and ansify.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-3-base netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base nathanw_sa_before_merge fvdl_fs64_base nathanw_sa_base
# 1.29 26-May-2002 wiz

__STDC__ is always defined on NetBSD.


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base minoura-xpg4dl-base
# 1.28 22-Jan-2000 mycroft

branches: 1.28.6;
Delint.


# 1.27 22-Jan-2000 mycroft

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


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
# 1.26 28-Nov-1999 lukem

* check the result of sl_init() and sl_add()
* return an error state back up the call chain and take appropriate
action, rather than calling err() to terminate the process


Revision tags: comdex-fall-1999-base
# 1.25 20-Sep-1999 lukem

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


# 1.24 16-Sep-1999 lukem

* 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


# 1.23 18-Apr-1999 lukem

specifically include stdarg/varargs.h


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.22 22-Jan-1999 lukem

pre nsswitch default was more like "files [notfound=return] nis"


# 1.21 21-Jan-1999 thorpej

Fix two problems with the recent nsswitch changes to netgroups:
- The historic mode for netgroups was "files nis". Change the default to
this for when /etc/nsswitch.conf does not exist.
- The nis lookup dispatch was mistakenly conditional on -DHESIOD, not -DYP.


# 1.20 19-Jan-1999 lukem

* `passwd' defaults to `compat', and `passwd_compat' defaults to `nis'
* constify ns_dtab defs


# 1.19 19-Jan-1999 lukem

convert to new nsdispatch(3)


# 1.18 18-Jan-1999 christos

delint


# 1.17 16-Jan-1999 lukem

pull nsswitch up to main branch


# 1.16 27-Jul-1998 mycroft

Make these compile without __AUDIT__.


# 1.15 26-Jul-1998 mycroft

const poisoning.


# 1.14 26-Feb-1998 perry

trivial changes to reduce lint complaints


Revision tags: netbsd-1-3-PATCH003 netbsd-1-3-PATCH003-CANDIDATE2 netbsd-1-3-PATCH003-CANDIDATE1 netbsd-1-3-PATCH003-CANDIDATE0 netbsd-1-3-PATCH002 netbsd-1-3-PATCH001 netbsd-1-3-RELEASE netbsd-1-3-BETA netbsd-1-3-base
# 1.13 21-Jul-1997 jtc

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


# 1.12 13-Jul-1997 christos

Fix RCSID's
Use namespace.h


# 1.11 17-Jan-1997 lukem

branches: 1.11.2;
Add stringlist implementation
Convert getnetgrent from private stringlist to public version


# 1.10 20-Dec-1996 cgd

ifdef YP, needs rpcsvc/ypclnt.h for protos


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base
# 1.9 27-Apr-1996 christos

branches: 1.9.2; 1.9.6;
- grab prototypes from netgroup.h
- added _ng_print, netgroup pretty printing function


Revision tags: netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.8 25-Feb-1995 cgd

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


# 1.7 12-Dec-1994 jtc

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


# 1.6 12-Dec-1994 christos

Return null for empty strings in triplets, not the empty string.
Fix memory corruption with double-freeing ng_copy. (From Jason Downs)


# 1.5 11-Dec-1994 christos

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


# 1.4 04-Dec-1994 christos

New netgroup implementation; replaces Rick's old one that did not
expand recursively or handle YP.


# 1.3 19-Oct-1994 cgd

needs stdlib.h


# 1.2 19-Sep-1994 mycroft

Fix null pointer dereference, per Rolf Grossman.


# 1.1 17-May-1994 mycroft

branches: 1.1.1;
Initial revision