692 Commits

Author SHA1 Message Date
Balint Reczey
4c253b3865 Speed up/slow down per process timers 2013-08-28 14:41:48 +02:00
Balint Reczey
8bb28faa91 Save faked timestamps to file, load faked timestamps from file
The files can be set using FAKETIME_SAVE_FILE and FAKETIME_LOAD_FILE
environment variables respectively.
2013-08-28 14:41:48 +02:00
Balint Reczey
7caed1a0c8 Fix typo setting wrong value for startup time on __APPLE__ 2013-08-28 14:38:11 +02:00
Wolfgang Hommel
30dd22e157 Merging Balint's files 2013-08-25 10:42:36 +02:00
Balint Reczey
ebf08018ff Refactor time faking calculations 2013-08-24 23:57:08 +02:00
Balint Reczey
6094fa9d87 Use nanosecond resolution for timestamps internally 2013-08-24 23:52:41 +02:00
Wolfgang Hommel
03fbad9bca Revert a0e3346..2dceb57
This rolls back to commit a0e33461a0.
2013-08-24 21:24:57 +02:00
Balint Reczey
45e9b4609e Refactor environment variable parsing and faking calculation 2013-08-24 15:52:09 +02:00
Balint Reczey
639d9caec8 Refactor limited faking and spawn support 2013-08-23 02:41:21 +02:00
Wolfgang Hommel
2dceb574ac Merge pull request #22 from tonigi/master
Libfaketime patch: process-shared "start at"
2013-08-22 06:53:12 -07:00
Toni G
b84e76ccf8 Merge branch 'master' of github.com:tonigi/libfaketime 2013-08-22 02:09:15 +02:00
Toni G
1ac7472769 Comment 2013-08-22 02:08:46 +02:00
Toni G
b4e3028494 explanation in readme 2013-08-22 02:08:30 +02:00
Toni G
b97121f7d6 explanation in readme 2013-08-22 02:07:16 +02:00
Toni G
982d90cbd2 comment 2013-08-22 01:57:39 +02:00
Toni G
af245d9d6c explanation in readme 2013-08-22 01:49:53 +02:00
Toni G
6db9ee8cf2 refactored ^ + @ 2013-08-22 01:30:44 +02:00
Toni G
fd1d3f161e explicit failure if ^ and not faketime 2013-08-22 01:13:31 +02:00
Toni G
ee8b780a87 Caret debugged, works 2013-08-22 01:03:16 +02:00
Toni G
39fc1bb0a8 attempt at global relative 2013-08-21 23:26:04 +02:00
Toni G
4a4673df6c guard against broken dlsym which returns 0 on __clock_gettime but does not set dlerror() 2013-08-21 21:27:02 +02:00
Toni G
65df40a624 added pthreads in make 2013-08-21 20:30:16 +02:00
Wolfgang Hommel
a0e33461a0 avoid_loop Patch by Gerardo Malazdrewicz <gerardo@malazdrewicz.com.ar> 2013-08-21 10:00:50 +02:00
Wolfgang Hommel
a2c8ac6687 moved outside #ifdef FAKE_STAT 2013-08-21 09:54:10 +02:00
Wolfgang Hommel
6f7acba526 Merge pull request #21 from rbalint/deterministic-time
Deterministic time
2013-08-20 23:36:13 -07:00
Balint Reczey
7287f9fe1d Cut _ftpl_time() 2013-08-20 15:40:51 +02:00
Balint Reczey
b9a46c9536 Look up all faked functions during library init
This makes us able to avoid protecting lookups with mutexes
2013-08-20 15:13:23 +02:00
Balint Reczey
bd5150e8dc Merge shared object init to existing constructor function 2013-08-19 21:13:10 +02:00
Balint Reczey
d5cd7064f5 Use the same global clock for all processes spawned by faketime -f '... iN'
In case the clock is set to advance with each faked time(), etc. call, the
counter uses the same clock counter stored in shared memory and protected
by a semaphore.
2013-08-19 14:08:51 +02:00
Balint Reczey
bfd4b9f5f3 Rewrite faketime shell script in C 2013-08-19 13:26:17 +02:00
Balint Reczey
ae45c5c48e Don't set USEDIRECT implicitly when the date looks suspicious 2013-08-17 22:16:44 +02:00
Wolfgang Hommel
c127aec450 Merge pull request #20 from rbalint/deterministic-time
Advance time with each time(), gettimeofday(), etc. call
2013-08-15 12:16:46 -07:00
Balint Reczey
2451de2244 Advance time with each time(), gettimeofday(), etc. call 2013-08-15 18:50:41 +02:00
Wolfgang Hommel
946f8e2378 GNU/kFreeBSD fix by Petr Salinger, fixes Bug#712709 2013-06-20 20:42:44 +02:00
Wolfgang Hommel
043d457fd2 Merge pull request #19 from dkg/wolf
build system fixes
2013-06-12 00:18:38 -07:00
Daniel Kahn Gillmor
02a0a3b231 separate the testing step from the build step
There are circumstances where you just want to repeat the build
without running the tests.  keeping the "test" target distinct from
the "all" target makes it possible to do that cleanly.
2013-06-11 10:23:05 -04:00
Daniel Kahn Gillmor
c818885733 Fix link order for --as-needed (see http://bugs.debian.org/711958)
In Ubuntu, the attached patch was applied to achieve the following:

  * as-needed.patch: Fix object/library link order for --as-needed.

When building with --as-needed, libraries need to be listed on the
link line after the objects that reference them.  In the autotools
world (and elsewhere), the LDFLAGS variable has been split into
LDFLAGS and LDADD to represent the need to list libs last.  This
patch makes that change to your Makefile, so this builds correctly
with --as-needed in LDFLAGS.
2013-06-11 10:13:25 -04:00
Daniel Kahn Gillmor
337581c040 allow overriding specific arguments without changing the Makefile
for example, now you can do:

 make PREFIX=/usr

without any modification to the Makefile and have it behave as
intended.
2013-06-11 10:10:14 -04:00
Wolfgang Hommel
e55e800a4c Merge pull request #16 from adrelanos/master
Time Privacy script
2013-05-09 23:47:56 -07:00
adrelanos
bb350d4b77 added command line options 2013-05-06 03:39:11 +00:00
adrelanos
eaa8e53318 Create timeprivacy
see https://github.com/adrelanos/timeprivacy
2013-05-03 03:45:45 +00:00
Wolfgang Hommel
10074a0030 Hugues Andreux: better support for different installation locations 2013-02-20 19:52:18 +01:00
Wolfgang Hommel
4c2ff5e559 Merge pull request #11 from dfong/master
bug in reading faketimerc
2012-11-28 10:11:52 -08:00
don fong
cd267e8dd5 whitespace fix
replace tabs with spaces to match surrounding code
2012-11-27 14:01:12 -08:00
don fong
bd1de99d3a bug in reading faketimerc
if the faketimerc file begins with an empty line, then the inner
loop that trims trailing eol chars could possibly step backward
past the beginning of the buffer (line).  if the byte just
preceding line also happened to contain a '\n' or '\r',
it could be clobbered.
2012-11-27 13:38:48 -08:00
Wolfgang Hommel
471e2a5620 Fixed 2012-11-24 19:40:10 +01:00
Wolfgang Hommel
037552cfed fixed a bug reported by goofansu 2012-11-23 21:03:39 +01:00
Wolfgang Hommel
dab8698a03 Merge pull request #8 from domo141/d3ff79a
Implementation of implicit '-f'
2012-09-10 22:24:07 -07:00
Tomi Ollila
d3ff79a0aa src/faketime: implicit '-f' for $offset that is faketime-known relative
When $offset arg looks like the relative value described in README
section "4d) Using offsets for relative dates", set USEDIRECT variable
even when '-f' option is not present. Without the '-f' the $offset would
be useless so this is convenience feature for the user. Using '-f' in
command line to explicitly set USEDIRECT is retained.
2012-09-09 20:36:37 +03:00
Wolfgang Hommel
532f0dc65d Merge pull request #7 from domo141/topic-wsc1
whitespace cleanup
2012-08-30 09:48:22 -07:00