summaryrefslogtreecommitdiff
path: root/include/grp.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2018-09-13 12:31:16 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2018-09-13 12:31:16 +0000
commite6651a05fa56b3b097037cb6bca10bf9d3baed9b (patch)
tree8250e8a684e33f8ebeb33d64151835ce3f95bab8 /include/grp.h
parentff9dc9d416c56af15285c6a260a3f6f465b82c3c (diff)
Add uid_from_user() and gid_from_group(), derived from pax's cache.c.
It replaces the existing pwcache.c functions user_from_uid(3) and group_from_gid(3) with the pax equivalents. Adapted from NetBSD (mycroft) changes from our own pax's cache.c. OK guenther@
Diffstat (limited to 'include/grp.h')
-rw-r--r--include/grp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/grp.h b/include/grp.h
index 2a1a6c7f499..ebf65189a5a 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: grp.h,v 1.12 2014/08/31 04:04:38 guenther Exp $ */
+/* $OpenBSD: grp.h,v 1.13 2018/09/13 12:31:15 millert Exp $ */
/* $NetBSD: grp.h,v 1.7 1995/04/29 05:30:40 cgd Exp $ */
/*-
@@ -70,7 +70,8 @@ int getgrnam_r(const char *, struct group *, char *,
#endif
#if __BSD_VISIBLE
int setgroupent(int);
-char *group_from_gid(gid_t, int);
+int gid_from_group(const char *, gid_t *);
+const char *group_from_gid(gid_t, int);
#endif
__END_DECLS