The NetBSD Project

CVS log for src/lib/libc/gen/getgrent.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.64.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 18:58:46 2012 UTC (23 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.64.2.1: +4 -4 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored)

sync with head

Revision 1.67 / (download) - annotate - [select for diffs], Wed Aug 29 18:50:35 2012 UTC (2 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, agc-symver-base, agc-symver, HEAD
Changes since 1.66: +4 -4 lines
Diff to previous 1.66 (colored)

Check for NULL *before* using ALIGN().

I don't remember what prompted this, but it's obviously a desirable fix
and I've been carrying it on a heavily-used machine for more than a year.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:18 2012 UTC (2 years, 6 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.64: +26 -10 lines
Diff to previous 1.64 (colored)

sync with head

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 29 13:05:10 2012 UTC (2 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4
Changes since 1.65: +24 -8 lines
Diff to previous 1.65 (colored)

PR?40728: W. Stukenbrock: Fix various issues with NIS-netgroups in users
and groups.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Mar 13 21:13:35 2012 UTC (2 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.64: +4 -4 lines
Diff to previous 1.64 (colored)

PR/45989: Martin Husemann: lint invocation does include -w only on i386

- turn lint -w for all the platforms after fixing the lint warnings.
- add _DIAGASSERTS() for casts that would assign values to types that
  would not fit.
- change types, add casts
- change into ansii prototypes
- turn on _DIAGNOSTIC for libc (during current, to be eliminated for release
  builds)

approved by core@

Revision 1.64 / (download) - annotate - [select for diffs], Sat Oct 15 23:00:01 2011 UTC (3 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.63: +4 -4 lines
Diff to previous 1.63 (colored)

close on exec fixes:
- open + fcntl -> open O_CLOEXEC
- configuration database file descriptors that can stay open are now opened
  fopen(db, "re")

Revision 1.62.22.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:18:36 2011 UTC (3 years, 3 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.62: +5 -2 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.62.6.1 / (download) - annotate - [select for diffs], Sat Jun 18 17:20:31 2011 UTC (3 years, 4 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Changes since 1.62: +5 -2 lines
Diff to previous 1.62 (colored) next main 1.63 (colored)

Pull up following revision(s) (requested by sjg in ticket #1636):
	lib/libc/gen/getgrent.c: revision 1.63
_gr_copy() can get called with fromgrp->gr_mem == NULL.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Jun 9 05:11:17 2011 UTC (3 years, 4 months ago) by sjg
Branch: MAIN
Changes since 1.62: +5 -2 lines
Diff to previous 1.62 (colored)

_gr_copy() can get called with fromgrp->gr_mem == NULL.

Revision 1.61.10.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:15 2008 UTC (6 years, 5 months ago) by yamt
Branch: yamt-pf42
Changes since 1.61: +2 -9 lines
Diff to previous 1.61 (colored) next main 1.62 (colored)

sync with head.

Revision 1.62.8.2 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:00 2008 UTC (6 years, 5 months ago) by martin
Branch: christos-time_t
Changes since 1.62.8.1: +1935 -0 lines
Diff to previous 1.62.8.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.62.8.1, Mon Apr 28 20:22:59 2008 UTC (6 years, 5 months ago) by martin
Branch: christos-time_t
Changes since 1.62: +0 -1935 lines
FILE REMOVED

file getgrent.c was added on branch christos-time_t on 2008-04-28 20:23:00 +0000

Revision 1.62 / (download) - annotate - [select for diffs], Mon Apr 28 20:22:59 2008 UTC (6 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-premerge-20091211, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, christos-time_t-nbase, christos-time_t-base, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: netbsd-5, christos-time_t, cherry-xenmp
Changes since 1.61: +2 -9 lines
Diff to previous 1.61 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.61 / (download) - annotate - [select for diffs], Sat Feb 3 16:12:47 2007 UTC (7 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.60: +4 -3 lines
Diff to previous 1.60 (colored)

make this compile with DIAGNOSTIC

Revision 1.60 / (download) - annotate - [select for diffs], Sun Oct 15 16:14:46 2006 UTC (8 years ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4
Changes since 1.59: +17 -17 lines
Diff to previous 1.59 (colored)

fix incomplete initializers

Revision 1.59 / (download) - annotate - [select for diffs], Sun Mar 19 03:08:11 2006 UTC (8 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.58: +2 -4 lines
Diff to previous 1.58 (colored)

iCoverity CID 706: Remove dead code.

Revision 1.54.2.4 / (download) - annotate - [select for diffs], Mon Jul 11 21:27:00 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, 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-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.54.2.3: +24 -16 lines
Diff to previous 1.54.2.3 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Pull up revision 1.58 (requested by lukem in ticket #540):
When sequentially parsing a source looking for entries don't fail with
NS_UNAVAIL on an unparseable or too long line; instead try the next entry.
This is more consistent with the behaviour prior to the rework in rev 1.49.

Revision 1.54.2.3 / (download) - annotate - [select for diffs], Mon Jul 11 21:25:27 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.54.2.2: +32 -12 lines
Diff to previous 1.54.2.2 (colored) to branchpoint 1.54 (colored)

Pull up revision 1.57 (requested by lukem in ticket #540):
getgrent():
Return the correct result. (broken in rev 1.56 -- Hi Christos!)
getgr{ent,nam,uid}_r():
Return 0 "entry not found" and errno for other failures.
("entry not found" still sets *result to NULL).
Various backends:
don't set the retval to errno (or modify errno) for NS_NOTFOUND.
Per discussion with Klaus Klein.

Revision 1.54.2.2 / (download) - annotate - [select for diffs], Mon Jul 11 21:22:33 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.54.2.1: +134 -8 lines
Diff to previous 1.54.2.1 (colored) to branchpoint 1.54 (colored)

Pull up revision 1.56 (requested by lukem in ticket #540):
PR/29849, PR/29850: Add getpwent_r and getgrent_r

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Mon Jul 11 21:21:47 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Pull up revision 1.55 (requested by lukem in ticket #540):
tweak comment reminding us about lack of reentrancy

Revision 1.58 / (download) - annotate - [select for diffs], Tue Apr 19 05:27:58 2005 UTC (9 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.57: +24 -16 lines
Diff to previous 1.57 (colored)

When sequentially parsing a source looking for entries don't fail with
NS_UNAVAIL on an unparseable or too long line; instead try the next entry.
This is more consistent with the behaviour prior to the rework in rev 1.49.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Apr 19 03:00:12 2005 UTC (9 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.56: +32 -12 lines
Diff to previous 1.56 (colored)

getgrent():
Return the correct result. (broken in rev 1.56 -- Hi Christos!)

getgr{ent,nam,uid}_r():
Return 0 "entry not found" and errno for other failures.
("entry not found" still sets *result to NULL).

Various backends:
don't set the retval to errno (or modify errno) for NS_NOTFOUND.

Per discussion with Klaus Klein.

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 2 04:53:53 2005 UTC (9 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.55: +134 -8 lines
Diff to previous 1.55 (colored)

PR/29849, PR/29850: Add getpwent_r and getgrent_r

Revision 1.55 / (download) - annotate - [select for diffs], Thu Mar 31 23:58:28 2005 UTC (9 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

tweak comment reminding us about lack of reentrancy

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 6 15:00:45 2005 UTC (9 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.53: +319 -371 lines
Diff to previous 1.53 (colored)

Rename various "internal" variables and functions and make non-static so other
internal libc source files can use these (including getgroupmembership(3)).

Be more consistent in the API that the __grscan_<source>() methods use.

In __grscan_compat() support an optional custom 'search' function used when a
"+" lookup is required.  Normally this will be getgrent() from group_compat,
but getgroupmembership(3) will use a tailored compat search routine for
efficiency.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Nov 10 12:57:32 2004 UTC (9 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.52: +21 -38 lines
Diff to previous 1.52 (colored)

Use the common __nsdefaultFOO rather than private defaultFOO duplicates.

Revision 1.52 / (download) - annotate - [select for diffs], Wed Nov 10 06:10:03 2004 UTC (9 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.51: +8 -10 lines
Diff to previous 1.51 (colored)

Use _GETGR_R_SIZE_MAX from <limits.h> rather than defining a private version.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Oct 29 06:32:08 2004 UTC (9 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.50: +3 -4 lines
Diff to previous 1.50 (colored)

#include "reentrant.h" instead of <threadlib.h>

Revision 1.50 / (download) - annotate - [select for diffs], Sun Oct 24 14:52:46 2004 UTC (9 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.49: +24 -3 lines
Diff to previous 1.49 (colored)

Protect access to all public functions via a mutex as some of the backends are
not reentrant (such as compat getgr*_r, because it uses the non reentrant
_{dns,nis}_getgrent() backends to implement `+group').

Revision 1.49 / (download) - annotate - [select for diffs], Mon Oct 4 04:11:33 2004 UTC (10 years ago) by lukem
Branch: MAIN
Changes since 1.48: +1590 -528 lines
Diff to previous 1.48 (colored)

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

Revision 1.48 / (download) - annotate - [select for diffs], Mon Oct 13 15:36:33 2003 UTC (11 years ago) by agc
Branch: MAIN
CVS Tags: netbsd-2-base, 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-1, netbsd-2-0-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-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.47: +10 -17 lines
Diff to previous 1.47 (colored)

Move Jason Downs's code from a 4-clause to a 3-clause licence by
removing the advertising clause.  Diffs provided in PR 22410 by Joel
Baker, confirmed to the board by Jason Downs.

With additional thanks to Jason Thorpe.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Aug 7 16:42:49 2003 UTC (11 years, 2 months ago) by agc
Branch: MAIN
Changes since 1.46: +29 -2 lines
Diff to previous 1.46 (colored)

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

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

Revision 1.46 / (download) - annotate - [select for diffs], Mon Feb 17 00:11:54 2003 UTC (11 years, 8 months ago) by simonb
Branch: MAIN
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Fix a tyop in a comment.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Feb 16 01:22:44 2003 UTC (11 years, 8 months ago) by elric
Branch: MAIN
Changes since 1.44: +149 -21 lines
Diff to previous 1.44 (colored)

Reorganise the getting of grouplists for a user so that Hesiod (and
potentially other name services) can directly query for a user's
grouplist rather than needing to iterate over the group map.  This
is required for correct operation of Hesiod.

Reviewed by: lukem, christos
Addresses PR lib/20183

Revision 1.44 / (download) - annotate - [select for diffs], Mon Feb 3 04:22:20 2003 UTC (11 years, 8 months ago) by elric
Branch: MAIN
Changes since 1.43: +10 -3 lines
Diff to previous 1.43 (colored)

When looking up gids with hesiod, use the gid map and fall back to the
group map.

Addresses PR lib/20145

Revision 1.40.2.4 / (download) - annotate - [select for diffs], Tue Dec 10 06:25:48 2002 UTC (11 years, 10 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.40.2.3: +7 -12 lines
Diff to previous 1.40.2.3 (colored) next main 1.41 (colored)

Sync with HEAD.

Revision 1.43 / (download) - annotate - [select for diffs], Sun Nov 17 01:51:24 2002 UTC (11 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.42: +7 -12 lines
Diff to previous 1.42 (colored)

use strlcpy where it is more appropriate.

Revision 1.40.2.3 / (download) - annotate - [select for diffs], Fri Mar 22 20:42:07 2002 UTC (12 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.2: +2 -2 lines
Diff to previous 1.40.2.2 (colored)

Catch up to -current.

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Fri Mar 8 21:35:05 2002 UTC (12 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40.2.1: +15 -15 lines
Diff to previous 1.40.2.1 (colored)

Catch up to -current.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Feb 2 15:21:29 2002 UTC (12 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.41: +15 -15 lines
Diff to previous 1.41 (colored)

be consistent with internal names: s/start_gr/grstart/ ; s/matchline/gr&/

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Mon Jan 28 20:50:32 2002 UTC (12 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.40: +39 -64 lines
Diff to previous 1.40 (colored)

Catch up to -current.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Jan 12 23:51:30 2002 UTC (12 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.40: +39 -64 lines
Diff to previous 1.40 (colored)

ansi knf

Revision 1.40 / (download) - annotate - [select for diffs], Sun Dec 17 22:09:12 2000 UTC (13 years, 10 months ago) by lukem
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored)

fix typo in _nis_grscan(). "if (data); free(data);" -> "if (data) free(data);"
noted by Jacques Vidrine <nectar@FreeBSD.org>

Revision 1.39 / (download) - annotate - [select for diffs], Sat Jan 22 22:19:10 2000 UTC (14 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Changes since 1.38: +8 -8 lines
Diff to previous 1.38 (colored)

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

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 20 04:39:00 1999 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.37: +2 -6 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (download) - annotate - [select for diffs], Thu Sep 16 11:44:58 1999 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.36: +17 -2 lines
Diff to previous 1.36 (colored)

* 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

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Tue Apr 27 14:10:58 1999 UTC (15 years, 5 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.34: +37 -36 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

pullup 1.35->1.36 (lukem)

Revision 1.36 / (download) - annotate - [select for diffs], Sun Apr 25 13:39:41 1999 UTC (15 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.35: +37 -36 lines
Diff to previous 1.35 (colored)

change getgrent() backends so that a flag (per source) is set once the
source has been exhausted. this allows getgrent() across multiple
sources (e.g, ``group: files nis'') to work correctly. the flags are
reset in setgrent()/endgrent().

(as per similar change in getpwent.c rev 1.42)

XXX: this change means that code that uses getgrent() to obtain a list
of groups will have to do duplicate suppression... getgrouplist()
springs to mind; i'm about to modify that

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 18 02:04:04 1999 UTC (15 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.34: +8 -2 lines
Diff to previous 1.34 (colored)

specifically include stdarg/varargs.h

Revision 1.34 / (download) - annotate - [select for diffs], Tue Jan 26 01:08:06 1999 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.33: +27 -10 lines
Diff to previous 1.33 (colored)

always compile in support for `compat' backends (even if !YP & !HESIOD),
and make it the responsibility of the backends to fallback to `files'
if !YP & !HESIOD. fixes chsh problem noted by billc@netbsd.org.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 25 01:09:34 1999 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.32: +28 -18 lines
Diff to previous 1.32 (colored)

convert from hes_*() -> hesiod_*()

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jan 20 02:59:37 1999 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.31: +12 -4 lines
Diff to previous 1.31 (colored)

nsdispatch defaults now: "group: compat", "group_compat: nis"

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jan 19 08:30:46 1999 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jan 19 08:07:58 1999 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.29: +14 -12 lines
Diff to previous 1.29 (colored)

convert to new nsdispatch(3)

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 18 20:37:13 1999 UTC (15 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.28: +8 -2 lines
Diff to previous 1.28 (colored)

delint

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jan 16 14:44:33 1999 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.27: +5 -4 lines
Diff to previous 1.27 (colored)

fix some gid casts

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jan 16 07:47:18 1999 UTC (15 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.26: +422 -218 lines
Diff to previous 1.26 (colored)

pull nsswitch up to main branch

Revision 1.19.2.5 / (download) - annotate - [select for diffs], Thu Jan 14 07:02:16 1999 UTC (15 years, 9 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.19.2.4: +16 -19 lines
Diff to previous 1.19.2.4 (colored) next main 1.20 (colored)

use new ns_dtab structure

Revision 1.19.2.4 / (download) - annotate - [select for diffs], Mon Nov 2 03:33:13 1998 UTC (15 years, 11 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.19.2.3: +35 -9 lines
Diff to previous 1.19.2.3 (colored)

sync with current

Revision 1.26 / (download) - annotate - [select for diffs], Wed Aug 26 00:38:40 1998 UTC (16 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.25: +5 -5 lines
Diff to previous 1.25 (colored)

fix bcopy->memcpy with memcpy->memmove -- not strictly needed, but...

Revision 1.25 / (download) - annotate - [select for diffs], Mon Aug 10 02:43:09 1998 UTC (16 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jul 27 09:47:44 1998 UTC (16 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Make these compile without __AUDIT__.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Jul 26 19:05:07 1998 UTC (16 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

const poisoning.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Feb 26 03:01:12 1998 UTC (16 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.21: +10 -8 lines
Diff to previous 1.21 (colored)

trivial changes to reduce lint complaints

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 21 14:07:05 1997 UTC (17 years, 3 months ago) by jtc
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.20: +12 -2 lines
Diff to previous 1.20 (colored)

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

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jul 13 19:01:22 1997 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.19: +9 -4 lines
Diff to previous 1.19 (colored)

Add missing prototypes
Fix RCSID's
Fix gcc warnings

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Mon Jun 2 04:57:37 1997 UTC (17 years, 4 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.19.2.2: +71 -57 lines
Diff to previous 1.19.2.2 (colored)

* during getgrent(), set _gr_none = 1 and return NS_SUCCESS upon EOF.
  this prevents the sources being "merged" by default, which caused
  problems with getgrouplist() and NIS
* use gid_t instead of int in the appropriate locations
* minor formatting fixes

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Mon May 26 16:33:32 1997 UTC (17 years, 4 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.19.2.1: +14 -10 lines
Diff to previous 1.19.2.1 (colored)

only initialise ns_dtab if it hasn't been done yet

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Sat May 24 04:50:54 1997 UTC (17 years, 5 months ago) by lukem
Branch: lukem-nsswitch2
Changes since 1.19: +383 -203 lines
Diff to previous 1.19 (colored)

convert to use nsdispatch()

Revision 1.19 / (download) - annotate - [select for diffs], Thu May 22 10:38:07 1997 UTC (17 years, 5 months ago) by lukem
Branch: MAIN
Branch point for: lukem-nsswitch2
Changes since 1.18: +4 -4 lines
Diff to previous 1.18 (colored)

a valid uid/gid *ends* in \0 (i.e, barf if (*ep != '\0'), not if (*ep == '\0'))

Revision 1.18 / (download) - annotate - [select for diffs], Thu May 22 03:24:37 1997 UTC (17 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.17: +20 -8 lines
Diff to previous 1.17 (colored)

* parse gid with strtoul() instead of atoi(), and sanity check a) the parsed
  value was just a number, b) it doesn't exceed GID_MAX
* convert gid to a string with %u not %d
* use [gu]id_t instead of int

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 21 01:51:39 1997 UTC (17 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.16: +7 -3 lines
Diff to previous 1.16 (colored)

fix potential memory leaks: before calling yp_next(), reset key to NULL. if
an error occurred, and key != NULL, free(key).

Revision 1.16 / (download) - annotate - [select for diffs], Tue May 20 15:46:03 1997 UTC (17 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.15: +46 -40 lines
Diff to previous 1.15 (colored)

* ensure that "outdata" values to various yp_xxx() functions are set
  to the null pointer before invocation, so that the test in the
  error case of "if (outdata != NULL) free(outdata)" won't potentially
  try and free memory that wasn't malloc()ed.
* factor some duplicated code out of both parts of an "if {} else {}"
  construct.
* remove use of `register' & KNFify.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 22 01:21:06 1997 UTC (17 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +43 -8 lines
Diff to previous 1.14 (colored)

Don't transfer the entire YP database using yp_{first,next}(); instead
use yp_match(), which is much more efficient.

From Michael.Eriksson@era-t.ericsson.se, PR #3114.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Dec 20 19:38:16 1996 UTC (17 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

grscan()'s last arg has to be a const char *, not just a char *

Revision 1.13.8.1 / (download) - annotate - [select for diffs], Wed Nov 6 00:48:35 1996 UTC (17 years, 11 months ago) by lukem
Branch: nsswitch
Changes since 1.13: +371 -148 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

initial nsswitch implementation

Revision 1.13.4.1 / (download) - annotate - [select for diffs], Thu Sep 19 20:02:44 1996 UTC (18 years, 1 month ago) by jtc
Branch: ivory_soap2
Changes since 1.13: +12 -2 lines
Diff to previous 1.13 (colored) next main 1.14 (colored)

snapshot namespace cleanup: gen

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 28 05:43:57 1995 UTC (19 years, 2 months ago) by phil
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Branch point for: nsswitch, ivory_soap2
Changes since 1.12: +77 -74 lines
Diff to previous 1.12 (colored)

Improvements to YP support from Jason Downs.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 16 11:48:01 1995 UTC (19 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.11: +42 -5 lines
Diff to previous 1.11 (colored)

Speed up getgrnam() and getgrpid() by using yp_match().

Revision 1.11 / (download) - annotate - [select for diffs], Mon Feb 27 04:12:39 1995 UTC (19 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.10: +9 -4 lines
Diff to previous 1.10 (colored)

update from Lite, with local changes.  fix Ids, etc.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sat Feb 25 09:11:47 1995 UTC (19 years, 7 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1
Changes since 1.1.1.1: +19 -7 lines
Diff to previous 1.1.1.1 (colored)

from lite, with minor name rearrangement to fit.

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Wed Aug 3 03:42:40 1994 UTC (20 years, 2 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.8.2.1: +2 -2 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

from trunk.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Aug 2 05:15:25 1994 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: ivory_soap
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

be lenient; let a few other forms of + activate YP

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Aug 1 17:40:50 1994 UTC (20 years, 2 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

from trunk

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jul 29 18:54:17 1994 UTC (20 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

avoid core dump

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 7 00:58:10 1994 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.7: +17 -9 lines
Diff to previous 1.7 (colored)

better, more forgiving solution to previous problem.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 6 09:04:11 1994 UTC (20 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +17 -1 lines
Diff to previous 1.6 (colored)

fix small obscure YP buglet, and properly terminate gr_mem

Revision 1.6 / (download) - annotate - [select for diffs], Wed Nov 24 19:43:54 1993 UTC (20 years, 11 months ago) by jtc
Branch: MAIN
Changes since 1.5: +2 -3 lines
Diff to previous 1.5 (colored)

Change C library functions to use strchr() and strrchr() instead of index()
and rindex().  This will allow (strict {ANSI, POSIX, XOPEN}) applications
to redefine index() and rindex() without effecting the library internals.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 25 23:36:53 1993 UTC (21 years ago) by jtc
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Update source and manual pages to match X/Open 1170 specification.
Updated setpassent() to understand YP (a bug), and changed setpwent()
to simply be a call to setpassent(0) (to remove duplicated code).

Revision 1.4 / (download) - annotate - [select for diffs], Thu Aug 26 00:44:37 1993 UTC (21 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Declare rcsid strings so they are stored in text segment.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jul 30 08:22:26 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

Add even more RCS frobs.

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 4 05:10:47 1993 UTC (21 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +75 -2 lines
Diff to previous 1.1 (colored)

I was horrified to find these had not been commited with the YP changes.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (21 years, 7 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (21 years, 7 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>