]> git.cameronkatri.com Git - pw-darwin.git/blobdiff - pw/pw.h
Make pw_scan(3) more compatible with getpwent(3) et. al. when processing
[pw-darwin.git] / pw / pw.h
diff --git a/pw/pw.h b/pw/pw.h
index 05a51c220723991176e69311e374e46c322c1aaa..fde3ce3ef69db95f98ee523d65e94c2bfbdb8df1 100644 (file)
--- a/pw/pw.h
+++ b/pw/pw.h
@@ -1,4 +1,6 @@
 /*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
  * Copyright (C) 1996
  *     David L. Nugent.  All rights reserved.
  *
@@ -28,7 +30,6 @@
 
 #include <sys/stat.h>
 
-#define _WITH_GETLINE
 #include <inttypes.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -47,6 +48,14 @@ enum _mode
         M_NUM
 };
 
+enum _passmode
+{
+       P_NO,
+       P_NONE,
+       P_RANDOM,
+       P_YES
+};
+
 enum _which
 {
         W_USER,