X-Git-Url: https://git.cameronkatri.com/pw-darwin.git/blobdiff_plain/3f5e90cd330e96e54e53d75397bb6bef56153218..1169eb1d26941a26f08566863b597c2d66f8c93e:/pw/pw.h diff --git a/pw/pw.h b/pw/pw.h index 37c4807..f541b26 100644 --- a/pw/pw.h +++ b/pw/pw.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pw.h,v 1.3 1996/12/21 15:35:42 davidn Exp $ + * $FreeBSD$ */ #include @@ -34,12 +34,14 @@ #include #include #include +#include #include #include #include #include #include "psdate.h" +#include "pwupd.h" enum _mode { @@ -48,6 +50,8 @@ enum _mode M_UPDATE, M_PRINT, M_NEXT, + M_LOCK, + M_UNLOCK, M_NUM }; @@ -98,7 +102,6 @@ struct userconf *read_userconfig(char const * file); int write_userconfig(char const * file); struct carg *addarg(struct cargs * _args, int ch, char *argstr); struct carg *getarg(struct cargs * _args, int ch); -void cmderr(int ec, char const * fmt,...); int pw_user(struct userconf * cnf, int mode, struct cargs * _args); int pw_group(struct userconf * cnf, int mode, struct cargs * _args); @@ -121,7 +124,7 @@ int boolean_val(char const * str, int dflt); char const *boolean_str(int val); char *newstr(char const * p); -void pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...); +void pw_log(struct userconf * cnf, int mode, int which, char const * fmt,...) __printflike(4, 5); char *pw_pwcrypt(char *password); extern const char *Modes[];