summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archivers/pax/files/gen_subs.c5
-rw-r--r--archivers/pax/files/tar.c5
-rw-r--r--pkgtools/libnbcompat/files/pwcache.h18
3 files changed, 23 insertions, 5 deletions
diff --git a/archivers/pax/files/gen_subs.c b/archivers/pax/files/gen_subs.c
index df9f9c88fe0..ece03b0abd5 100644
--- a/archivers/pax/files/gen_subs.c
+++ b/archivers/pax/files/gen_subs.c
@@ -1,4 +1,4 @@
-/* $NetBSD: gen_subs.c,v 1.2 2003/06/24 06:44:59 grant Exp $ */
+/* $NetBSD: gen_subs.c,v 1.3 2003/06/24 14:09:21 jschauma Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -38,6 +38,7 @@
*/
#include "nbcompat.h"
+#include "pwcache.h"
#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
@@ -47,7 +48,7 @@
#if 0
static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: gen_subs.c,v 1.2 2003/06/24 06:44:59 grant Exp $");
+__RCSID("$NetBSD: gen_subs.c,v 1.3 2003/06/24 14:09:21 jschauma Exp $");
#endif
#endif /* not lint */
diff --git a/archivers/pax/files/tar.c b/archivers/pax/files/tar.c
index 4b6be78ada0..beba2515b32 100644
--- a/archivers/pax/files/tar.c
+++ b/archivers/pax/files/tar.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tar.c,v 1.3 2003/06/24 06:45:00 grant Exp $ */
+/* $NetBSD: tar.c,v 1.4 2003/06/24 14:09:21 jschauma Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -38,6 +38,7 @@
*/
#include "nbcompat.h"
+#include "pwcache.h"
#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
@@ -47,7 +48,7 @@
#if 0
static char sccsid[] = "@(#)tar.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: tar.c,v 1.3 2003/06/24 06:45:00 grant Exp $");
+__RCSID("$NetBSD: tar.c,v 1.4 2003/06/24 14:09:21 jschauma Exp $");
#endif
#endif /* not lint */
diff --git a/pkgtools/libnbcompat/files/pwcache.h b/pkgtools/libnbcompat/files/pwcache.h
index 6052e9a7707..8c673c08b98 100644
--- a/pkgtools/libnbcompat/files/pwcache.h
+++ b/pkgtools/libnbcompat/files/pwcache.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pwcache.h,v 1.1.1.1 2003/03/31 05:02:59 grant Exp $ */
+/* $NetBSD: pwcache.h,v 1.2 2003/06/24 14:09:21 jschauma Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -74,3 +74,19 @@ typedef struct gidc {
char name[GNMLEN]; /* gid name */
gid_t gid; /* cached gid */
} GIDC;
+
+#ifndef HAVE_USER_FROM_UID
+const char *user_from_uid(uid_t, int);
+#endif
+
+#ifndef HAVE_GROUP_FROM_GID
+const char *group_from_gid(gid_t, int);
+#endif
+
+#ifndef HAVE_UID_FROM_USER
+int uid_from_user(const char *, uid_t *);
+#endif
+
+#ifndef HAVE_GID_FROM_GROUP
+int gid_from_group(const char *, gid_t *);
+#endif