root / lab4 / .minix-src / include / minix / gcov.h @ 14
History | View | Annotate | Download (876 Bytes)
1 |
#ifndef _MINIX_GCOV_H
|
---|---|
2 |
#define _MINIX_GCOV_H
|
3 |
|
4 |
#include <sys/types.h> |
5 |
#include <lib.h> |
6 |
#include <stdlib.h> |
7 |
#include <minix/syslib.h> |
8 |
|
9 |
/* opcodes for use in gcov buffer */
|
10 |
#define GCOVOP_OPEN 23 |
11 |
#define GCOVOP_WRITE 24 |
12 |
#define GCOVOP_CLOSE 25 |
13 |
#define GCOVOP_END 26 |
14 |
|
15 |
/* More information on the GCOV Minix Wiki page. */
|
16 |
|
17 |
int gcov_flush_svr(const char * label, char * buff, size_t buff_sz); |
18 |
|
19 |
#if _MINIX_SYSTEM
|
20 |
extern void __gcov_flush(void); |
21 |
int do_gcov_flush_impl(message *msg);
|
22 |
|
23 |
FILE *_gcov_fopen(const char *name, const char *mode); |
24 |
size_t _gcov_fread(void *ptr, size_t itemsize, size_t nitems,
|
25 |
FILE *stream); |
26 |
size_t _gcov_fwrite(const void *ptr, size_t itemsize, size_t nitems, |
27 |
FILE *stream); |
28 |
int _gcov_fclose(FILE *stream);
|
29 |
int _gcov_fseek(FILE *stream, long offset, int ptrname); |
30 |
char *_gcov_getenv(const char *name); |
31 |
#endif /* _MINIX_SYSTEM */ |
32 |
|
33 |
#endif /* !_MINIX_GCOV_H */ |