diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-20 01:12:04 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1994-09-20 01:12:04 +0000 |
commit | 6913240fbc01d14bb035031e46f07e3be7d2ed3c (patch) | |
tree | aca7ae2ee14d9065ac19784f5643aac1405af299 /include/pwd.h | |
parent | e79033e4cf63902f9d85330a019b138ebc01891d (diff) | |
download | src-6913240fbc01d14bb035031e46f07e3be7d2ed3c.tar.gz src-6913240fbc01d14bb035031e46f07e3be7d2ed3c.zip |
Notes
Diffstat (limited to 'include/pwd.h')
-rw-r--r-- | include/pwd.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/pwd.h b/include/pwd.h index 0685d6f3f526..8d51f5a594e6 100644 --- a/include/pwd.h +++ b/include/pwd.h @@ -60,6 +60,7 @@ #define _PW_KEYBYNAME '1' /* stored by name */ #define _PW_KEYBYNUM '2' /* stored by entry in the "file" */ #define _PW_KEYBYUID '3' /* stored by uid */ +#define _PW_KEYYPENABLED '4' /* YP is enabled */ #define _PASSWORD_EFMT1 '_' /* extended encryption format */ @@ -77,8 +78,22 @@ struct passwd { char *pw_dir; /* home directory */ char *pw_shell; /* default shell */ time_t pw_expire; /* account expiration */ + int pw_fields; /* internal: fields filled in */ }; +/* Mapping from fields to bits for pw_fields. */ +#define _PWF(x) (1 << x) +#define _PWF_NAME _PWF(0) +#define _PWF_PASSWD _PWF(1) +#define _PWF_UID _PWF(2) +#define _PWF_GID _PWF(3) +#define _PWF_CHANGE _PWF(4) +#define _PWF_CLASS _PWF(5) +#define _PWF_GECOS _PWF(6) +#define _PWF_DIR _PWF(7) +#define _PWF_SHELL _PWF(8) +#define _PWF_EXPIRE _PWF(9) + #include <sys/cdefs.h> __BEGIN_DECLS |