The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22.8.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:05:19 2012 UTC (2 years, 6 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

sync with head

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 13 21:13:36 2012 UTC (2 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, 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.22: +6 -6 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Thu Jan 29 10:41:39 2009 UTC (5 years, 8 months ago) by enami
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-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache
Changes since 1.21: +9 -6 lines
Diff to previous 1.21 (colored)

Put back rev. 1.20 so that nbpwd_mkdb built on 32bit time_t host generates
correct pwd.db.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 11 02:46:27 2009 UTC (5 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.20: +13 -15 lines
Diff to previous 1.20 (colored)

merge christos-time_t

Revision 1.20.34.1 / (download) - annotate - [select for diffs], Sun Dec 28 01:17:41 2008 UTC (5 years, 9 months ago) by christos
Branch: christos-time_t
Changes since 1.20: +13 -15 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Avoid unconst and use time_t conversions directly.

Revision 1.20 / (download) - annotate - [select for diffs], Tue Feb 1 23:47:38 2005 UTC (9 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, 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, netbsd-5, 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, netbsd-3-base, 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, netbsd-3, mjf-devfs2-base, mjf-devfs2, 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-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, christos-time_t-nbase, christos-time_t-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: christos-time_t
Changes since 1.19: +10 -6 lines
Diff to previous 1.19 (colored)

Avoid passing in the actual pw field in gettime because it might not
be the type that we think it is. Fixes cross builds.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 20 21:53:23 2005 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.18: +4 -3 lines
Diff to previous 1.18 (colored)

change long -> unsigned long

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jan 20 21:11:56 2005 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

remove debugging printf.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jan 19 22:59:24 2005 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.16: +5 -4 lines
Diff to previous 1.16 (colored)

Improve error messages.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 19 22:40:37 2005 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.15: +13 -13 lines
Diff to previous 1.15 (colored)

- fix initialization of dowarn [use before set, thanks luke]
- always initialize flags so that we don't have to check for it.
- use the consistent variable names in functions.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jan 19 19:13:38 2005 UTC (9 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.14: +106 -38 lines
Diff to previous 1.14 (colored)

- test for too long username (from Greg Woods)
- centralize id and time_t parsing, providing better error checking of
  numeric values; previously the code would accept 12foo as an expiration
  or change time.
- fix issue with dereferencing null flags in compat code.
- ansify, KNF

Revision 1.14 / (download) - annotate - [select for diffs], Sat Dec 11 06:41:40 2004 UTC (9 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

fix cast-qual issue.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Oct 27 00:12:42 2003 UTC (11 years ago) by lukem
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.12: +7 -6 lines
Diff to previous 1.12 (colored)

Overhaul how `build.sh tools' are used:

    *	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 7 16:42:55 2003 UTC (11 years, 2 months ago) by agc
Branch: MAIN
Changes since 1.11: +3 -7 lines
Diff to previous 1.11 (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.10.10.2 / (download) - annotate - [select for diffs], Fri Mar 22 20:42:11 2002 UTC (12 years, 7 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.10.10.1: +2 -2 lines
Diff to previous 1.10.10.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

Catch up to -current.

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

Catch up to -current.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 29 10:20:30 2002 UTC (12 years, 8 months ago) by tv
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, nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.10: +9 -2 lines
Diff to previous 1.10 (colored)

Make almost all tools compile and run properly on non-NetBSD hosts.  (In
particular, most tools now run correctly on Solaris 7.)

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 20 04:39:04 1999 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, 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, comdex-fall-1999-base, comdex-fall-1999
Branch point for: nathanw_sa
Changes since 1.9: +2 -6 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Thu Sep 16 11:45:02 1999 UTC (15 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.8: +11 -2 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Fri Nov 13 12:31:50 1998 UTC (15 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

delint

Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 14 21:13:04 1998 UTC (16 years ago) by kleink
Branch: MAIN
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

Kill __LIBUTIL_BUILD in favor of the newly added _LIBC indicator completely;
suggested by Jason Thorpe.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 14 20:08:12 1998 UTC (16 years ago) by kleink
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

Do the internal symbol renaming dance only if inside the libc build environment
so libutil won't be affected; noticed by Alistair Crooks and Allen Briggs.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Oct 13 20:32:10 1998 UTC (16 years ago) by kleink
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Need an internal name for strsep().

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

const poisoning.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jul 26 13:51:44 1998 UTC (16 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +4 -3 lines
Diff to previous 1.2 (colored)

const poisoning.

Revision 1.2 / (download) - annotate - [select for diffs], Sat Jun 27 05:08:23 1998 UTC (16 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +10 -2 lines
Diff to previous 1.1 (colored)

Fix a serious symbol collision problem introduced when pw_scan() was added
to libc.  Note, pw_scan() is NO LONGER exported from libc (it never should
have been, and we're just going to pretend like it never was).

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 8 03:18:00 1998 UTC (16 years, 4 months ago) by lukem
Branch: MAIN

* move pw_scan() from libutil to libc
* add support for YP "master.passwd.by*" (master.passwd in YP, including
  pw_passwd) and "passwd.adjunct.by*" (SunOS `secure' maps (?)), based
  on code in FreeBSD and partially from OpenBSD.
  this is only used if euid == 0.
  with this, the YP "passwd.by*" maps can have `*' in the pw_passwd field.
* use pw_scan() to parse YP "passwd.by*" and "master.passwd.by*" entries

XXX: i didn't test the "passwd.adjunct" support...

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>