mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 13:30:52 +00:00
474514668b
Introduce a new global big lock for mon_fdsets. Take it where needed. The monitor_fdset_get_fd() handling is a bit tricky: now we need to call qemu_mutex_unlock() which might pollute errno, so we need to make sure the correct errno be passed up to the callers. To make things simpler, we let monitor_fdset_get_fd() return the -errno directly when error happens, then in qemu_open() we move it back into errno. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20180608035511.7439-8-peterx@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
23 lines
347 B
C
23 lines
347 B
C
#include "qemu/osdep.h"
|
|
#include "qemu-common.h"
|
|
#include "monitor/monitor.h"
|
|
|
|
int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int monitor_fdset_dup_fd_find(int dup_fd)
|
|
{
|
|
return -1;
|
|
}
|
|
|
|
int monitor_fdset_get_fd(int64_t fdset_id, int flags)
|
|
{
|
|
return -ENOENT;
|
|
}
|
|
|
|
void monitor_fdset_dup_fd_remove(int dupfd)
|
|
{
|
|
}
|