aboutsummaryrefslogtreecommitdiff
path: root/shadow/shadow.h
diff options
context:
space:
mode:
Diffstat (limited to 'shadow/shadow.h')
-rw-r--r--shadow/shadow.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/shadow/shadow.h b/shadow/shadow.h
index 88199a9..b1a4c82 100644
--- a/shadow/shadow.h
+++ b/shadow/shadow.h
@@ -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 */