summaryrefslogtreecommitdiffstats
path: root/pw/pwupd.h
diff options
context:
space:
mode:
authorDavid Nugent <davidn@FreeBSD.org>1996-12-21 15:35:45 +0000
committerDavid Nugent <davidn@FreeBSD.org>1996-12-21 15:35:45 +0000
commitecd99f44c4d804b6066da1e3600597cb0193e3ec (patch)
tree289dcb1b3967e8a9f062524d7bcc363855322a20 /pw/pwupd.h
parent8190d274530149353be5a67c1e345aba46555967 (diff)
downloadpw-darwin-ecd99f44c4d804b6066da1e3600597cb0193e3ec.tar.gz
pw-darwin-ecd99f44c4d804b6066da1e3600597cb0193e3ec.zip
1) 200 users per group limitation removed and pw
will handle lines of any length in /etc/group. 2) Fixed bug with usermod -d not updating user's home directory. 3) Minor formatting display changes/fixes with *show -P.
Diffstat (limited to 'pw/pwupd.h')
-rw-r--r--pw/pwupd.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/pw/pwupd.h b/pw/pwupd.h
index 54324f8..457a91b 100644
--- a/pw/pwupd.h
+++ b/pw/pwupd.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: pwupd.h,v 1.1.1.1 1996/12/09 14:05:35 joerg Exp $
+ * $Id: pwupd.h,v 1.1.1.2 1996/12/10 23:59:03 joerg Exp $
*/
#ifndef _PWUPD_H_
@@ -60,20 +60,22 @@ int delpwent __P((struct passwd * pwd));
int chgpwent __P((char const * login, struct passwd * pwd));
int fmtpwent __P((char *buf, struct passwd * pwd));
int fmtpwentry __P((char *buf, struct passwd * pwd, int type));
+
int addgrent __P((struct group * grp));
int delgrent __P((struct group * grp));
int chggrent __P((char const * name, struct group * grp));
-int fmtgrent __P((char *buf, struct group * grp));
-int fmtgrentry __P((char *buf, struct group * grp, int type));
+int fmtgrent __P((char **buf, int * buflen, struct group * grp));
+int fmtgrentry __P((char **buf, int * buflen, struct group * grp, int type));
int editgroups __P((char *name, char **groups));
__END_DECLS
-#define MAXGROUPS 200
-#define MAXPWLINE 1024
+#define PWBUFSZ 1024
__BEGIN_DECLS
void copymkdir __P((char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid));
void rm_r __P((char const * dir, uid_t uid));
+int extendline __P((char **buf, int *buflen, int needed));
+int extendarray __P((char ***buf, int *buflen, int needed));
__END_DECLS
#endif /* !_PWUPD_H */