From 5d1e6325f26380aea9a12d126571fcee3c30af31 Mon Sep 17 00:00:00 2001 From: Wolfgang Hommel Date: Tue, 3 Sep 2019 12:01:33 +0200 Subject: Add FAKE_SETTIME to CFLAGS to intercept time-setting calls (#179) --- README | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'README') diff --git a/README b/README index 66cc135..d146c45 100644 --- a/README +++ b/README @@ -456,6 +456,16 @@ a lot of processes are started (e.g., servers handling many containers or similar virtualization mechanisms). +Intercepting time-setting calls +------------------------------- + +libfaketime can be compiled with the CFLAG "-DFAKE_SETTIME" in order +to also intercept time-setting functions, i.e., clock_settime(), +settimeofday(), and adjtime(). Instead of passing the timestamp a +program sets through to the system, only the FAKETIME environment +variable will be adjusted accordingly. + + 4f) Faking the date and time system-wide ---------------------------------------- -- cgit v1.2.1