Module Name: krb5 Committed By: raeburn Date: Tue Jun 15 19:06:13 UTC 2004 Modified Files: krb5/src/lib/krb5/os/ChangeLog krb5/src/lib/krb5/os/c_ustime.c krb5/src/lib/krb5/os/os-proto.h Added Files: Removed Files: Log Message Localize the OS-specific bits of retrieving the current time a bit more. ** not yet tested on Windows ** * c_ustime.c: Include k5-thread.h. (get_time_now): New function, holds system-dependent code. (krb5int_us_time_mutex): New mutex. (struct time_now): New type. (last_time): New variable, replaces old last_tv, last_sec, last_usec. (krb5_crypto_us_timeofday): Rewrite. Do locking around access to previously returned value, and ensure that we don't return duplicate values. * os-proto.h: Include k5-thread.h. (krb5int_us_time_mutex): Declare. To generate a diff of this commit: cvs diff -r5.388 -r5.389 krb5/src/lib/krb5/os/ChangeLog cvs diff -r5.11 -r5.12 krb5/src/lib/krb5/os/c_ustime.c cvs diff -r5.28 -r5.29 krb5/src/lib/krb5/os/os-proto.h