summaryrefslogtreecommitdiff
path: root/lib/intercept
Commit message (Collapse)AuthorAge
* Fix intercept of SYS_open on platforms that only have SYS_openat (e.g. arm64)Chris Wilson2017-06-22
|
* Hopefully fix test/raidfile on Solaris.Chris Wilson2017-06-18
| | | | | 64-bit Solaris has _FILE_OFFSET_BITS defined (to 64), which was wrongly causing the substitute lseek in lib/intercept to enter the 32-bit branch.
* Remove unused headers not present on Windows. Add missing header.Chris Wilson2015-12-09
|
* Fix intercept tests on NetBSD.Chris Wilson2014-12-10
| | | | | Thanks to Jose Luis Rodriguez Garcia for the patch!
* Simplify code with macros, update comments and fix whitespace.Chris Wilson2014-09-04
| | | | | | Hopefully all of these changes are inconsequential. Merged back changes from the test refactor branch to reduce diffs.
* Ensure that _FILE_OFFSET_BITS is defined before testing its value.Chris Wilson2008-10-11
| | | | | | Move definition of DEFINE_ONLY_OPEN64 into intercept.cpp which is the only place that should use it.
* FreeBSD is very strict about vararg types and aborts at runtime ifChris Wilson2008-10-11
| | | | | | the type passed to va_arg() has been promoted, so let's keep it happy by using ints instead.
* Fix intercept compile problem on Solaris, and hopefully on other platformsChris Wilson2008-10-11
| | | | | with large file support.
* Fix compilation of open64() intercept.Chris Wilson2008-09-26
|
* Add stat() intercept and stat() and lstat() post call hooks.Chris Wilson2008-05-28
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* Fix raidfile tests on FreeBSD 7Chris Wilson2008-01-23
|
* If the address of opendir64() is NULL that is NOT a good sign, Chris Wilson2008-01-03
| | | | | regardless of whether dlerror() thinks that everything is just rosy.
* Use 64-bit versions of directory functions if we can find them, and ifChris Wilson2008-01-03
| | | | | | | we're compiling with large file support, otherwise fall back to 32-bit versions. Hopefully fixes problems with FreeBSD without breaking other platforms (raidfile tests pass on freebsd).
* Search for readdir64 and stat64 if LARGE_FILE_SUPPORT is enabled, ratherChris Wilson2007-12-18
| | | | | | than relying on Linux redirection macros that aren't present on Slackware (which uses asm redirects instead).
* Fix readdir() intercept on FreeBSD by fixing the check for redefinedChris Wilson2007-12-16
| | | | | readdir (from Linux).
* Restructure intercept_errornow() for clarity.Chris Wilson2007-12-13
| | | | | | | | | | | | | Move delay code out of macro and into intercept_errornow() to simplify macro. Clear hook functions in intercept_clear_setup(). Check that intercept_filename is not NULL before comparing it with anything. Change some TRACEx macros to BOX_TRACE.
* Indent cleanup (refs #3)Chris Wilson2007-03-24
|
* Compile fix for platforms without intercept capability (refs #3)Chris Wilson2006-12-29
|
* Added a header file for including in test/bbackupd/testbbackupd.cpp and Chris Wilson2006-12-03
| | | | | | | | | other modules which might need intercepts in future. Added opendir/readdir and lstat hook capability. (refs #3, refs #9)
* Added ability for delay intercepts to fire multiple times.Chris Wilson2006-11-28
| | | | | Added test for repeat keepalives to test/bbackupd.
* Moved intercept code to a library module to allow it to be used by Chris Wilson2006-11-26
test/bbackupd as well (refs #3)