| Line | |
|---|
| 1 | /*
|
|---|
| 2 | Unix SMB/CIFS implementation.
|
|---|
| 3 | Samba utility functions
|
|---|
| 4 | Copyright (C) Simo Sorce 2001
|
|---|
| 5 |
|
|---|
| 6 | This program is free software; you can redistribute it and/or modify
|
|---|
| 7 | it under the terms of the GNU General Public License as published by
|
|---|
| 8 | the Free Software Foundation; either version 3 of the License, or
|
|---|
| 9 | (at your option) any later version.
|
|---|
| 10 |
|
|---|
| 11 | This program is distributed in the hope that it will be useful,
|
|---|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 14 | GNU General Public License for more details.
|
|---|
| 15 |
|
|---|
| 16 | You should have received a copy of the GNU General Public License
|
|---|
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|---|
| 18 | */
|
|---|
| 19 |
|
|---|
| 20 | #ifndef _UTIL_GETENT_H
|
|---|
| 21 | #define _UTIL_GETENT_H
|
|---|
| 22 |
|
|---|
| 23 | /* Element for a single linked list of group entries */
|
|---|
| 24 | /* Replace the use of struct group in some cases */
|
|---|
| 25 | /* Used by getgrent_list() */
|
|---|
| 26 |
|
|---|
| 27 | struct sys_grent {
|
|---|
| 28 | char *gr_name;
|
|---|
| 29 | char *gr_passwd;
|
|---|
| 30 | gid_t gr_gid;
|
|---|
| 31 | char **gr_mem;
|
|---|
| 32 | struct sys_grent *next;
|
|---|
| 33 | };
|
|---|
| 34 |
|
|---|
| 35 | /* Element for a single linked list of passwd entries */
|
|---|
| 36 | /* Replace the use of struct passwd in some cases */
|
|---|
| 37 | /* Used by getpwent_list() */
|
|---|
| 38 |
|
|---|
| 39 | struct sys_pwent {
|
|---|
| 40 | char *pw_name;
|
|---|
| 41 | char *pw_passwd;
|
|---|
| 42 | uid_t pw_uid;
|
|---|
| 43 | gid_t pw_gid;
|
|---|
| 44 | char *pw_gecos;
|
|---|
| 45 | char *pw_dir;
|
|---|
| 46 | char *pw_shell;
|
|---|
| 47 | struct sys_pwent *next;
|
|---|
| 48 | };
|
|---|
| 49 |
|
|---|
| 50 | /* Element for a single linked list of user names in a group. */
|
|---|
| 51 | /* Used to return group lists that may span multiple lines in
|
|---|
| 52 | /etc/group file. */
|
|---|
| 53 | /* Used by get_users_in_group() */
|
|---|
| 54 |
|
|---|
| 55 | struct sys_userlist {
|
|---|
| 56 | struct sys_userlist *next, *prev;
|
|---|
| 57 | char *unix_name;
|
|---|
| 58 | };
|
|---|
| 59 |
|
|---|
| 60 | #endif /* _UTIL_GETENT_H */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.