file as.info-5 was initially added on branch binutils-2_10-branch.
[binutils.git] / gprof / gmon_io.h
blob06bca377b48edbbd338def2eefa5b7fac0ead6f6
1 #ifndef gmon_io_h
2 #define gmon_io_h
4 #include "bfd.h"
5 #include "gmon.h"
7 /* Some platforms need to put stdin into binary mode, to read
8 binary files. */
9 #include "sysdep.h"
10 #ifdef HAVE_SETMODE
11 #ifndef O_BINARY
12 #ifdef _O_BINARY
13 #define O_BINARY _O_BINARY
14 #define setmode _setmode
15 #else
16 #define O_BINARY 0
17 #endif
18 #endif
19 #if O_BINARY
20 #include <io.h>
21 #define SET_BINARY(f) do { if (!isatty(f)) setmode(f,O_BINARY); } while (0)
22 #endif
23 #endif
25 #define INPUT_HISTOGRAM (1<<0)
26 #define INPUT_CALL_GRAPH (1<<1)
27 #define INPUT_BB_COUNTS (1<<2)
29 extern int gmon_input; /* what input did we see? */
30 extern int gmon_file_version; /* file version are we dealing with */
32 extern bfd_vma get_vma PARAMS ((bfd * abfd, bfd_byte * addr));
33 extern void put_vma PARAMS ((bfd * abfd, bfd_vma val, bfd_byte * addr));
35 extern void gmon_out_read PARAMS ((const char *filename));
36 extern void gmon_out_write PARAMS ((const char *filename));
38 #endif /* gmon_io_h */