]> git.proxmox.com Git - mirror_qemu.git/blobdiff - util/compatfd.c
migration: report SaveStateEntry id and name on failure
[mirror_qemu.git] / util / compatfd.c
index 341ada638f8101570d80282a916873a640841fa1..c296f55d148aa6d5d99410624e5121a4d3c6e49d 100644 (file)
@@ -13,8 +13,7 @@
  * GNU GPL, version 2 or (at your option) any later version.
  */
 
-#include "qemu-common.h"
-#include "qemu/compatfd.h"
+#include "qemu/osdep.h"
 #include "qemu/thread.h"
 
 #include <sys/syscall.h>
@@ -108,22 +107,3 @@ int qemu_signalfd(const sigset_t *mask)
 
     return qemu_signalfd_compat(mask);
 }
-
-bool qemu_signalfd_available(void)
-{
-#ifdef CONFIG_SIGNALFD
-    sigset_t mask;
-    int fd;
-    bool ok;
-    sigemptyset(&mask);
-    errno = 0;
-    fd = syscall(SYS_signalfd, -1, &mask, _NSIG / 8);
-    ok = (errno != ENOSYS);
-    if (fd >= 0) {
-        close(fd);
-    }
-    return ok;
-#else
-    return false;
-#endif
-}