summaryrefslogtreecommitdiff
path: root/util/compatfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/compatfd.c')
-rw-r--r--util/compatfd.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/util/compatfd.c b/util/compatfd.c
index 341ada638f..e8571502be 100644
--- a/util/compatfd.c
+++ b/util/compatfd.c
@@ -108,22 +108,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
-}