[Midnightbsd-cvs] src [6748] trunk/include: add gid_from_group and friends
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Sep 6 15:00:02 EDT 2014
Revision: 6748
http://svnweb.midnightbsd.org/src/?rev=6748
Author: laffer1
Date: 2014-09-06 15:00:02 -0400 (Sat, 06 Sep 2014)
Log Message:
-----------
add gid_from_group and friends
Modified Paths:
--------------
trunk/include/grp.h
trunk/include/pwd.h
Modified: trunk/include/grp.h
===================================================================
--- trunk/include/grp.h 2014-09-06 18:53:03 UTC (rev 6747)
+++ trunk/include/grp.h 2014-09-06 19:00:02 UTC (rev 6748)
@@ -70,6 +70,10 @@
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)' */
Modified: trunk/include/pwd.h
===================================================================
--- trunk/include/pwd.h 2014-09-06 18:53:03 UTC (rev 6747)
+++ trunk/include/pwd.h 2014-09-06 19:00:02 UTC (rev 6748)
@@ -165,6 +165,10 @@
int getpwent_r(struct passwd *, char *, size_t, struct passwd **);
int setpassent(int);
const char *user_from_uid(uid_t, int);
+int uid_from_user(const char *, uid_t *);
+int pwcache_userdb(int (*)(int), void (*)(void),
+ struct passwd * (*)(const char *),
+ struct passwd * (*)(uid_t));
#endif
__END_DECLS
More information about the Midnightbsd-cvs
mailing list