Wolfgang Hommel
638a535b5f
Merge pull request #65 from kilobyte/master
...
Fix build failure on x32 (printf warnings).
2015-03-09 18:48:37 +01:00
Adam Borowski
cc4c1c3a29
Fix build failure on x32 (printf warnings).
...
On x32, time_t is 64-bit to avoid Y2038 problems. This doesn't play well
using printf("%ld"), and -Werror turns this into a build failure.
2015-03-09 08:39:06 +01:00
Wolfgang Hommel
6357820d52
Added hint about library search paths
2015-02-19 20:24:07 +01:00
Jon Ringle
64cb35857c
Merge branch 'develop' (Jon Ringle's patches)
...
Merge pull request #55 from ringlej/feature/fix-FAKETIME-cache
Conflicts:
src/libfaketime.c
2015-02-08 17:44:50 +01:00
Wolfgang Hommel
28d0acfedb
Merge pull request #62 from dubek/fix-mt-build
...
Fix libfaketimeMT build to define PTHREAD
2015-01-08 11:24:03 +01:00
Dov Murik
3ed13f498c
Fix libfaketimeMT build to define PTHREAD
2015-01-07 17:38:00 -05:00
Erich E. Hoover
afbb1f20c2
Fix possible infinite loop on construction.
2014-12-17 21:40:13 +01:00
Balint Reczey
68772ec36a
Hide internal functions
...
Also remove unused fake_time().
2014-12-11 08:13:40 +01:00
Balint Reczey
3bb30f74b3
Use constructor attribute at _declaration_
2014-12-11 08:06:28 +01:00
Erich E. Hoover
0bde083556
Make sure that the constructor has been called when the loader chose to load another constructor first.
2014-12-11 08:05:21 +01:00
Wolfgang Hommel
10b479cf29
Merge pull request #59 from mac-joker/master
...
New features: custom timestamp file and cache managment
2014-11-21 08:54:36 +01:00
Joker
75896bdd32
added runtime cache manipulation: change duration and active state with environment variables
2014-11-17 10:42:15 +01:00
Joker
6c207c9c68
Custom timestamp filename added: ~/.faketimerc alternative
2014-11-17 10:28:20 +01:00
Balint Reczey
527478d318
Merge pull request #58 from ltfetch/master
...
Wait for all transitive child processes to exit
2014-10-28 00:00:57 +01:00
ltfetch
48ef50f6c3
use pipe to block process exit until all transitive children exit
2014-10-26 20:40:24 -05:00
ltfetch
035add4eff
don't leak pipe fd
2014-10-27 01:10:13 +00:00
Wolfgang Hommel
455261985d
Merge pull request #55 from ringlej/feature/fix-FAKETIME-cache
...
Feature/fix faketime cache
2014-08-26 22:37:56 +02:00
Wolfgang Hommel
e680ca9bce
Merge pull request #54 from ringlej/feature/sem_timedwait
...
Add support to fake sem_timedwait
2014-08-26 22:33:21 +02:00
Jon Ringle
1c5a717528
Reset ftpl_starttime when setting new relative FT_START_AT time
...
Signed-off-by: Jon Ringle <jringle@gridpoint.com >
2014-08-26 13:23:59 -04:00
Jon Ringle
bdd0f0aea9
Don't parse user_faked_time if it hasn't changed
...
Signed-off-by: Jon Ringle <jringle@gridpoint.com >
2014-08-26 11:24:18 -04:00
Jon Ringle
7c26cffac6
Re-evaluate FAKETIME environment when cache expires
...
When the cache expires, the FAKETIME environment does not get re-evaluated
if FAKETIME value changes. This used to work on libfaketime-0.9.1, but was
broken at some point afterwards. This fixes this problem
Signed-off-by: Jon Ringle <jringle@gridpoint.com >
2014-08-26 11:24:13 -04:00
Jon Ringle
cac3dc732a
Add support to fake sem_timedwait
...
Signed-off-by: Jon Ringle <jringle@gridpoint.com >
2014-08-26 11:16:35 -04:00
Wolfgang Hommel
c7d7eeb49d
Merge pull request #52 from joyent/man-exclude-monotonic
...
docs: add --exclude-monotonic to man page.
2014-08-18 09:27:03 +02:00
Julien Gilli
cae9387908
docs: add --exclude-monotonic to man page.
...
This was missing from PR #49 .
2014-08-17 22:17:23 -07:00
Wolfgang Hommel
a6c8bb4636
Merge pull request #50 from joyent/sunos-smartos-support
...
Make libfaketime build, run and pass tests on SmartOS.
2014-08-07 19:46:48 +02:00
Julien Gilli
95b70c7acc
Make libfaketime build, run and pass tests on SmartOS.
...
Since SmartOS is close to SunOS, it's possible that these changes make
libfaketime build and run on other SunOS-like platforms.
These changes were tested on MacOS X and Ubuntu 12.04, and no regression
appeared during testing.
2014-08-06 11:29:02 -07:00
Wolfgang Hommel
841b782a4c
Started adding changes since v0.9.6 release
2014-07-26 09:56:41 +02:00
Wolfgang Hommel
03da54787c
Merge pull request #49 from joyent/dont-fake-monotonic-clocks
...
Add --exclude-monotonic command line option.
2014-07-26 09:50:55 +02:00
Julien Gilli
d19da98bb4
Add --exclude-monotonic command line option.
...
--exclude-monotonic prevents faketime from overriding
the clock with id CLOCK_MONOTONIC when using clock_gettime.
Add DONT_FAKE_MONOTONIC env variable to libfaketime that
has the same effect.
Add functional test for DONT_FAKE_MONOTONIC support.
2014-07-25 15:43:38 -07:00
Gerardo Malazdrewicz
3bed636a41
Debian Bug#753460: Updated fix for 699599
...
This patch checks if __clock_gettime is available, and if not,
it uses clock_gettime instead.
Maybe this patch can be improved using dlvsym.
2014-07-19 11:07:37 +02:00
Wolfgang Hommel
70aa6b394d
Preparations for 0.9.6 release
v0.9.6
2014-06-07 17:04:02 +02:00
Antonio Terceiro
1faf137f72
fix handling of existing LD_PRELOAD in environment
...
This patch fixes handling of the string length when composing an updated
LD_PRELOAD that includes both the previous value and the entry for
libeatmydata.
2014-06-07 16:50:05 +02:00
Kees Cook
7d1a8307e1
pass through exit codes when possible, otherwise report
...
failure and full waitpid status and exit with a failure.
2014-06-07 16:42:46 +02:00
Wolfgang Hommel
7fdcd1adaf
Merge branch 'develop'
2014-02-14 15:59:26 +01:00
Wolfgang Hommel
c3e4760338
Updated documentation for v0.9.6 & Makefile consolidation
2014-02-14 15:59:06 +01:00
Wolfgang Hommel
740e2858dc
OSX autoselection in primary Makefile
2014-02-13 12:33:00 +01:00
Han Jiang
1b6cdf3d0f
valgrind complains memory leak due to lack of sem_close()
2014-01-26 17:18:21 +01:00
Han Jiang
a34c2bd8c3
Typo when showing version information
2014-01-24 15:33:39 +01:00
Wolfgang Hommel
b28b5c3a5d
Update of the Homebrew formula and docs
2013-11-15 23:37:31 +01:00
Wolfgang Hommel
106818614d
Minor source code style fixes
2013-11-07 19:35:18 +01:00
Wolfgang Hommel
e653c388bf
Minor updates to debug msgs and docs related to filter commands
2013-10-30 21:47:56 +01:00
Wolfgang Hommel
64519e28e0
Merge pull request #37 from rbalint/filter-commands
...
Filter commands
2013-10-30 13:31:05 -07:00
Balint Reczey
0d04c87755
Constify progname
2013-10-28 23:02:21 +01:00
Balint Reczey
c2ca839b6a
Limit faking based on command name
2013-10-28 22:58:03 +01:00
Wolfgang Hommel
368f58c0f8
Added installation via Fink on OSX
2013-10-27 21:53:19 +01:00
Wolfgang Hommel
04ae576541
Packaging details, some for Linux
2013-10-27 11:33:16 +01:00
Wolfgang Hommel
2d0cc5d86b
Packaging details, starting with OS X
2013-10-27 10:24:20 +01:00
Wolfgang Hommel
3a8a2b0351
fix value for kFreeBSD
2013-10-20 21:56:56 +02:00
Balint Reczey
1f938d9642
Use SIGUSR1 instead of SIGRTMIN in tests
...
This will probably fix compilation on Debian GNU/Hurd
2013-10-20 17:28:29 +02:00
Balint Reczey
5fb86ae178
Define CLOCK_MONOTONIC_RAW where it is not present
...
This fixes compilation on Debian GNU/kFreeBSD
2013-10-20 17:16:20 +02:00