mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
ec29ea1b2b
commit
3bf2af7b40
4 changed files with 0 additions and 90 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue