5 #define _MINIX_SYSTEM 1
6 #include <minix/gcov.h>
8 /* wrappers for file system calls from gcc libgcov library.
9 Default calls are wrapped. In libsys, an alternative
10 implementation for servers is used.
13 FILE *_gcov_fopen(const char *name
, const char *mode
){
14 return fopen(name
, mode
);
18 size_t _gcov_fread(void *ptr
, size_t itemsize
, size_t nitems
20 return fread(ptr
, itemsize
, nitems
, stream
);
23 size_t _gcov_fwrite(const void *ptr
, size_t itemsize
, size_t nitems
25 return fwrite(ptr
, itemsize
, nitems
, stream
);
28 int _gcov_fclose(FILE *stream
){
29 return fclose(stream
);
32 int _gcov_fseek(FILE *stream
, long offset
, int ptrname
){
33 return fseek(stream
, offset
, ptrname
);
36 char *_gcov_getenv(const char *name
){