The fuzzer is going to want to wrap fopen. So add it to the special
syscall list, and implement it with the obvious wrapper in hnonfuzz.c.
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
#include "harness.h"
+FILE *Hfopen(const char *path, const char *mode) { return fopen(path,mode); }
+
int Ttestinputfd(void) {
const char *fdstr= getenv("ADNS_TEST_IN_FD");
if (!fdstr) return -1;
hm_specsyscall(void, free, `void *ptr')
hm_specsyscall(void*, realloc, `void *op, size_t nsz')
hm_specsyscall(void, exit, `int rv', NONRETURNING)
+
+hm_specsyscall(FILE*, fopen, `const char *path, const char *mode')