Lines Matching refs:host_callback

70 typedef struct host_callback_struct host_callback;  typedef
74 int (*close) (host_callback *,int);
75 int (*get_errno) (host_callback *);
76 int (*isatty) (host_callback *, int);
77 int64_t (*lseek) (host_callback *, int, int64_t, int);
78 int (*open) (host_callback *, const char*, int mode);
79 int (*read) (host_callback *,int, char *, int);
80 int (*read_stdin) ( host_callback *, char *, int);
81 int (*rename) (host_callback *, const char *, const char *);
82 int (*system) (host_callback *, const char *);
83 int64_t (*time) (host_callback *);
84 int (*unlink) (host_callback *, const char *);
85 int (*write) (host_callback *,int, const char *, int);
86 int (*write_stdout) (host_callback *, const char *, int);
87 void (*flush_stdout) (host_callback *);
88 int (*write_stderr) (host_callback *, const char *, int);
89 void (*flush_stderr) (host_callback *);
90 int (*to_stat) (host_callback *, const char *, struct stat *);
91 int (*to_fstat) (host_callback *, int, struct stat *);
92 int (*to_lstat) (host_callback *, const char *, struct stat *);
93 int (*ftruncate) (host_callback *, int, int64_t);
94 int (*truncate) (host_callback *, const char *, int64_t);
95 int (*getpid) (host_callback *);
96 int (*kill) (host_callback *, int, int);
97 int (*pipe) (host_callback *, int *);
100 void (*pipe_empty) (host_callback *, int read_fd, int write_fd);
104 void (*pipe_nonempty) (host_callback *, int read_fd, int write_fd);
109 int (*poll_quit) (host_callback *);
113 int (*shutdown) (host_callback *);
114 int (*init) (host_callback *);
117 void (*printf_filtered) (host_callback *, const char *, ...)
121 void (*vprintf_filtered) (host_callback *, const char *, va_list)
125 void (*evprintf_filtered) (host_callback *, const char *, va_list)
131 void (*error) (host_callback *, const char *, ...)
203 extern host_callback default_callback;
275 int (*read_mem) (host_callback * /*cb*/, struct cb_syscall * /*sc*/,
278 int (*write_mem) (host_callback * /*cb*/, struct cb_syscall * /*sc*/,
309 CB_RC cb_read_target_syscall_maps (host_callback *, const char *);
312 int cb_target_to_host_syscall (host_callback *, int);
315 int cb_host_to_target_errno (host_callback *, int);
318 int cb_target_to_host_open (host_callback *, int);
321 int cb_target_to_host_signal (host_callback *, int);
324 int cb_host_to_gdb_signal (host_callback *, int);
327 const char *cb_host_str_syscall (host_callback *, int);
328 const char *cb_host_str_errno (host_callback *, int);
329 const char *cb_host_str_signal (host_callback *, int);
330 const char *cb_target_str_syscall (host_callback *, int);
331 const char *cb_target_str_errno (host_callback *, int);
332 const char *cb_target_str_signal (host_callback *, int);
337 int cb_host_to_target_stat (host_callback *, const struct stat *, void *);
340 void cb_store_target_endian (host_callback *, char *, int, long);
343 int cb_is_stdin (host_callback *, int);
344 int cb_is_stdout (host_callback *, int);
345 int cb_is_stderr (host_callback *, int);
348 int cb_get_string (host_callback *, CB_SYSCALL *, char *, int, unsigned long);
351 CB_RC cb_syscall (host_callback *, CB_SYSCALL *);