pw.h (85204142eb6f62c4f19b4544f0c9d9f828f44e37) | pw.h (644af48df68c2e5b309de3f1287fe64a449c825d) |
---|---|
1/*- 2 * Copyright (C) 1996 3 * David L. Nugent. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 81 unchanged lines hidden (view full) --- 90 char *default_class; /* Default user class */ 91 uid_t min_uid, max_uid; /* Allowed range of uids */ 92 gid_t min_gid, max_gid; /* Allowed range of gids */ 93 int expire_days; /* Days to expiry */ 94 int password_days; /* Days to password expiry */ 95 int numgroups; /* (internal) size of default_group array */ 96}; 97 | 1/*- 2 * Copyright (C) 1996 3 * David L. Nugent. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 81 unchanged lines hidden (view full) --- 90 char *default_class; /* Default user class */ 91 uid_t min_uid, max_uid; /* Allowed range of uids */ 92 gid_t min_gid, max_gid; /* Allowed range of gids */ 93 int expire_days; /* Days to expiry */ 94 int password_days; /* Days to password expiry */ 95 int numgroups; /* (internal) size of default_group array */ 96}; 97 |
98#define _DEF_DIRMODE (S_IRWXU | S_IRWXG | S_IRWXO) |
|
98#define _PATH_PW_CONF "/etc/pw.conf" 99#define _UC_MAXLINE 1024 100#define _UC_MAXSHELLS 32 101 102struct userconf *read_userconfig(char const * file); 103int write_userconfig(char const * file); 104struct carg *addarg(struct cargs * _args, int ch, char *argstr); 105struct carg *getarg(struct cargs * _args, int ch); --- 27 unchanged lines hidden --- | 99#define _PATH_PW_CONF "/etc/pw.conf" 100#define _UC_MAXLINE 1024 101#define _UC_MAXSHELLS 32 102 103struct userconf *read_userconfig(char const * file); 104int write_userconfig(char const * file); 105struct carg *addarg(struct cargs * _args, int ch, char *argstr); 106struct carg *getarg(struct cargs * _args, int ch); --- 27 unchanged lines hidden --- |