head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.56 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.54 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.52 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.50 pkgsrc-2011Q2-base:1.3 TNF:1.1.1 pkgsrc-2009Q4:1.3.0.48 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.46 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.44 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.42 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.40 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.38 cwrapper-base:1.3 pkgsrc-2008Q1:1.3.0.36 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.34 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.32 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.30 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.28 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.26 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.24 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.22 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.20 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.18 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.3.0.16 pkgsrc-2005Q3-base:1.3 pkgsrc-2005Q2:1.3.0.14 pkgsrc-2005Q2-base:1.3 pkgsrc-2005Q1:1.3.0.12 pkgsrc-2005Q1-base:1.3 pkgsrc-2004Q4:1.3.0.10 pkgsrc-2004Q4-base:1.3 pkgsrc-2004Q3:1.3.0.8 pkgsrc-2004Q3-base:1.3 pkgsrc-2004Q2:1.3.0.6 pkgsrc-2004Q2-base:1.3 pkgsrc-2004Q1:1.3.0.4 pkgsrc-2004Q1-base:1.3 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3 netbsd-1-6-1:1.2.0.6 netbsd-1-6-1-base:1.2 netbsd-1-6:1.2.0.8 netbsd-1-6-RELEASE-base:1.2 pkgviews:1.2.0.4 pkgviews-base:1.2 buildlink2:1.2.0.2 buildlink2-base:1.2 netbsd-1-5-PATCH003:1.2 netbsd-1-5-PATCH001:1.2 netbsd-1-5-RELEASE:1.2 netbsd-1-4-PATCH003:1.2 netbsd-1-4-PATCH002:1.2 comdex-fall-1999:1.2 netbsd-1-4-PATCH001:1.2 netbsd-1-4-RELEASE:1.2 pkgsrc-base:1.1.1.1; locks; strict; comment @# @; 1.3 date 2003.06.23.11.50.04; author grant; state dead; branches; next 1.2; 1.2 date 99.04.23.13.47.44; author hubertf; state Exp; branches; next 1.1; 1.1 date 99.04.23.13.33.02; author hubertf; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.04.23.13.33.02; author hubertf; state Exp; branches; next ; desc @@ 1.3 log @remove old pax package (moved to archivers/pax). @ text @$NetBSD: patch-ab,v 1.2 1999/04/23 13:47:44 hubertf Exp $ --- ../pwcache.c Fri Apr 23 15:46:31 1999 +++ pwcache.c Fri Apr 23 15:54:27 1999 @@@@ -46,7 +46,7 @@@@ #endif #endif /* not lint */ -#include "namespace.h" +/* #include "namespace.h" *//*HF*/ #include #include @@@@ -79,12 +79,13 @@@@ static UIDC **usrtb = NULL; /* user name to uid cache */ static GIDC **grptb = NULL; /* group name to gid cache */ -static u_int st_hash __P((const char *, size_t, int)); +/* static u_int st_hash __P((const char *, size_t, int)); *//*HF*/ static int uidtb_start __P((void)); static int gidtb_start __P((void)); static int usrtb_start __P((void)); static int grptb_start __P((void)); +#if 0 static u_int st_hash(name, len, tabsz) const char *name; @@@@ -100,6 +101,7 @@@@ return (key % tabsz); } +#endif /* * uidtb_start @@@@ -213,6 +215,7 @@@@ return (0); } +#if 0 /* * user_from_uid() * caches the name (if any) for the uid. If noname clear, we always return the @@@@ -292,7 +295,9 @@@@ } return (ptr->name); } +#endif +#if 0 /* * group_from_gid() * caches the name (if any) for the gid. If noname clear, we always return the @@@@ -372,6 +377,7 @@@@ } return (ptr->name); } +#endif /* * uid_from_user() @@@@ -406,7 +412,7 @@@@ * look up in hash table, if found and valid return the uid, * if found and invalid, return a -1 */ - pptr = usrtb + st_hash(name, namelen, UNM_SZ); + pptr = usrtb + st_hash((char *)name, namelen, UNM_SZ); ptr = *pptr; if ((ptr != NULL) && (ptr->valid > 0) && !strcmp(name, ptr->name)) { @@@@ -478,7 +484,7 @@@@ * look up in hash table, if found and valid return the uid, * if found and invalid, return a -1 */ - pptr = grptb + st_hash(name, namelen, GID_SZ); + pptr = grptb + st_hash((char *)name, namelen, GID_SZ); ptr = *pptr; if ((ptr != NULL) && (ptr->valid > 0) && !strcmp(name, ptr->name)) { @ 1.2 log @ * Work around RCS ID expansion * Use same old sources, we just patch 'em up in the package (only give the package a new version). @ text @d1 1 a1 1 $NetBSD$ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD d3 3 a5 11 Patch 1.4_BETA version to compile under 1.3* --- /usr/cvs/src-1.4/lib/libc/gen/pwcache.c Tue Jan 19 21:11:29 1999 +++ pwcache.c Fri Apr 23 15:35:17 1999 @@@@ -42,11 +42,11 @@@@ #if 0 static char sccsid[] = "@@(#)cache.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pwcache.c,v 1.12 1999/01/19 08:32:34 mycroft Exp $"); +/* __RCSID("$NetBSD: pwcache.c,v 1.12 1999/01/19 08:32:34 mycroft Exp $"); *//*HF*/ d10 1 a10 1 +/* #include "namespace.h" */ @ 1.1.1.1 log @Fixes for 1.3 @ text @@