Revision 5fafdf24 linux-user/qemu.h
b/linux-user/qemu.h | ||
---|---|---|
97 | 97 |
#define MAX_ARG_PAGES 32 |
98 | 98 |
|
99 | 99 |
/* |
100 |
* This structure is used to hold the arguments that are
|
|
100 |
* This structure is used to hold the arguments that are |
|
101 | 101 |
* used when loading binaries. |
102 | 102 |
*/ |
103 | 103 |
struct linux_binprm { |
... | ... | |
115 | 115 |
void do_init_thread(struct target_pt_regs *regs, struct image_info *infop); |
116 | 116 |
target_ulong loader_build_argptr(int envc, int argc, target_ulong sp, |
117 | 117 |
target_ulong stringp, int push_ptr); |
118 |
int loader_exec(const char * filename, char ** argv, char ** envp,
|
|
118 |
int loader_exec(const char * filename, char ** argv, char ** envp, |
|
119 | 119 |
struct target_pt_regs * regs, struct image_info *infop); |
120 | 120 |
|
121 | 121 |
int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs, |
... | ... | |
128 | 128 |
void target_set_brk(target_ulong new_brk); |
129 | 129 |
long do_brk(target_ulong new_brk); |
130 | 130 |
void syscall_init(void); |
131 |
long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
|
|
131 |
long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3, |
|
132 | 132 |
long arg4, long arg5, long arg6); |
133 | 133 |
void gemu_log(const char *fmt, ...) __attribute__((format(printf,1,2))); |
134 | 134 |
extern CPUState *global_env; |
... | ... | |
158 | 158 |
|
159 | 159 |
/* mmap.c */ |
160 | 160 |
int target_mprotect(target_ulong start, target_ulong len, int prot); |
161 |
long target_mmap(target_ulong start, target_ulong len, int prot,
|
|
161 |
long target_mmap(target_ulong start, target_ulong len, int prot, |
|
162 | 162 |
int flags, int fd, target_ulong offset); |
163 | 163 |
int target_munmap(target_ulong start, target_ulong len); |
164 |
long target_mremap(target_ulong old_addr, target_ulong old_size,
|
|
164 |
long target_mremap(target_ulong old_addr, target_ulong old_size, |
|
165 | 165 |
target_ulong new_size, unsigned long flags, |
166 | 166 |
target_ulong new_addr); |
167 | 167 |
int target_msync(target_ulong start, target_ulong len, int flags); |
Also available in: Unified diff