summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #244 from sdettmer/dev/sde/faketime_link_flagsdevelopWolfgang Hommel2020-04-083-2/+7
|\ | | | | Added support for FAKETIME_LINK_FLAGS for #243.
| * Added support for FAKETIME_LINK_FLAGS for #243.Steffen Dettmer2020-04-083-2/+7
|/
* Unskip file parsing on improper initialization #240Wolfgang Hommel2020-03-261-28/+45
|
* Merge pull request #237 from ↵Wolfgang Hommel2020-03-161-7/+7
|\ | | | | | | | | FeepingCreature/fix/use-pthread-mutex-initializer-again replace global state struct with local state struct holding a pointer to the global mutex variable
| * replace global state struct with local state struct holding a pointer to the ↵Mathis Beer2020-03-161-7/+7
|/ | | | | | | | global mutex variable this fixes the `{ 0 }` initializer not compiling on some platforms fix issue 231 fix issue 235
* Merge pull request #234 from FeepingCreature/fix/use-appropriate-mask-functionWolfgang Hommel2020-03-121-10/+23
|\ | | | | Fix timing issue with multiple threads
| * fix threading issue: don't assign to the global lock state struct until ↵Mathis Beer2020-03-121-3/+5
| | | | | | | | | | | | | | we're safely inside the mutex. Otherwise, we might be overwriting the global lock state from two different threads at once.
| * Unlock faketime lock on all return paths from libfaketime.c.Mathis Beer2020-03-121-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * use pthread_sigmask instead of sigprocmaskMathis Beer2020-03-121-3/+2
|/ | | | pthread_sigmask is the one meant for threaded programs.
* Merge pull request #230 from FeepingCreature/fix/block-signals-while-lockedWolfgang Hommel2020-03-031-5/+26
|\ | | | | Fix deadlock issues with signals: block all signals while inside mutex.
| * Fix deadlock issues with signals: block all signals while inside mutex.Mathis Beer2020-03-031-5/+26
|/
* Merge pull request #229 from FeepingCreature/fix/dont-allocate-stack-buffersWolfgang Hommel2020-02-201-3/+3
|\ | | | | fake_clock_gettime: avoid placing large buffers on the stack
| * fake_clock_gettime: avoid placing large buffers on the stackMathis Beer2020-02-201-3/+3
|/
* Merge pull request #227 from wolfcw/developWolfgang Hommel2020-02-141-8/+27
|\ | | | | | | Refresh the monotonic faketime setting envvar when cache expires.
| * Merge pull request #225 from tjhowse/developWolfgang Hommel2020-02-141-8/+27
| |\ | | | | | | Refresh the monotonic faketime setting envar when cache expires.
| | * Refresh the monotonic faketime setting envar when cache expires.thowse2020-02-141-8/+27
| |/
* | Merge pull request #220 from aristanemi/mul_overflow_fixWolfgang Hommel2019-12-171-3/+3
|\ \ | | | | | | timespec multiplication overflow fix
| * | time multiplication overflow fixAbhishek Sunkum Rammurthy2019-12-171-3/+3
|/ / | | | | | | | | 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.
* | Use -DFAKE_FILE_TIMESTAMPS to intercept utime[s](), by @speq, #183Wolfgang Hommel2019-12-141-0/+75
| |
* | fix #ifndef for timermul, @speq, #183Wolfgang Hommel2019-12-141-1/+1
|/
* wrap nanosec ops in #ifndef, patch by @paul-j-lucas, #219Wolfgang Hommel2019-12-141-0/+12
|
* Merge pull request #218 from wolfcw/revert-178-automake-branchWolfgang Hommel2019-11-3034-10134/+430
|\ | | | | Revert "Automake branch"
| * Revert "Automake branch"revert-178-automake-branchWolfgang Hommel2019-11-3034-10134/+430
|/
* Merge pull request #178 from manchicken/automake-branchWolfgang Hommel2019-11-3034-430/+10134
|\ | | | | Automake branch
| * Merged master in and cleaned up.Michael D. Stemle, Jr2019-11-2729-553/+1020
| |\ | | | | | | We no longer need the OSX-specific test. Tests are passing, too.
| * | Added a check for missing libtool.Mike Stemle2018-10-111-0/+4
| | |
| * | Fixed a _bunch_ of autotools bugs.Michael D. Stemle, Jr2018-10-079-39/+120
| | |
| * | Applying fixes for GNU/Linux, and the MT variant of the library.Michael D. Stemle, Jr2018-10-032-33/+19
| | |
| * | Fixed a bunch more issues, including prefix-related issues and library ↵Michael D. Stemle, Jr2018-10-024-12/+15
| | | | | | | | | | | | version breakage.
| * | Fixing a couple of issues I just found.Michael D. Stemle, Jr2018-10-023-11/+5
| | |
| * | Added GNU autotools support.Michael D. Stemle, Jr2018-10-0221-8/+10021
| | |
| * | Removing old makefiles.Michael D. Stemle, Jr2018-10-017-317/+0
| | |
* | | Create make-test.ymlWolfgang Hommel2019-11-301-0/+23
| | |
* | | Work around race conditions when semaphore gets deleted by parent process (#217)Wolfgang Hommel2019-11-201-4/+23
| | |
* | | Merge pull request #215 from wolfcw/developWolfgang Hommel2019-11-142-2/+3
|\ \ \ | |_|/ |/| | Merge changes from develop branch
| * | Merge pull request #214 from daowens01/unused_variable_compiler_errorWolfgang Hommel2019-11-141-2/+1
| |\ \ | | | | | | | | Wrap user_per_tick_inc_set_backup declaration in ifdef
| | * | Wrap user_per_tick_inc_set_backup declaration in ifdefDavid Owens2019-11-141-2/+1
| |/ / | | | | | | | | | | | | | | | 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.
| * | Add macOS / OSX build to .travis.ymlWolfgang Hommel2019-08-231-0/+2
| | |
* | | Detect and bail out of endless recursive calls to clock_gettime() (#130)Wolfgang Hommel2019-09-051-15/+37
| | |
* | | Add FAKE_SETTIME to CFLAGS to intercept time-setting calls (#179)Wolfgang Hommel2019-09-034-0/+114
| | |
* | | Documentation for packagers, esp. about FORCE_PTHREAD_NONVER and ↵Wolfgang Hommel2019-08-312-0/+68
| | | | | | | | | | | | FORCE_MONOTONIC_FIX
* | | Adds FORCE_PTHREAD_NONVER flag for platforms where pthread functions are not ↵Wolfgang Hommel2019-08-291-1/+1
|/ / | | | | | | intercepted
* | Add FORCE_MONOTONIC_FIX to .travis.ymlv0.9.8Wolfgang Hommel2019-08-231-1/+1
| |
* | Adding a simple .travis.yml fileWolfgang Hommel2019-08-231-0/+11
| |
* | Updated documentation regarding compatibility, use on macOS, and contributionsWolfgang Hommel2019-08-234-43/+72
| |
* | Cleanup old and outdated packaging infosWolfgang Hommel2019-08-2314-422/+0
| |
* | Updated documentation regarding shared memory, fixed spellingWolfgang Hommel2019-08-232-2/+28
| |
* | Fix shared memory cleanup on local creationWolfgang Hommel2019-08-231-1/+1
| |
* | Added FAKETIME_COMPILE_CFLAGS to MakefilesWolfgang Hommel2019-08-234-4/+4
| |
* | Added FORCE_MONOTONIC_FIX CFLAG to avoid hangs on timedwait (#202 #142)Wolfgang Hommel2019-08-235-3/+21
| |