summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Gatien-Baron <valentin.gatienbaron@gmail.com>2021-08-01 07:58:06 -0400
committerValentin Gatien-Baron <valentin.gatienbaron@gmail.com>2021-08-01 07:58:06 -0400
commit078a4e406035deacbeca985b7c7d613d654bbb7d (patch)
treed1988e52b04fb48a793669c9737829b9a296ef3a
parent9043941fa9e98917ed1f672d794deab4d73592a3 (diff)
downloadlibfaketime-078a4e406035deacbeca985b7c7d613d654bbb7d.tar.gz
group cpp variables according to whether they are set by default
-rw-r--r--src/Makefile38
1 files changed, 20 insertions, 18 deletions
diff --git a/src/Makefile b/src/Makefile
index ad2b797..15fe96a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,24 +1,19 @@
#
# Notes:
#
-# * Compilation Defines:
+# * Compilation Defines that are set by default:
#
# FAKE_STAT
# - Enables time faking also for files' timestamps.
#
-# FAKE_FILE_TIMESTAMPS, FAKE_UTIME
-# - Enables time faking for the utime* functions. If enabled via
-# FAKE_UTIME define instead of FAKE_FILE_TIMESTAMPS, the faking
-# defaults to off without FAKE_UTIME in the environment.
+# FAKE_SLEEP
+# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll()
#
-# NO_ATFILE
-# - Disables support for the fstatat() group of functions
+# FAKE_TIMERS
+# - Also intercept timer_settime() and timer_gettime()
#
-# PTHREAD_SINGLETHREADED_TIME
-# - Define this if you want to single-thread time() ... there ARE
-# possible caching side-effects in a multithreaded environment
-# without this, but the performance impact may require you to
-# try it unsynchronized.
+# FAKE_PTHREAD
+# - Intercept pthread_cond_timedwait
#
# FAKE_INTERNAL_CALLS
# - Also intercept libc internal __functions, e.g. not just time(),
@@ -26,14 +21,21 @@
# that make use of low-level system calls, such as Java Virtual
# Machines.
#
-# FAKE_SLEEP
-# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll()
+# PTHREAD_SINGLETHREADED_TIME (only set in libfaketimeMT.so)
+# - Define this if you want to single-thread time() ... there ARE
+# possible caching side-effects in a multithreaded environment
+# without this, but the performance impact may require you to
+# try it unsynchronized.
#
-# FAKE_TIMERS
-# - Also intercept timer_settime() and timer_gettime()
+# * Compilation Defines that are unset by default:
#
-# FAKE_PTHREAD
-# - Intercept pthread_cond_timedwait
+# FAKE_FILE_TIMESTAMPS, FAKE_UTIME
+# - Enables time faking for the utime* functions. If enabled via
+# FAKE_UTIME define instead of FAKE_FILE_TIMESTAMPS, the faking
+# defaults to off without FAKE_UTIME in the environment.
+#
+# NO_ATFILE
+# - Disables support for the fstatat() group of functions
#
# FAKE_SETTIME
# - Intercept clock_settime(), settimeofday(), and adjtime()