Commit Graph

540 Commits

Author SHA1 Message Date
Wolfgang Hommel
46a0f84c1e Intecept pthread_cond_clockwait (addresses #353) 2022-02-20 21:51:28 +01:00
Wolfgang Hommel
985d666d73 Honor x/i flags also with frozen faketime stamps (closes #360) 2022-02-20 21:22:01 +01:00
Wolfgang Hommel
9dcaf53fd7 faketime wrapper complains when env vars are set unless comp/w SILENT (closes #307) 2022-02-20 20:40:19 +01:00
Wolfgang Hommel
02bc1fccae Version bump to 0.9.10 (prepares for #366) 2022-02-20 17:53:54 +01:00
Wolfgang Hommel
2c02fc08ef Further dyld interposing for macOS Monterey support (addresses #357) 2022-02-20 17:39:17 +01:00
Wolfgang Hommel
2d5126411b Merge pull request #363 from sirainen/new-calls
Add fstat(), stat() and lstat() calls
2022-02-18 20:56:42 +01:00
Wolfgang Hommel
ee4f57d8a5 Additional dyld interposing for macOS Monterey support (addresses #357) 2022-02-16 21:27:08 +01:00
Timo Sirainen
f09c98a89f Add fstat(), stat() and lstat() calls 2022-02-16 12:01:35 +02:00
Timo Sirainen
527da8441b Implement all stat-like functions with STAT_HANDLER() and STAT64_HANDLER() macros 2022-02-16 11:58:42 +02:00
Timo Sirainen
79defa361e Check missing real_* functions using CHECK_MISSING_REAL() macro 2022-02-16 11:58:05 +02:00
Timo Sirainen
6d7c42e2df Fix disabling all *stat*() faking during initialization
Only __xstat() variant was handling the dont_fake variable.
2022-02-16 11:58:04 +02:00
Timo Sirainen
a7e536bcca Rename real_*stat* variables to correspond to the actual function names 2022-02-16 11:55:30 +02:00
Wolfgang Hommel
5466cd8a5f Merge branch 'macos' 2022-02-06 21:40:50 +01:00
Wolfgang Hommel
61490dc09a Change dyld interposing for basic macOS Monterey support (addresses #357) 2022-02-06 21:39:29 +01:00
Wolfgang Hommel
db47664840 Merge pull request #368 from dkg/clean-strptime
Avoid spurious "Success" error message.
2022-02-05 09:22:53 +01:00
Daniel Kahn Gillmor
bc24e278ff Avoid spurious "Success" error message.
strptime(3) doesn't set errno, so when it was failing, calling perror()
meant producing messages like:

Failed to parse FAKETIME timestamp: Success

Rather than use perror(), just send the warning message directly to
stderr.

This was first reported in https://bugs.debian.org/939789
2022-02-04 19:04:45 -05:00
Wolfgang Hommel
b0b9432ea4 Merge pull request #367 from dkg/manpage-formatting
formatting cleanups
2022-02-04 23:23:54 +01:00
Daniel Kahn Gillmor
84fc285923 stackoverflow uses https 2022-02-04 16:47:44 -05:00
Daniel Kahn Gillmor
806c05f49d manpage: Minor cleanup to faketime.1
- close quotes correctly in "Relative time offset"
- github uses https
- e.g. and i.e. should be set off from what follows with a comma
2022-02-04 16:40:57 -05:00
Daniel Kahn Gillmor
fe6eeae423 manpage: structure source with one sentence per line
Using this structure makes diffs easier to read, when changes are due.

The underlying formatting produced by groff ends up basically the same
(though some versions of groff may adjust to have two spaces after a
sentence-ending period instead of one).
2022-02-04 16:37:27 -05:00
Wolfgang Hommel
f26242b655 Merge pull request #352 from luochunbei/master 2021-10-10 14:23:30 +02:00
luochunbei
e0ca33132d add explicit data type conversion to avoid integer overflow 2021-10-10 14:39:51 +08:00
Wolfgang Hommel
cbf1d729ed Merge pull request #350 from a1346054/fixes
Simple maintenance improvements
2021-09-22 06:26:19 +02:00
a1346054
543f6b5040 Trim excess whitespace 2021-09-21 21:03:50 +00:00
a1346054
aa9eb1006d Fix codestyle deviations 2021-09-21 21:03:14 +00:00
a1346054
14cf8d7ba8 Fix spelling 2021-09-21 20:46:28 +00:00
Wolfgang Hommel
f4ae29fb91 Merge pull request #348 from GranBurguesa/patch-1
fix do/while guard for DONT_FAKE_TIME macro
2021-09-17 19:34:53 +02:00
GranBurguesa
a9142e0e9a fix do/while guard for DONT_FAKE_TIME macro
the newer version gcc warns `this ‘while’ clause does not guard... [-Werror=misleading-indentation]`. looks like the author just omitted the `do` and the `while(0) counts as a separate statement.

in practice this isn't causing any actual problem now afaict.
2021-09-17 10:41:55 -04:00
Wolfgang Hommel
b7fff74716 Merge pull request #344 from sliquister/fake-stateless
Add a build variable to opt-out of behaviors that reduce reliability
2021-08-01 20:44:14 +02:00
Valentin Gatien-Baron
e26859e5ca add a build variable to opt-out of some behaviors
Specifically behaviors that increase the chance that a wrapped program
will not behave like an unwrapped program does, thus causing
reliability issues.
2021-08-01 08:41:17 -04:00
Valentin Gatien-Baron
3155e0ee38 try to clarify the help of a couple of compilatoin variables 2021-08-01 08:02:59 -04:00
Valentin Gatien-Baron
078a4e4060 group cpp variables according to whether they are set by default 2021-08-01 07:58:06 -04:00
Wolfgang Hommel
9043941fa9 Merge pull request #342 from sliquister/timespec_get
wrap timespec_get
2021-07-30 22:54:00 +02:00
Valentin Gatien-Baron
973111d78a wrap timespec_get 2021-07-30 13:46:24 -04:00
Wolfgang Hommel
4bab3179ce Unlock mutex before exiting in case of error (fixes #340) 2021-07-17 19:44:20 +02:00
Wolfgang Hommel
2090f5e548 Fix in __xstat regarding dont_fake handling 2021-06-22 21:51:28 +02:00
Wolfgang Hommel
f88c8d4221 Do not cache '%' in parse_ft_string (addresses #337) 2021-06-22 21:47:57 +02:00
Wolfgang Hommel
9a73db074b Merge pull request #328 from jelly/gzip_reproducible
Do not store the timestamp in the gzip
2021-05-11 18:42:09 +02:00
Jelle van der Waa
932c138112 Do not store the timestamp in the gzip
To make libfaketime reproducible don't embed the timestamp in the gzip
header.

Motivation: https://reproducible-builds.org
2021-05-11 17:03:01 +02:00
Wolfgang Hommel
9e27b2ed8b Merge pull request #320 from sliquister/master
add support for timerfd_{set,get}time
2021-03-31 20:05:02 +02:00
Valentin Gatien-Baron
c9f292ee39 add support for timerfd_{set,get}time 2021-03-30 13:02:24 -04:00
Wolfgang Hommel
d37421dbe7 Merge pull request #319 from jimklimov/install-doc
Makefile: define PREFIX same as in sub-Makefiles to install "doc" to …
2021-03-28 21:09:34 +02:00
Jim Klimov
89161a0cdf Makefile: define PREFIX same as in sub-Makefiles to install "doc" to reasonable path 2021-03-28 21:01:38 +03:00
Wolfgang Hommel
f87c2f8915 Merge pull request #318 from jimklimov/date-prog-sun
faketime.c: default to GNU date as "gdate" on Sun-related OSes
2021-03-28 19:35:41 +02:00
Wolfgang Hommel
ce1d39c98f Merge pull request #317 from jimklimov/date-prog-arg
faketime.c: allow user to select their implementation of GNU date
2021-03-28 19:35:10 +02:00
Wolfgang Hommel
262d1d574f Merge pull request #316 from jimklimov/eol
src/sunos_endian.h: No newline at end of file
2021-03-28 19:32:01 +02:00
Jim Klimov
06d49adc12 faketime.c: default to GNU date as "gdate" on Sun-related OSes 2021-03-28 20:17:07 +03:00
Jim Klimov
1686664c97 faketime.c: allow user to select their implementation of GNU date 2021-03-28 20:14:27 +03:00
Jim Klimov
5217bcd13d src/sunos_endian.h: No newline at end of file
For pedantic compilers this is actually a fatal error, since per
(older?) C standards the file should end with an EOL.
2021-03-28 18:54:26 +03:00
Wolfgang Hommel
8ae4c9bc0e Merge pull request #313 from dkg/test-variadic-promotion
Test variadic promotion
2021-03-06 09:46:07 +01:00