summaryrefslogtreecommitdiff
path: root/shadow/shadow.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1996-08-26 10:28:45 +0000
committerUlrich Drepper <drepper@redhat.com>1996-08-26 10:28:45 +0000
commitdcf0671d905200c449f92ead6cf43c184637a0d5 (patch)
tree91dc217311db41e89545d487b991865a6433205e /shadow/shadow.h
parent4884d0f03c5a3b3d2459655e76fa2d0684d389dc (diff)
handle password file locking.cvs/libc-960826
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 88199a9856..b1a4c82b4e 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 */