Lines Matching refs:host_callback
71 typedef struct host_callback_struct host_callback;
75 int (*close) (host_callback *,int);
76 int (*get_errno) (host_callback *);
77 int (*isatty) (host_callback *, int);
78 int64_t (*lseek) (host_callback *, int, int64_t, int);
79 int (*open) (host_callback *, const char*, int mode);
80 int (*read) (host_callback *,int, char *, int);
81 int (*read_stdin) ( host_callback *, char *, int);
82 int (*rename) (host_callback *, const char *, const char *);
83 int (*system) (host_callback *, const char *);
84 int64_t (*time) (host_callback *);
85 int (*unlink) (host_callback *, const char *);
86 int (*write) (host_callback *,int, const char *, int);
87 int (*write_stdout) (host_callback *, const char *, int);
88 void (*flush_stdout) (host_callback *);
89 int (*write_stderr) (host_callback *, const char *, int);
90 void (*flush_stderr) (host_callback *);
91 int (*to_stat) (host_callback *, const char *, struct stat *);
92 int (*to_fstat) (host_callback *, int, struct stat *);
93 int (*to_lstat) (host_callback *, const char *, struct stat *);
94 int (*ftruncate) (host_callback *, int, int64_t);
95 int (*truncate) (host_callback *, const char *, int64_t);
96 int (*getpid) (host_callback *);
97 int (*kill) (host_callback *, int, int);
98 int (*pipe) (host_callback *, int *);
101 void (*pipe_empty) (host_callback *, int read_fd, int write_fd);
105 void (*pipe_nonempty) (host_callback *, int read_fd, int write_fd);
110 int (*poll_quit) (host_callback *);
114 int (*shutdown) (host_callback *);
115 int (*init) (host_callback *);
118 void (*printf_filtered) (host_callback *, const char *, ...)
122 void (*vprintf_filtered) (host_callback *, const char *, va_list)
126 void (*evprintf_filtered) (host_callback *, const char *, va_list)
132 void (*error) (host_callback *, const char *, ...)
204 extern host_callback default_callback;
278 int (*read_mem) (host_callback * /*cb*/, struct cb_syscall * /*sc*/,
281 int (*write_mem) (host_callback * /*cb*/, struct cb_syscall * /*sc*/,
313 CB_RC cb_read_target_syscall_maps (host_callback *, const char *);
316 int cb_target_to_host_syscall (host_callback *, int);
319 int cb_host_to_target_errno (host_callback *, int);
322 int cb_target_to_host_open (host_callback *, int);
325 int cb_target_to_host_signal (host_callback *, int);
328 int cb_host_to_gdb_signal (host_callback *, int);
331 const char *cb_host_str_syscall (host_callback *, int);
332 const char *cb_host_str_errno (host_callback *, int);
333 const char *cb_host_str_signal (host_callback *, int);
334 const char *cb_target_str_syscall (host_callback *, int);
335 const char *cb_target_str_errno (host_callback *, int);
336 const char *cb_target_str_signal (host_callback *, int);
341 int cb_host_to_target_stat (host_callback *, const struct stat *, void *);
344 void cb_store_target_endian (host_callback *, char *, int, long);
347 int cb_is_stdin (host_callback *, int);
348 int cb_is_stdout (host_callback *, int);
349 int cb_is_stderr (host_callback *, int);
352 int cb_get_string (host_callback *, CB_SYSCALL *, char *, int, unsigned long);
355 CB_RC cb_syscall (host_callback *, CB_SYSCALL *);