Convert basic 64 bit VIS ops to TCG
[qemu/mini2440.git] / compatfd.h
blobe7db2a1093f7ea2ef90be3640eb12074177687b7
1 /*
2 * signalfd/eventfd compatibility
4 * Copyright IBM, Corp. 2008
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #ifndef QEMU_COMPATFD_H
15 #define QEMU_COMPATFD_H
17 #include <signal.h>
19 #if defined(__linux__) && !defined(SYS_signalfd)
20 struct signalfd_siginfo {
21 uint32_t ssi_signo;
22 uint8_t pad[124];
24 #else
25 #include <linux/signalfd.h>
26 #endif
28 int qemu_signalfd(const sigset_t *mask);
30 int qemu_eventfd(int *fds);
32 #endif