Todd C. Miller
5d2e9426b2
We cannot (easily) use clock_gettime(CLOCK_MONOTONIC) directly as
...
it may be present but not implemented. Add sudo_gettime_real() and
sudo_gettime_mono() functions to get the real and monotonic times
respectively. Now sudo_gettime_mono() checks the value of
sysconf(_SC_MONOTONIC_CLOCK) before calling clock_gettime(CLOCK_MONOTONIC)
and falls back on sudo_gettime_real() as needed. The Mach version
of sudo_gettime_mono() uses mach_absolute_time().
This should fix problems with timestamp files on systems where
the CLOCK_MONOTONIC is defined but not actually implemented.
2015-02-24 11:19:21 -07:00
..
2015-02-20 14:37:02 -07:00
2015-02-03 07:33:25 -07:00
2015-02-03 10:00:30 -07:00
2015-02-19 09:59:25 -07:00
2015-02-01 08:24:49 -07:00
2015-02-01 08:24:49 -07:00
2015-02-01 08:24:49 -07:00
2014-10-05 16:41:52 -06:00
2014-12-10 14:00:12 -07:00
2014-07-22 14:25:16 -06:00
2014-07-22 14:25:16 -06:00
2014-07-22 14:25:16 -06:00
2015-02-19 20:28:02 -07:00
2015-02-19 09:59:25 -07:00
2014-07-22 14:25:16 -06:00
2015-02-01 08:24:49 -07:00
2015-02-03 10:00:30 -07:00
2015-01-14 10:55:42 -07:00
2015-01-14 10:55:42 -07:00
2014-07-22 14:25:16 -06:00
2015-02-01 08:24:49 -07:00
2015-02-01 08:24:49 -07:00
2015-02-17 06:42:10 -07:00
2015-02-01 08:24:49 -07:00
2015-02-24 11:19:21 -07:00
2014-07-22 14:25:16 -06:00
2014-07-22 14:25:16 -06:00
2015-02-17 06:21:06 -07:00
2014-07-14 09:46:17 -06:00
2015-02-17 06:21:06 -07:00
2014-07-14 09:46:17 -06:00
2015-02-20 14:37:02 -07:00
2015-02-23 06:32:43 -07:00
2015-02-05 11:17:24 -07:00
2014-07-22 14:25:16 -06:00
2015-02-01 08:24:49 -07:00
2015-02-19 09:59:25 -07:00
2014-07-22 14:25:16 -06:00
2014-07-22 14:25:16 -06:00
2014-06-26 15:51:02 -06:00
2015-02-21 16:52:14 -07:00
2015-01-16 06:48:08 -07:00
2015-01-16 06:48:08 -07:00
2014-07-22 14:25:16 -06:00
2015-02-01 08:24:49 -07:00
2015-02-01 08:24:49 -07:00
2015-02-01 08:24:49 -07:00
2014-07-22 14:25:16 -06:00
2015-02-01 08:24:49 -07:00
2015-02-23 15:40:37 -07:00
2014-07-22 14:25:16 -06:00
2015-02-01 08:24:49 -07:00
2015-02-01 08:24:49 -07:00
2015-02-19 20:28:02 -07:00
2014-07-22 14:25:16 -06:00