diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-05-28 15:28:36 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-05-28 15:28:36 +0000 |
commit | 4083d782afd068b60a8b2dacab3ed8a055d77bf7 (patch) | |
tree | c390015f36b09211b061a804e837f93386ed53ae /lib/intercept/intercept.h | |
parent | dbd007d651c59f8037c536058752b52247409692 (diff) |
Add stat() intercept and stat() and lstat() post call hooks.
Diffstat (limited to 'lib/intercept/intercept.h')
-rw-r--r-- | lib/intercept/intercept.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/intercept/intercept.h b/lib/intercept/intercept.h index bc6557f3..4722179d 100644 --- a/lib/intercept/intercept.h +++ b/lib/intercept/intercept.h @@ -34,6 +34,9 @@ extern "C" #endif } +typedef int (lstat_post_hook_t) (int old_ret, const char *file_name, + struct stat *buf); + 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, @@ -42,6 +45,10 @@ 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); +void intercept_setup_lstat_post_hook(lstat_post_hook_t hookfn); +void intercept_setup_stat_post_hook (lstat_post_hook_t hookfn); + +void intercept_clear_setup(); #endif // !PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE #endif // !INTERCEPT_H |