etc/services - sync with NetBSD-8
[minix.git] / minix / lib / libc / gen / gcov.c
blob0b6a9f3b2a9db9dcadd52a6dd7763ee578d5f4c4
1 #include <sys/types.h>
2 #include <stdio.h>
3 #include <stdlib.h>
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
19 , FILE *stream){
20 return fread(ptr, itemsize, nitems, stream);
23 size_t _gcov_fwrite(const void *ptr, size_t itemsize, size_t nitems
24 , FILE *stream){
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){
37 return getenv(name);