John Regan
87d2a67401
Only use dlvsym on glibc systems
...
This makes libfaketime compatible with musl libc, and likely others.
2018-01-14 12:31:39 -06:00
Wolfgang Hommel
3881dd2ebf
Merge pull request #138 from mliertzer/fake_pthread
...
Implement fix for pthread_cond_timedwait
2018-01-02 12:23:57 +01:00
Matthias Liertzer
fb91c4fcde
Implement a fix for pthread_cond_timedwait with faketime
...
pthread_cond_timedwait takes an absolute time as an argument, which
the function directly passes on to the kernel via the futex
syscall. In an application this absolute time argument is calculated
via the fake times provided by libfaketime. Since the kernel has no
knowledge of the fake time, pthread_cond_timedwait must be redefined
such that it converts the fake time back to real time before passing
it on.
2018-01-02 02:22:59 +01:00
Matthias Liertzer
ab7a2302f2
Rename compat library enumeration
2018-01-02 01:42:41 +01:00
Matthias Liertzer
d117ad79a2
Fix spelling of positive
2018-01-02 01:42:41 +01:00
Matthias Liertzer
5235f6f417
Make sure that DONT_FAKE_MONOTONIC=1 affects all monotonic clocks
2018-01-02 01:40:10 +01:00
Matthias Liertzer
3376334dfc
Hide ftpl_init and ft_cleanup from exported functions
2018-01-02 00:16:23 +01:00
Wolfgang Hommel
bb635e4367
Treat unknown clock_ids like CLOCK_REALTIME (experimental)
2017-11-30 20:28:06 +01:00
Wolfgang Hommel
a79f5330f4
Fix #114 as suggested by @niraizik
2017-11-17 20:27:58 +01:00
Wolfgang Hommel
0dee4f88e0
Updated OSX packaging info for v0.9.7
2017-11-14 20:37:55 +01:00
Wolfgang Hommel
c9a681c3e3
Preparations for 0.9.7 release
v0.9.7
2017-11-14 20:28:32 +01:00
Wolfgang Hommel
4ce283594f
Merge pull request #122 from jasonsoooz/patch-1
...
Mention possibility of running java in README
2017-10-01 10:06:43 +02:00
Jason Soo
d42a2a9ec7
Mention possibility of running java in README
2017-09-30 15:51:39 +10:00
Wolfgang Hommel
5d41d41da8
Merge pull request #119 from dariaphoebe/namefix-1
...
fix my name
2017-07-25 07:15:29 +02:00
Daria Phoebe Brashear
46aa5773c7
fix my name
2017-07-24 16:42:38 -04:00
Wolfgang Hommel
3fe3cf1536
Updated Homebrew formula
2017-07-13 18:35:26 +02:00
Wolfgang Hommel
b23fbd5c5e
Pass existing null pointers in select()
v0.9.7b1
2017-06-08 19:50:34 +02:00
Wolfgang Hommel
fa88a28c4d
Avoid null pointer dereference in select()
2017-06-07 20:37:12 +02:00
Wolfgang Hommel
6e4037768a
early preparations for 0.9.7 release
2017-05-19 21:51:25 +02:00
Wolfgang Hommel
fa91edb0a3
Started to integrate mpareja's CLOCK_BOOTTIME patch
2017-05-19 19:14:58 +02:00
Wolfgang Hommel
725c80673c
Updated for macOS Sierra
2017-05-19 19:05:12 +02:00
Wolfgang Hommel
4a9c93475e
Fix macro-related compiler warnings
2017-05-19 18:55:11 +02:00
Wolfgang Hommel
842c2e4269
Merge branch 'macos-sierra'
2017-05-19 18:51:01 +02:00
Wolfgang Hommel
af0b2f85a7
Merge pull request #113 from umitanuki/support-select
...
Support select call
2017-05-19 18:22:14 +02:00
Hitoshi Harada
120f6898f4
Support select call
2017-05-18 17:52:03 -07:00
Wolfgang Hommel
3c0ce9c885
Merge pull request #108 from manchicken/osx-fix
...
Adding some code to make OSX build properly.
2017-02-28 19:19:51 +01:00
Michael D. Stemle, Jr
2c78776aaf
Adding some code to make OSX build properly.
2017-02-28 10:19:32 -05:00
Balint Reczey
5dd65efa14
Merge pull request #107 from jwilk/spelling
...
Fix typo in README
2017-02-28 13:28:44 +01:00
Jakub Wilk
d1fdfb1950
Fix typo in README
2017-02-28 12:22:50 +01:00
Wolfgang Hommel
57b098c98a
Merge pull request #103 from andir/master
...
Disable the non-null compare warning/error.
2016-12-20 19:46:02 +01:00
Andreas Rammhold
47e958b753
Disable the non-null compare warning/error.
...
We rely on the provided local library definitions for the hooked
functions which in some cases (GCC >6) carry a non-null-attribute flag
which causes compile errors on `!= NULL` checks.
2016-12-20 19:30:14 +01:00
Wolfgang Hommel
1d5976d1ab
Merge pull request #102 from infinity0/patch-1
...
Document the faking of filesystem timestamps
2016-12-09 20:27:20 +01:00
Ximin Luo
582ae36e1d
Document the faking of filesystem timestamps
...
It's hard to notice the tiny reference to `fstat(2)` amongst all the text about the system clock. This is a significant behaviour that is very surprising, and the default setting (on) messes with buildsystems in a counter-intuitive way. Also document how to switch it off.
2016-12-09 00:24:05 +01:00
Wolfgang Hommel
8fb6330a28
Fixes compilation issues on macOS Sierra
2016-10-30 13:25:38 +01:00
Wolfgang Hommel
da778084e5
Merge pull request #92 from hbuchsbaum/work
...
do not destroy environment when parsing FAKETIME_ONLY_CMDS
2016-06-27 08:54:00 +02:00
Helmut Buchsbaum
9220b5c58e
do not destroy environment when parsing FAKETIME_ONLY_CMDS
...
Using strtok_r directly on environment string changes the environment
e.g. for subprocesses and thus changes the FAKETIME_ONLY_CMDS
setting for the subprocess to the first command only.
Avoid this by copying the environment string before parsing.
2016-06-27 08:13:33 +02:00
Wolfgang Hommel
b68f2820c4
Merge pull request #91 from jwilk/spelling
...
Fix spelling mistakes
2016-06-02 21:51:55 +02:00
Jakub Wilk
4786b94f8e
Fix grammar in README
...
"allow" is a transitive verb, which requires an object,
so "allow to <verb>" is ungrammatical.
2016-06-02 21:36:54 +02:00
Jakub Wilk
0d790dabb6
Fix license name in README
...
There's no such thing as "GNU Public License";
GPL stands for "General Public License".
2016-06-02 21:31:43 +02:00
Jakub Wilk
6de283f621
Fix typos
2016-06-02 21:31:42 +02:00
Wolfgang Hommel
7f907c32fc
Merge pull request #86 from udda/udda-patch-1
...
Call printf only once in usage(char*)
2016-03-15 12:34:05 +01:00
Wolfgang Hommel
0af6be50cb
Merge pull request #87 from steffen-kiess/fix-init
...
Do not fake times during ftpl_init()
2016-03-15 12:32:56 +01:00
Steffen Kieß
b193c95475
Do not fake times during ftpl_init()
...
Some libc functions called by ftpl_init() might call fstat() or a similar
function which is intercepted by libfaketime. In this case, the time should
not be faked because the static variables are not yet set up properly.
See https://github.com/wolfcw/libfaketime/issues/72 for further information.
2016-03-15 10:46:05 +01:00
Mario Cianciolo
d95d96f5ea
Call printf only once in usage(char*)
...
Replace multiple calls to printf with one single call, passing the entire string at once.
I think this is faster and more readable.
2016-03-07 17:47:23 +01:00
Wolfgang Hommel
904cc5007d
Merge pull request #84 from vavrusa/master
...
Fixed coarse clock on platforms that don't support them
2016-01-29 17:35:15 +01:00
Marek Vavrusa
811b7916ad
Fixed coarse clock on platforms that don't support them
...
having same number for coarse and non-coarse clock
leads to duplicate case values in switches
2016-01-29 11:20:39 +00:00
Wolfgang Hommel
74425d76e1
Updated regarding coarse clocks
2015-12-28 18:46:39 +01:00
Wolfgang Hommel
3a26d7b3bb
Merge branch 'azat-coarse' into develop
2015-12-28 17:55:32 +01:00
Azat Khuzhin
4398deaa3d
Raw support for COARSE clocks
2015-12-28 16:54:55 +03:00
Georg Koppen
18f5ec0671
Allow more than one command being skipped
2015-06-04 18:42:20 +02:00