summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-14 21:51:09 +0000
committerJeremy Allison <jra@samba.org>2001-12-14 21:51:09 +0000
commit43e325d99167179cb7000451e252dcde7f0eb1a0 (patch)
tree05bf8e3364d4d4d91ea9c036757bfb15faca26e0 /source3/include
parentd6b2d2867343cab82937aec791708baba37aef1f (diff)
downloadsamba-43e325d99167179cb7000451e252dcde7f0eb1a0.tar.gz
samba-43e325d99167179cb7000451e252dcde7f0eb1a0.tar.bz2
samba-43e325d99167179cb7000451e252dcde7f0eb1a0.zip
Added the group enum code from 2.2
Jeremy. (This used to be commit 59e01a22c5cb1046758c8cd6b09333c19d6cd26e)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/util_getent.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/source3/include/util_getent.h b/source3/include/util_getent.h
index 877d272ceb..5d4674ddef 100644
--- a/source3/include/util_getent.h
+++ b/source3/include/util_getent.h
@@ -22,9 +22,10 @@
#ifndef _UTIL_GETENT_H
#define _UTIL_GETENT_H
-/* element for a single linked list of group entries */
-/* replace the use of struct group in some cases */
-/* used by getgrent_list() */
+/* Element for a single linked list of group entries */
+/* Replace the use of struct group in some cases */
+/* Used by getgrent_list() */
+
struct sys_grent {
char *gr_name;
char *gr_passwd;
@@ -33,9 +34,10 @@ struct sys_grent {
struct sys_grent *next;
};
-/* element for a single linked list of passwd entries */
-/* replace the use of struct passwd in some cases */
-/* used by getpwent_list() */
+/* Element for a single linked list of passwd entries */
+/* Replace the use of struct passwd in some cases */
+/* Used by getpwent_list() */
+
struct sys_pwent {
char *pw_name;
char *pw_passwd;
@@ -47,4 +49,14 @@ struct sys_pwent {
struct sys_pwent *next;
};
+/* Element for a single linked list of user names in a group. */
+/* Used to return group lists that may span multiple lines in
+ /etc/group file. */
+/* Used by get_users_in_group() */
+
+struct sys_userlist {
+ struct sys_userlist *next, *prev;
+ char *unix_name;
+};
+
#endif /* _UTIL_GETENT_H */