From 43e325d99167179cb7000451e252dcde7f0eb1a0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 14 Dec 2001 21:51:09 +0000 Subject: Added the group enum code from 2.2 Jeremy. (This used to be commit 59e01a22c5cb1046758c8cd6b09333c19d6cd26e) --- source3/include/util_getent.h | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'source3/include') 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 */ -- cgit