diff options
Diffstat (limited to 'tests/tests.c')
-rw-r--r-- | tests/tests.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/tests.c b/tests/tests.c index f1fb3f3e..33b2ea20 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -90,6 +90,14 @@ int __wrap_open64(const char *pathname, int flags) return NON_ZERO; } +int __wrap___open64_2(const char *pathname, int flags) +{ + LOG_ME; + if (get_io() && get_io()->open) + return get_io()->open(get_io()->state, pathname, flags); + return NON_ZERO; +} + int __wrap_ioctl(int fd, unsigned long int request, ...) { LOG_ME; @@ -198,6 +206,14 @@ char *__wrap_fgets(char *buf, int len, FILE *fp) return NULL; } +char *__wrap___fgets_chk(char *buf, int len, FILE *fp) +{ + LOG_ME; + if (get_io() && get_io()->fgets) + return get_io()->fgets(get_io()->state, buf, len, fp); + return NULL; +} + size_t __wrap_fread(void *ptr, size_t size, size_t nmemb, FILE *fp) { LOG_ME; @@ -250,6 +266,14 @@ int __wrap_fprintf(FILE *fp, const char *fmt, ...) return 0; } +int __wrap___vfprintf_chk(FILE *fp, const char *fmt, va_list args) +{ + LOG_ME; + if (get_io() && get_io()->fprintf) + return get_io()->fprintf(get_io()->state, fp, fmt, args); + return 0; +} + int __wrap_fclose(FILE *fp) { LOG_ME; |