Wolfgang Hommel
57de5bbe83
Merge pull request #252 from sdettmer/automake_make_check
...
**FOR REVIEW** Automake make check
2020-04-09 19:29:29 +02:00
Steffen Dettmer
c2b5b71777
First few fixes for make check ( #250 )
2020-04-09 17:43:51 +02:00
Steffen Dettmer
6c0947c86e
Fixed make distcheck ( #250 )
2020-04-09 17:43:10 +02:00
Steffen Dettmer
b36ad2342c
Removed automatically created files ( #250 )
2020-04-09 16:58:44 +02:00
Wolfgang Hommel
d40d0ebaa7
adapt travis.yml to automake
2020-04-09 06:37:39 +02:00
Wolfgang Hommel
081845440b
fix bracket syntax on Linux
2020-04-09 06:34:20 +02:00
Wolfgang Hommel
30207e8fdf
merge with @manchicken's automake branch
2020-04-09 06:26:49 +02:00
Wolfgang Hommel
d2f0daf092
Merge pull request #246 from sdettmer/dev/sde/pthread_cond_init_232_lazy_init
...
Add lazy ftpl_init() to pthread_cond_init_232(), fixes #245 .
2020-04-08 20:11:57 +02:00
Steffen Dettmer
c5b5d0b56e
Add lazy ftpl_init() to pthread_cond_init_232(), fixes #245 .
2020-04-08 19:57:14 +02:00
Wolfgang Hommel
f8a0ad2496
Merge pull request #244 from sdettmer/dev/sde/faketime_link_flags
...
Added support for FAKETIME_LINK_FLAGS for #243 .
2020-04-08 19:47:46 +02:00
Steffen Dettmer
0e3269efdc
Added support for FAKETIME_LINK_FLAGS for #243 .
2020-04-08 19:40:31 +02:00
Wolfgang Hommel
04e78e67bf
Unskip file parsing on improper initialization #240
2020-03-26 20:07:24 +01:00
Wolfgang Hommel
0e798503a4
Merge pull request #237 from FeepingCreature/fix/use-pthread-mutex-initializer-again
...
replace global state struct with local state struct holding a pointer to the global mutex variable
2020-03-16 13:45:37 +01:00
Mathis Beer
a7f7a54e1d
replace global state struct with local state struct holding a pointer to the global mutex variable
...
this fixes the `{ 0 }` initializer not compiling on some platforms
fix issue 231
fix issue 235
2020-03-16 07:57:07 +01:00
Wolfgang Hommel
8075c2e250
Merge pull request #234 from FeepingCreature/fix/use-appropriate-mask-function
...
Fix timing issue with multiple threads
2020-03-12 21:39:17 +01:00
Mathis Beer
a12ca58dfa
fix threading issue: don't assign to the global lock state struct until we're safely inside the mutex.
...
Otherwise, we might be overwriting the global lock state from two different
threads at once.
2020-03-12 06:49:29 +01:00
Mathis Beer
b4dea2ef9b
Unlock faketime lock on all return paths from libfaketime.c.
...
These gymnastics are necessary because pthread_cleanup_push
and pthread_cleanup_pop must match exactly 1:1 and appear at
the same level of indentation.
This is because pthread_cleanup_push/pop are implemented in
such a way that pthread_cleanup_push opens a scope and
pthread_cleanup_pop closes it.
They're macros with unbalanced brackets.
C, ladies and gentlemen.
So instead of returning, we have to set a field indicating our
intent to return and then jump to the unlock site.
2020-03-12 06:45:43 +01:00
Mathis Beer
796b30bebf
use pthread_sigmask instead of sigprocmask
...
pthread_sigmask is the one meant for threaded programs.
2020-03-12 06:43:33 +01:00
Wolfgang Hommel
70d26ec15c
Merge pull request #230 from FeepingCreature/fix/block-signals-while-locked
...
Fix deadlock issues with signals: block all signals while inside mutex.
2020-03-03 19:47:49 +01:00
Mathis Beer
052239d828
Fix deadlock issues with signals: block all signals while inside mutex.
2020-03-03 17:22:52 +01:00
Wolfgang Hommel
fe8c0acee6
Merge pull request #229 from FeepingCreature/fix/dont-allocate-stack-buffers
...
fake_clock_gettime: avoid placing large buffers on the stack
2020-02-20 21:10:19 +01:00
Mathis Beer
c44a332e0e
fake_clock_gettime: avoid placing large buffers on the stack
2020-02-20 12:14:14 +01:00
Wolfgang Hommel
a54f204209
Merge pull request #227 from wolfcw/develop
...
Refresh the monotonic faketime setting envvar when cache expires.
2020-02-14 19:42:23 +01:00
Wolfgang Hommel
195888434a
Merge pull request #225 from tjhowse/develop
...
Refresh the monotonic faketime setting envar when cache expires.
2020-02-14 19:36:06 +01:00
thowse
f7de52c07b
Refresh the monotonic faketime setting envar when cache expires.
2020-02-14 10:36:29 +10:00
Wolfgang Hommel
0efe7b3e3e
Merge pull request #220 from aristanemi/mul_overflow_fix
...
timespec multiplication overflow fix
2019-12-17 18:55:20 +01:00
Abhishek Sunkum Rammurthy
b542e14959
time multiplication overflow fix
...
In 32 bit platforms, timespecmul2() macro function, overflow occurs during multiplication.
Size of `long` type in 32 bit platform is 4 bytes, but the size of `long` type in 64 bit platform is 8 bytes.
2019-12-17 15:16:38 +01:00
Wolfgang Hommel
78385ba8b7
Use -DFAKE_FILE_TIMESTAMPS to intercept utime[s](), by @speq, #183
2019-12-14 21:49:23 +01:00
Wolfgang Hommel
b3dcef470e
fix #ifndef for timermul, @speq, #183
2019-12-14 21:30:31 +01:00
Wolfgang Hommel
90f11685b5
wrap nanosec ops in #ifndef, patch by @paul-j-lucas, #219
2019-12-14 19:49:04 +01:00
Wolfgang Hommel
d7ef17a0de
Merge pull request #218 from wolfcw/revert-178-automake-branch
...
Revert "Automake branch"
2019-11-30 09:37:00 +01:00
Wolfgang Hommel
3123ad7fe2
Revert "Automake branch"
2019-11-30 09:36:46 +01:00
Wolfgang Hommel
af2d2e5111
Merge pull request #178 from manchicken/automake-branch
...
Automake branch
2019-11-30 09:36:36 +01:00
Wolfgang Hommel
11fbc2ada1
Create make-test.yml
2019-11-30 09:16:43 +01:00
Michael D. Stemle, Jr
f92d919fb0
Merged master in and cleaned up.
...
We no longer need the OSX-specific test. Tests are passing, too.
2019-11-27 14:32:15 -05:00
Wolfgang Hommel
22f8c3dd36
Work around race conditions when semaphore gets deleted by parent process ( #217 )
2019-11-20 08:43:24 +01:00
Wolfgang Hommel
a0fe6b56b0
Merge pull request #215 from wolfcw/develop
...
Merge changes from develop branch
2019-11-14 19:33:00 +01:00
Wolfgang Hommel
fdc3c81ae0
Merge pull request #214 from daowens01/unused_variable_compiler_error
...
Wrap user_per_tick_inc_set_backup declaration in ifdef
2019-11-14 19:08:44 +01:00
David Owens
10b9818c2c
Wrap user_per_tick_inc_set_backup declaration in ifdef
...
Building without FAKE_STAT defined causes compilation errors due to
unused variable user_per_tick_inc_set_backup. Move declaration inside
FAKE_STAT section along with the code making use of it.
2019-11-14 09:27:27 -06:00
Wolfgang Hommel
826f8b7792
Detect and bail out of endless recursive calls to clock_gettime() ( #130 )
2019-09-05 22:52:07 +02:00
Wolfgang Hommel
5d1e6325f2
Add FAKE_SETTIME to CFLAGS to intercept time-setting calls ( #179 )
2019-09-03 12:01:33 +02:00
Wolfgang Hommel
8ed946cb63
Documentation for packagers, esp. about FORCE_PTHREAD_NONVER and FORCE_MONOTONIC_FIX
2019-08-31 21:32:52 +02:00
Wolfgang Hommel
108370f850
Adds FORCE_PTHREAD_NONVER flag for platforms where pthread functions are not intercepted
2019-08-29 09:55:04 +02:00
Wolfgang Hommel
3de0d02353
Add macOS / OSX build to .travis.yml
2019-08-23 21:20:48 +02:00
Wolfgang Hommel
dc2ae5eef3
Add FORCE_MONOTONIC_FIX to .travis.yml
v0.9.8
2019-08-23 19:34:51 +02:00
Wolfgang Hommel
1c05fdd333
Adding a simple .travis.yml file
2019-08-23 19:27:38 +02:00
Wolfgang Hommel
c60390a7e3
Updated documentation regarding compatibility, use on macOS, and contributions
2019-08-23 15:24:13 +02:00
Wolfgang Hommel
ece59abf39
Cleanup old and outdated packaging infos
2019-08-23 14:54:08 +02:00
Wolfgang Hommel
d79ed053d7
Updated documentation regarding shared memory, fixed spelling
2019-08-23 14:46:06 +02:00
Wolfgang Hommel
416c5f4708
Fix shared memory cleanup on local creation
2019-08-23 12:29:33 +02:00