Commit | Line | Data |
---|---|---|
a1dc3945 AC |
1 | /* This file is part of the program psim. |
2 | ||
3 | Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au> | |
4 | ||
5 | This program is free software; you can redistribute it and/or modify | |
6 | it under the terms of the GNU General Public License as published by | |
7 | the Free Software Foundation; either version 2 of the License, or | |
8 | (at your option) any later version. | |
9 | ||
10 | This program is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | GNU General Public License for more details. | |
14 | ||
15 | You should have received a copy of the GNU General Public License | |
16 | along with this program; if not, write to the Free Software | |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
18 | ||
19 | */ | |
20 | ||
21 | ||
22 | #ifndef _SIM_IO_H_ | |
23 | #define _SIM_IO_H_ | |
24 | ||
25 | ||
26 | /* See the file include/callbacks.h for a description */ | |
27 | ||
28 | INLINE_SIM_IO\ | |
29 | (int) sim_io_init | |
30 | (engine *system); | |
31 | ||
32 | INLINE_SIM_IO\ | |
33 | (int) sim_io_shutdown | |
34 | (engine *system); | |
35 | ||
36 | INLINE_SIM_IO\ | |
37 | (int) sim_io_unlink | |
38 | (engine *system, const char *); | |
39 | ||
40 | INLINE_SIM_IO\ | |
41 | (long) sim_io_time | |
42 | (engine *system, long *); | |
43 | ||
44 | INLINE_SIM_IO\ | |
45 | (int) sim_io_system | |
46 | (engine *system, const char *); | |
47 | ||
48 | INLINE_SIM_IO\ | |
49 | (int) sim_io_rename | |
50 | (engine *system, const char *, const char *); | |
51 | ||
52 | INLINE_SIM_IO\ | |
53 | (int) sim_io_write_stdout | |
54 | (engine *system, const char *, int); | |
55 | ||
56 | INLINE_SIM_IO\ | |
57 | (int) sim_io_flush_stdout | |
58 | (engine *system); | |
59 | ||
60 | INLINE_SIM_IO\ | |
61 | (int) sim_io_write_stderr | |
62 | (engine *system, const char *, int); | |
63 | ||
64 | INLINE_SIM_IO\ | |
65 | (int) sim_io_flush_stderr | |
66 | (engine *system); | |
67 | ||
68 | INLINE_SIM_IO\ | |
69 | (int) sim_io_write | |
70 | (engine *system, int, const char *, int); | |
71 | ||
72 | INLINE_SIM_IO\ | |
73 | (int) sim_io_read_stdin | |
74 | (engine *system, char *, int); | |
75 | ||
76 | INLINE_SIM_IO\ | |
77 | (int) sim_io_read | |
78 | (engine *system, int, char *, int); | |
79 | ||
80 | INLINE_SIM_IO\ | |
81 | (int) sim_io_open | |
82 | (engine *system, const char *, int); | |
83 | ||
84 | INLINE_SIM_IO\ | |
85 | (int) sim_io_lseek | |
86 | (engine *system, int, long, int); | |
87 | ||
88 | INLINE_SIM_IO\ | |
89 | (int) sim_io_isatty | |
90 | (engine *system, int); | |
91 | ||
92 | INLINE_SIM_IO\ | |
93 | (int) sim_io_get_errno | |
94 | (engine *system); | |
95 | ||
96 | INLINE_SIM_IO\ | |
97 | (int) sim_io_close | |
98 | (engine *system, int); | |
99 | ||
100 | INLINE_SIM_IO\ | |
101 | (void) sim_io_printf | |
102 | (engine *system, | |
103 | const char *fmt, | |
104 | ...) __attribute__ ((format (printf, 2, 3))); | |
105 | ||
106 | INLINE_SIM_IO\ | |
107 | (void) sim_io_vprintf | |
108 | (engine *system, | |
109 | const char *fmt, | |
110 | va_list ap); | |
111 | ||
112 | INLINE_SIM_IO\ | |
113 | (void) sim_io_eprintf | |
114 | (engine *system, | |
115 | const char *fmt, | |
116 | ...) __attribute__ ((format (printf, 2, 3))); | |
117 | ||
118 | INLINE_SIM_IO\ | |
119 | (void) sim_io_evprintf | |
120 | (engine *system, | |
121 | const char *fmt, | |
122 | va_list ap); | |
123 | ||
124 | INLINE_SIM_IO\ | |
125 | (void) sim_io_error | |
126 | (engine *system, | |
127 | const char *fmt, | |
128 | ...) __attribute__ ((format (printf, 2, 3))); | |
129 | ||
130 | #endif |