diff options
| author | Peter Maydell | 2011-02-15 19:35:05 +0100 |
|---|---|---|
| committer | Riku Voipio | 2011-02-17 10:46:34 +0100 |
| commit | 3b6edd1611e25099a1df20771ce3f88939a0e93a (patch) | |
| tree | 510c84632687df90f0f47d7159c5eb8e9ab7e8aa /linux-user/syscall_defs.h | |
| parent | linux-user: in linux-user/strace.c, tswap() is useless (diff) | |
| download | qemu-3b6edd1611e25099a1df20771ce3f88939a0e93a.tar.gz qemu-3b6edd1611e25099a1df20771ce3f88939a0e93a.tar.xz qemu-3b6edd1611e25099a1df20771ce3f88939a0e93a.zip | |
linux-user: Support the epoll syscalls
Support the epoll family of syscalls: epoll_create(), epoll_create1(),
epoll_ctl(), epoll_wait() and epoll_pwait(). Note that epoll_create1()
and epoll_pwait() are later additions, so we have to test separately
in configure for their presence.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Diffstat (limited to 'linux-user/syscall_defs.h')
| -rw-r--r-- | linux-user/syscall_defs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 4742ac0272..702652cb9e 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -2206,3 +2206,16 @@ struct target_mq_attr { #define FUTEX_CLOCK_REALTIME 256 #define FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME) +#ifdef CONFIG_EPOLL +typedef union target_epoll_data { + abi_ulong ptr; + abi_ulong fd; + uint32_t u32; + uint64_t u64; +} target_epoll_data_t; + +struct target_epoll_event { + uint32_t events; + target_epoll_data_t data; +}; +#endif |
