diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-19 12:42:53 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-19 12:42:53 +0000 |
commit | 94225e07fcc27f01edd4faee2391000f54a9aceb (patch) | |
tree | d3d5386215fd2a19fb9ca3a06cf2b7fa52b3b01b /Src/zsh.h | |
parent | aa58d139ff3ffa7258a6273bf279d70f9ee31916 (diff) | |
download | zsh-94225e07fcc27f01edd4faee2391000f54a9aceb.tar.gz zsh-94225e07fcc27f01edd4faee2391000f54a9aceb.tar.xz zsh-94225e07fcc27f01edd4faee2391000f54a9aceb.zip |
28638: add $usergroups parameter
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 6d8ac0353..51ec937fe 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1731,6 +1731,23 @@ struct nameddir { #define ND_USERNAME (1<<1) /* nam is actually a username */ #define ND_NOABBREV (1<<2) /* never print as abbrev (PWD or OLDPWD) */ +/* Storage for single group/name mapping */ +typedef struct { + /* Name of group */ + char *name; + /* Group identifier */ + gid_t gid; +} groupmap; +typedef groupmap *Groupmap; + +/* Storage for a set of group/name mappings */ +typedef struct { + /* The set of name to gid mappings */ + Groupmap array; + /* A count of the valid entries in groupmap. */ + int num; +} groupset; +typedef groupset *Groupset; /* flags for controlling printing of hash table nodes */ #define PRINT_NAMEONLY (1<<0) |