diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-12-29 17:18:17 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-12-29 17:18:17 +0000 |
commit | 34ce26dcc69416489a1520e18a657ea7e8771ae1 (patch) | |
tree | 82bc87f0dd3ea797592e6989aaa33538fc69bc75 /lib/intercept | |
parent | 640786c33e71dd30c98068a7b82f8713f780d9f8 (diff) |
Compile fix for platforms without intercept capability (refs #3)
Diffstat (limited to 'lib/intercept')
-rw-r--r-- | lib/intercept/intercept.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/intercept/intercept.h b/lib/intercept/intercept.h index b1122434..bc6557f3 100644 --- a/lib/intercept/intercept.h +++ b/lib/intercept/intercept.h @@ -9,6 +9,7 @@ #ifndef INTERCEPT_H #define INTERCEPT_H +#ifndef PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE #include <dirent.h> @@ -35,8 +36,12 @@ extern "C" void intercept_setup_error(const char *filename, unsigned int errorafter, int errortoreturn, int syscalltoerror); +void intercept_setup_delay(const char *filename, unsigned int delay_after, + int delay_ms, int syscall_to_delay, int num_delays); +bool intercept_triggered(); void intercept_setup_readdir_hook(const char *dirname, readdir_t hookfn); void intercept_setup_lstat_hook (const char *filename, lstat_t hookfn); +#endif // !PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE #endif // !INTERCEPT_H |