]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pwupd.h
Remove useless assignement of linelen
[pw-darwin.git] / pw / pwupd.h
index 92e55481b211d45ae10bde585f6fdb3646900d09..7fecffb7da4b47585bd10f038b5b94ae3a81ba66 100644 (file)
@@ -76,28 +76,16 @@ struct userconf {
        char            *default_class;         /* Default user class */
        uid_t           min_uid, max_uid;       /* Allowed range of uids */
        gid_t           min_gid, max_gid;       /* Allowed range of gids */
-       int             expire_days;            /* Days to expiry */
-       int             password_days;          /* Days to password expiry */
+       time_t          expire_days;            /* Days to expiry */
+       time_t          password_days;          /* Days to password expiry */
 };
 
 struct pwconf {
        char             rootdir[MAXPATHLEN];
        char             etcpath[MAXPATHLEN];
-       char            *newname;
-       char            *config;
-       char            *gecos;
        int              fd;
-       int              which;
-       bool             quiet;
-       bool             force;
-       bool             all;
-       bool             dryrun;
-       bool             pretty;
-       bool             v7;
+       int              rootfd;
        bool             checkduplicate;
-       bool             deletehome;
-       bool             precrypted;
-       struct userconf *userconf;
 };
 
 extern struct pwf PWF;
@@ -156,8 +144,9 @@ struct group * vgetgrnam(const char * nam);
 RET_SETGRENT   vsetgrent(void);
 void           vendgrent(void);
 
-void copymkdir(char const * dir, char const * skel, mode_t mode, uid_t uid, gid_t gid);
-void rm_r(char const * dir, uid_t uid);
+void copymkdir(int rootfd, char const * dir, int skelfd, mode_t mode, uid_t uid,
+    gid_t gid, int flags);
+void rm_r(int rootfd, char const * dir, uid_t uid);
 __END_DECLS
 
 #endif                         /* !_PWUPD_H */