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
Wolfgang Hommel
a238cfa2b6
Added FAKETIME_COMPILE_CFLAGS to Makefiles
2019-08-23 11:38:35 +02:00
Wolfgang Hommel
ba32d1b01c
Added FORCE_MONOTONIC_FIX CFLAG to avoid hangs on timedwait ( #202 #142 )
2019-08-23 10:29:53 +02:00
Wolfgang Hommel
30ba0b852a
Fix Makefile to run 'make src' before running 'make test' ( #201 )
2019-08-23 10:12:38 +02:00
Wolfgang Hommel
5932e38032
Handle platforms that do not implement semopen() ( #203 )
2019-08-23 10:08:32 +02:00
Wolfgang Hommel
13748ddb22
Fix building on macOS in preparation of v0.9.8 release
2019-08-22 23:39:36 +02:00
Wolfgang Hommel
5f033fe486
Intercept epoll_wait(), epoll_pwait(), and pselect() ( #115 )
2019-08-22 23:29:48 +02:00
Wolfgang Hommel
52108dba7a
Added FAKETIME_XRESET to smoothen run-time transition between 'x' modifier values ( #198 )
2019-08-22 00:49:21 +02:00
Wolfgang Hommel
5ddb237842
Adjusted tests on macOS based on compilation defaults
2019-08-21 18:42:05 +02:00
Wolfgang Hommel
314b1298c9
Added support for clock_nanosleep() ( #105 )
2019-08-21 18:05:17 +02:00
Wolfgang Hommel
7573d20cd4
Further preparations for the upcoming v0.9.8 release
2019-08-21 11:01:24 +02:00
Wolfgang Hommel
0c8905f4ad
fix stat faking when FAKETIME 'i' modifier is set ( #183 )
2019-08-21 10:23:01 +02:00
Wolfgang Hommel
57917c4d5a
Added follow-file-timestamp mode via FAKETIME='%' and FAKETIME_FOLLOW_FILE ( #156 )
2019-08-20 19:43:15 +02:00
Wolfgang Hommel
e85863f671
Added note regarding leap year handling in documentation ( #145 )
2019-08-20 18:07:17 +02:00
Wolfgang Hommel
d5c0050684
Added environment variable FAKETIME_DONT_RESET to enable old start-at behavior ( #163 )
2019-08-20 15:43:29 +02:00
Wolfgang Hommel
b855b8a0d3
Updated documentation regarding offset specification on x/i modifiers
2019-08-20 13:08:36 +02:00
Wolfgang Hommel
29efeed247
don't fake time during dlsym() calls in ftpl_init ( #130 )
2019-08-20 10:49:01 +02:00
Wolfgang Hommel
c13e41024e
Improved handling of shm/semaphores w.r.t. stale states ( #199 )
2019-08-20 09:53:22 +02:00