#include <stdlib.h>#include <string.h>#include <errno.h>#include "emu/emu.h"#include "emu/emu_cpu.h"#include "emu/emu_cpu_data.h"#include "emu/emu_memory.h"#include "emu/emu_hashtable.h"

Go to the source code of this file.
Classes | |
| struct | emu_env_linux |
| struct | emu_env_linux_syscall_entry |
| struct | emu_env_linux_syscall |
Typedefs | |
| typedef uint32_t(* | userhook )(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall,...) |
Functions | |
| struct emu_env_linux * | emu_env_linux_new (struct emu *e) |
| void | emu_env_linux_free (struct emu_env_linux *eel) |
| struct emu_env_hook * | emu_env_linux_syscall_check (struct emu_env *env) |
| int32_t | emu_env_linux_syscall_hook (struct emu_env *env, const char *syscallname, uint32_t(*userhook)(struct emu_env *env, struct emu_env_hook *hook,...), void *userdata) |
| const char * | env_linux_socketcall (struct emu_env_linux *env) |
| typedef uint32_t(* userhook)(struct emu_env_linux *env, struct emu_env_linux_syscall *syscall,...) |
| void emu_env_linux_free | ( | struct emu_env_linux * | eel | ) |
References emu_hashtable_free(), emu_env_linux::hooks, emu_env_linux::syscall_hooks_by_name, and emu_env_linux::syscall_hookx.

| struct emu_env_linux* emu_env_linux_new | ( | struct emu * | e | ) | [read] |
References emu_env_linux::emu, emu_hashtable_insert(), emu_hashtable_new(), emu_hashtable_string_cmp(), emu_hashtable_string_hash(), emu_env_linux::hooks, emu_env_linux_syscall::name, syscall_hooks, emu_env_linux::syscall_hooks_by_name, and emu_env_linux::syscall_hookx.

| struct emu_env_hook* emu_env_linux_syscall_check | ( | struct emu_env * | env | ) | [read] |
References al, emu_instruction::cpu, emu_cpu_get(), emu_hashtable_search(), env_linux_syscalls, emu_env_linux_syscall_entry::fnhook, emu_cpu_instruction::imm8, emu_cpu::instr, emu_instruction::is_fpu, emu_env_linux_syscall_entry::name, emu_instruction::opc, emu_cpu::reg8, and emu_hashtable_item::value.

| int32_t emu_env_linux_syscall_hook | ( | struct emu_env * | env, | |
| const char * | syscallname, | |||
| uint32_t(*)(struct emu_env *env, struct emu_env_hook *hook,...) | userhook, | |||
| void * | userdata | |||
| ) |
References emu_hashtable_search(), and emu_hashtable_item::value.

| const char* env_linux_socketcall | ( | struct emu_env_linux * | env | ) |
References ebx, emu_env_linux::emu, emu_cpu_get(), and emu_cpu::reg.

1.6.1