Commit Graph

  • f8a0ad2496 Merge pull request #244 from sdettmer/dev/sde/faketime_link_flags develop Wolfgang Hommel 2020-04-08 19:47:46 +02:00
  • 0e3269efdc Added support for FAKETIME_LINK_FLAGS for #243. Steffen Dettmer 2020-04-08 19:30:20 +02:00
  • 04e78e67bf Unskip file parsing on improper initialization #240 Wolfgang Hommel 2020-03-26 20:07:24 +01:00
  • 0e798503a4 Merge pull request #237 from FeepingCreature/fix/use-pthread-mutex-initializer-again Wolfgang Hommel 2020-03-16 13:45:37 +01:00
  • 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 Mathis Beer 2020-03-16 07:57:07 +01:00
  • 8075c2e250 Merge pull request #234 from FeepingCreature/fix/use-appropriate-mask-function Wolfgang Hommel 2020-03-12 21:39:17 +01:00
  • 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. Mathis Beer 2020-03-12 06:37:05 +01:00
  • b4dea2ef9b Unlock faketime lock on all return paths from libfaketime.c. Mathis Beer 2020-03-11 14:34:25 +01:00
  • 796b30bebf use pthread_sigmask instead of sigprocmask pthread_sigmask is the one meant for threaded programs. Mathis Beer 2020-03-11 14:19:47 +01:00
  • 70d26ec15c Merge pull request #230 from FeepingCreature/fix/block-signals-while-locked Wolfgang Hommel 2020-03-03 19:47:49 +01:00
  • 052239d828 Fix deadlock issues with signals: block all signals while inside mutex. Mathis Beer 2020-03-03 16:39:42 +01:00
  • fe8c0acee6 Merge pull request #229 from FeepingCreature/fix/dont-allocate-stack-buffers Wolfgang Hommel 2020-02-20 21:10:19 +01:00
  • c44a332e0e fake_clock_gettime: avoid placing large buffers on the stack Mathis Beer 2020-02-20 12:14:14 +01:00
  • a54f204209 Merge pull request #227 from wolfcw/develop Wolfgang Hommel 2020-02-14 19:42:23 +01:00
  • 195888434a Merge pull request #225 from tjhowse/develop Wolfgang Hommel 2020-02-14 19:36:06 +01:00
  • f7de52c07b Refresh the monotonic faketime setting envar when cache expires. thowse 2020-02-14 10:36:29 +10:00
  • 0efe7b3e3e Merge pull request #220 from aristanemi/mul_overflow_fix Wolfgang Hommel 2019-12-17 18:55:20 +01:00
  • b542e14959 time multiplication overflow fix Abhishek Sunkum Rammurthy 2019-12-17 15:16:12 +01:00
  • 78385ba8b7 Use -DFAKE_FILE_TIMESTAMPS to intercept utime[s](), by @speq, #183 Wolfgang Hommel 2019-12-14 21:49:23 +01:00
  • b3dcef470e fix #ifndef for timermul, @speq, #183 Wolfgang Hommel 2019-12-14 21:30:31 +01:00
  • 90f11685b5 wrap nanosec ops in #ifndef, patch by @paul-j-lucas, #219 Wolfgang Hommel 2019-12-14 19:49:04 +01:00
  • d7ef17a0de Merge pull request #218 from wolfcw/revert-178-automake-branch Wolfgang Hommel 2019-11-30 09:37:00 +01:00
  • 3123ad7fe2 Revert "Automake branch" Wolfgang Hommel 2019-11-30 09:36:46 +01:00
  • af2d2e5111 Merge pull request #178 from manchicken/automake-branch Wolfgang Hommel 2019-11-30 09:36:36 +01:00
  • 11fbc2ada1 Create make-test.yml Wolfgang Hommel 2019-11-30 09:16:43 +01:00
  • f92d919fb0 Merged master in and cleaned up. Michael D. Stemle, Jr 2019-11-27 14:32:15 -05:00
  • 22f8c3dd36 Work around race conditions when semaphore gets deleted by parent process (#217) Wolfgang Hommel 2019-11-20 08:43:24 +01:00
  • a0fe6b56b0 Merge pull request #215 from wolfcw/develop Wolfgang Hommel 2019-11-14 19:33:00 +01:00
  • fdc3c81ae0 Merge pull request #214 from daowens01/unused_variable_compiler_error Wolfgang Hommel 2019-11-14 19:08:44 +01:00
  • 10b9818c2c Wrap user_per_tick_inc_set_backup declaration in ifdef David Owens 2019-11-14 09:27:27 -06:00
  • 826f8b7792 Detect and bail out of endless recursive calls to clock_gettime() (#130) Wolfgang Hommel 2019-09-05 22:52:07 +02:00
  • 5d1e6325f2 Add FAKE_SETTIME to CFLAGS to intercept time-setting calls (#179) Wolfgang Hommel 2019-09-03 12:01:33 +02:00
  • 8ed946cb63 Documentation for packagers, esp. about FORCE_PTHREAD_NONVER and FORCE_MONOTONIC_FIX Wolfgang Hommel 2019-08-31 21:32:52 +02:00
  • 108370f850 Adds FORCE_PTHREAD_NONVER flag for platforms where pthread functions are not intercepted Wolfgang Hommel 2019-08-29 09:55:04 +02:00
  • 3de0d02353 Add macOS / OSX build to .travis.yml Wolfgang Hommel 2019-08-23 21:20:48 +02:00
  • dc2ae5eef3 Add FORCE_MONOTONIC_FIX to .travis.yml v0.9.8 Wolfgang Hommel 2019-08-23 19:34:51 +02:00
  • 1c05fdd333 Adding a simple .travis.yml file Wolfgang Hommel 2019-08-23 19:27:38 +02:00
  • c60390a7e3 Updated documentation regarding compatibility, use on macOS, and contributions Wolfgang Hommel 2019-08-23 15:24:13 +02:00
  • ece59abf39 Cleanup old and outdated packaging infos Wolfgang Hommel 2019-08-23 14:54:08 +02:00
  • d79ed053d7 Updated documentation regarding shared memory, fixed spelling Wolfgang Hommel 2019-08-23 14:46:06 +02:00
  • 416c5f4708 Fix shared memory cleanup on local creation Wolfgang Hommel 2019-08-23 12:29:33 +02:00
  • a238cfa2b6 Added FAKETIME_COMPILE_CFLAGS to Makefiles Wolfgang Hommel 2019-08-23 11:38:35 +02:00
  • ba32d1b01c Added FORCE_MONOTONIC_FIX CFLAG to avoid hangs on timedwait (#202 #142) Wolfgang Hommel 2019-08-23 10:29:53 +02:00
  • 30ba0b852a Fix Makefile to run 'make src' before running 'make test' (#201) Wolfgang Hommel 2019-08-23 10:12:38 +02:00
  • 5932e38032 Handle platforms that do not implement semopen() (#203) Wolfgang Hommel 2019-08-23 10:08:32 +02:00
  • 13748ddb22 Fix building on macOS in preparation of v0.9.8 release Wolfgang Hommel 2019-08-22 23:39:36 +02:00
  • 5f033fe486 Intercept epoll_wait(), epoll_pwait(), and pselect() (#115) Wolfgang Hommel 2019-08-22 23:29:48 +02:00
  • 52108dba7a Added FAKETIME_XRESET to smoothen run-time transition between 'x' modifier values (#198) Wolfgang Hommel 2019-08-22 00:49:21 +02:00
  • 5ddb237842 Adjusted tests on macOS based on compilation defaults Wolfgang Hommel 2019-08-21 18:42:05 +02:00
  • 314b1298c9 Added support for clock_nanosleep() (#105) Wolfgang Hommel 2019-08-21 18:04:48 +02:00
  • 7573d20cd4 Further preparations for the upcoming v0.9.8 release Wolfgang Hommel 2019-08-21 11:01:24 +02:00
  • 0c8905f4ad fix stat faking when FAKETIME 'i' modifier is set (#183) Wolfgang Hommel 2019-08-21 10:23:01 +02:00
  • 57917c4d5a Added follow-file-timestamp mode via FAKETIME='%' and FAKETIME_FOLLOW_FILE (#156) Wolfgang Hommel 2019-08-20 19:43:15 +02:00
  • e85863f671 Added note regarding leap year handling in documentation (#145) Wolfgang Hommel 2019-08-20 18:07:17 +02:00
  • d5c0050684 Added environment variable FAKETIME_DONT_RESET to enable old start-at behavior (#163) Wolfgang Hommel 2019-08-20 15:43:29 +02:00
  • b855b8a0d3 Updated documentation regarding offset specification on x/i modifiers Wolfgang Hommel 2019-08-20 13:08:36 +02:00
  • 29efeed247 don't fake time during dlsym() calls in ftpl_init (#130) Wolfgang Hommel 2019-08-20 10:49:01 +02:00
  • c13e41024e Improved handling of shm/semaphores w.r.t. stale states (#199) Wolfgang Hommel 2019-08-20 09:53:22 +02:00
  • 65cdc7b718 Avoid hangs with clock_monotonic for pthread_cond_timedwait Wolfgang Hommel 2019-08-19 19:38:01 +02:00
  • d923612c2b Improved cross-platform compatibility defaults Wolfgang Hommel 2019-08-19 19:16:07 +02:00
  • 59127e7514 More error details on sem_open failures Wolfgang Hommel 2019-08-19 14:21:47 +02:00
  • 3b494ac6c9 Safety check when creating semaphore locally Wolfgang Hommel 2019-08-18 19:06:52 +02:00
  • 073d185102 More detailed error messages on shm errors Wolfgang Hommel 2019-08-16 15:53:47 +02:00
  • a70db9196a Shared memory cleanup when it was created locally Wolfgang Hommel 2019-08-13 19:48:29 +02:00
  • 7498c405ed Create shared memory if we don't have it yet (#120) Wolfgang Hommel 2019-08-13 19:35:45 +02:00
  • aa091db286 Preparations for 0.9.8 release Wolfgang Hommel 2019-08-12 12:25:41 +02:00
  • 5e56e9a8fe addressing #190 #196 Wolfgang Hommel 2019-08-04 18:47:30 +02:00
  • fe42c2b4cf start-at-faketime startup fix, addresses #196 Wolfgang Hommel 2019-08-04 17:59:33 +02:00
  • 579b908580 Merge pull request #194 from qnox/configuration_reload_fix Wolfgang Hommel 2019-06-26 19:20:38 +02:00
  • 2827a69ffe fixed configuration reload qnox 2019-06-26 17:40:37 +02:00
  • 949183381f Merge pull request #192 from qnox/fake_pthreads_thread_safety Wolfgang Hommel 2019-06-01 12:28:07 +02:00
  • ff48a007a2 fixed thread safety issue in pthread faking methods qnox 2019-05-31 22:27:10 +02:00
  • 9846eceb10 Use absolute offset in #190, fix case 1 Wolfgang Hommel 2019-05-03 16:03:13 +02:00
  • 7bc0d5044f Use absolute offset in #190 Wolfgang Hommel 2019-05-03 15:45:28 +02:00
  • ceac4c7036 Merge pull request #184 from FeepingCreature/fix-inconsistent-envvar Wolfgang Hommel 2019-02-05 08:11:21 +01:00
  • 5c4fdb5173 Rename DONT_FAKE_MONOTONIC to FAKETIME_DONT_FAKE_MONOTONIC for consistency. The old variable still works. Mathis Beer 2019-02-05 07:43:40 +01:00
  • 150a6cb3b2 Added a check for missing libtool. Mike Stemle 2018-10-11 10:22:04 -04:00
  • 39a85e380c Fixed a _bunch_ of autotools bugs. Michael D. Stemle, Jr 2018-10-07 22:38:55 -04:00
  • 825043515f Applying fixes for GNU/Linux, and the MT variant of the library. Michael D. Stemle, Jr 2018-10-03 22:17:28 -04:00
  • 335617c4c7 Fixed a bunch more issues, including prefix-related issues and library version breakage. Michael D. Stemle, Jr 2018-10-02 23:22:51 -04:00
  • 96668a9c6d Fixing a couple of issues I just found. Michael D. Stemle, Jr 2018-10-02 22:20:14 -04:00
  • 24fd806e6b Added GNU autotools support. Michael D. Stemle, Jr 2018-10-02 22:02:30 -04:00
  • 39c6872f6d Removing old makefiles. Michael D. Stemle, Jr 2018-10-01 20:08:27 -04:00
  • 5c6518c597 Merge pull request #171 from ringlej/fixes Wolfgang Hommel 2018-08-01 19:29:00 +02:00
  • 93148b3599 Allow specifying fractions of a second when setting FAKETIME Jon Ringle 2015-12-04 13:41:05 -05:00
  • 9a2c84d68c Merge pull request #161 from tpetazzoni/gcc8-fixes Wolfgang Hommel 2018-05-18 06:20:16 +02:00
  • 8e5af129ff faketime.c: fix shared_objs[] array size Thomas Petazzoni 2018-05-17 23:32:31 +02:00
  • 096c11b563 libfaketime.c: fix uninitialized 'result' use Thomas Petazzoni 2018-05-17 22:57:53 +02:00
  • 9bfae502d1 libfaketime.c: fix pthread_cleanup_push() build failure Thomas Petazzoni 2018-05-17 22:56:38 +02:00
  • 0d964363a4 libfaketime.c: fix strncpy() issues raised by gcc 8.x Thomas Petazzoni 2018-05-17 22:55:22 +02:00
  • 8107db7849 Improved parsing error logging Wolfgang Hommel 2018-05-03 19:36:47 +02:00
  • c9473def03 Merge pull request #146 from FeepingCreature/feature/wait-ms Wolfgang Hommel 2018-02-20 06:29:18 +01:00
  • baeed314cf Merge pull request #148 from dkg/use-CPPFLAGS Wolfgang Hommel 2018-02-20 06:22:38 +01:00
  • 90727b7d19 Use CPPFLAGS during compilation Daniel Kahn Gillmor 2018-02-19 11:50:56 -08:00
  • 8c22d91057 Merge pull request #147 from dkg/fixalpha Wolfgang Hommel 2018-02-19 20:41:23 +01:00
  • a5d7f5b1cc fix gettimeofday() on alpha (see https://bugs.debian.org/890813) Michael Cree 2018-02-19 11:28:27 -08:00
  • 229ce22fbc Add FAKETIME_WAIT_MS to force pthread_cond_timedwait to wait x ms instead of what its parameters say. This prevents us from getting stuck in place when the timestamp changes. Mathis Beer 2018-02-19 10:25:13 +01:00
  • 0487e41c34 Merge pull request #141 from dkg/speling Wolfgang Hommel 2018-01-16 20:25:11 +01:00
  • b3a2667e9f fix spelling :) Daniel Kahn Gillmor 2018-01-16 14:21:36 -05:00
  • 6a4d1cc84e Merge pull request #140 from jprjr/musl-compat Wolfgang Hommel 2018-01-14 19:55:09 +01:00