summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
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 */