summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorWolfgang Hommel <wolfgang.hommel@unibw.de>2019-09-03 12:01:33 +0200
committerWolfgang Hommel <wolfgang.hommel@unibw.de>2019-09-03 12:01:33 +0200
commit5d1e6325f26380aea9a12d126571fcee3c30af31 (patch)
treee18ff549673e9fb0bf1cbab9098071a77ff55935 /README
parent8ed946cb63b636d522a139119558e97a385e516d (diff)
downloadlibfaketime-5d1e6325f26380aea9a12d126571fcee3c30af31.tar.gz
Add FAKE_SETTIME to CFLAGS to intercept time-setting calls (#179)
Diffstat (limited to 'README')
-rw-r--r--README10
1 files changed, 10 insertions, 0 deletions
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
----------------------------------------