diff options
author | Thomas Huth <thuth@linux.vnet.ibm.com> | 2015-03-14 07:19:33 +0100 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2015-04-30 16:05:48 +0300 |
commit | 3bf2af7b40281f73d0e33ecca4095078feed07b1 (patch) | |
tree | d9f125a39bdb29a15602f5ceb471907ae3eccfa4 /util/compatfd.c | |
parent | ec29ea1b2b5ffed569d52393ad8e8d3f4215b9b3 (diff) | |
download | qemu-3bf2af7b40281f73d0e33ecca4095078feed07b1.tar.gz qemu-3bf2af7b40281f73d0e33ecca4095078feed07b1.tar.bz2 qemu-3bf2af7b40281f73d0e33ecca4095078feed07b1.zip |
util: Remove unused functions
Delete the unused functions qemu_signalfd_available(),
qemu_send_full() and qemu_recv_full().
Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'util/compatfd.c')
-rw-r--r-- | util/compatfd.c | 19 |
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 -} |