aboutsummaryrefslogtreecommitdiffstats
path: root/include/grp.h
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2012-10-19 12:44:22 +0000
committerBrooks Davis <brooks@FreeBSD.org>2012-10-19 12:44:22 +0000
commit4c0d7cdf5d3b64e235140553601c0dd5827429a7 (patch)
tree215be12bec7b0be963ae597a694b1e9054e3daab /include/grp.h
parentb49af68ca03b68fea6c8e52af314568b09a951eb (diff)
parentbf7679eefe92027cef1270a3ad71e1f2b47b1a59 (diff)
downloadsrc-4c0d7cdf5d3b64e235140553601c0dd5827429a7.tar.gz
src-4c0d7cdf5d3b64e235140553601c0dd5827429a7.zip
Replace our version of the pwcache(3) API with NetBSD's implementation.
This adds two features: * uid_from_user() and gid_from_group() as the reverse of user_from_uid() and groups_from_gid(). * pwcache_userdb() and pwcache_groupdb() which allow alternative lookup functions to be used. For example lookups from passwd and group databases in a non-standard location.
Notes
Notes: svn path=/head/; revision=241731
Diffstat (limited to 'include/grp.h')
-rw-r--r--include/grp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grp.h b/include/grp.h
index 2b9f73f763cc..e7f65ecad636 100644
--- a/include/grp.h
+++ b/include/grp.h
@@ -69,6 +69,10 @@ struct group *getgrgid(gid_t);
struct group *getgrnam(const char *);
#if __BSD_VISIBLE
const char *group_from_gid(gid_t, int);
+int gid_from_group(const char *, gid_t *);
+int pwcache_groupdb(int (*)(int), void (*)(void),
+ struct group * (*)(const char *),
+ struct group * (*)(gid_t));
#endif
#if __BSD_VISIBLE || __XSI_VISIBLE
/* XXX IEEE Std 1003.1, 2003 specifies `void setgrent(void)' */