update from main archive 960825
authordrepper <drepper>
Mon, 26 Aug 1996 00:41:02 +0000 (00:41 +0000)
committerdrepper <drepper>
Mon, 26 Aug 1996 00:41:02 +0000 (00:41 +0000)
shadow/Makefile
shadow/shadow.h

index 943881f..614f7af 100644 (file)
@@ -23,7 +23,8 @@ subdir        := shadow
 
 headers                = shadow.h
 routines       = getspent getspnam sgetspent fgetspent putspent \
-                 getspent_r getspnam_r sgetspent_r fgetspent_r
+                 getspent_r getspnam_r sgetspent_r fgetspent_r \
+                 lckpwdf
 
 
 include ../Rules
index 88199a9..b1a4c82 100644 (file)
@@ -46,8 +46,8 @@ struct spwd
                                   the password.  */
   __time_t sp_inact;           /* Number of days the account may be
                                   inactive.  */
-  __time_t sp_expire;          /* Number of days since 700101 until account
-                                  expires.  */
+  __time_t sp_expire;          /* Number of days since 1970-01-01 until
+                                  account expires.  */
   unsigned long int sp_flag;   /* Reserved.  */
 };
 
@@ -103,6 +103,15 @@ extern struct spwd *fgetspent_r __P ((FILE *__stream,
                                      char *__buffer, int __buflen));
 #endif /* reentrant */
 
+
+/* Protect password file against multi writers.  */
+extern int __lckpwdf __P ((void));
+extern int lckpwdf __P ((void));
+
+/* Unlock password file.  */
+extern int __ulckpwdf __P ((void));
+extern int ulckpwdf __P ((void));
+
 __END_DECLS
 
 #endif /* shadow.h */