From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeJwT-0006tk-CF for qemu-devel@nongnu.org; Fri, 30 Nov 2012 01:19:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeJwS-0002rj-93 for qemu-devel@nongnu.org; Fri, 30 Nov 2012 01:19:17 -0500 Received: from e28smtp08.in.ibm.com ([122.248.162.8]:58106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeJwR-0002oX-Md for qemu-devel@nongnu.org; Fri, 30 Nov 2012 01:19:16 -0500 Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 30 Nov 2012 11:49:13 +0530 Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAU6JAET28639372 for ; Fri, 30 Nov 2012 11:49:10 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAUBn1iL012255 for ; Fri, 30 Nov 2012 11:49:02 GMT From: Wenchao Xia Date: Fri, 30 Nov 2012 14:17:19 +0800 Message-Id: <1354256243-8375-4-git-send-email-xiawenc@linux.vnet.ibm.com> In-Reply-To: <1354256243-8375-1-git-send-email-xiawenc@linux.vnet.ibm.com> References: <1354256243-8375-1-git-send-email-xiawenc@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v13 3/7] stubs add set_fd_handler and signalfd_available List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, aliguori@us.ibm.com, stefanha@gmail.com, blauwirbel@gmail.com, pbonzini@redhat.com, Wenchao Xia These functions are needed by libqblock, so add them into stubs. Signed-off-by: Wenchao Xia --- stubs/Makefile.objs | 1 + stubs/set-fd-handler.c | 8 ++++++++ stubs/signalfd.c | 7 +++++++ 3 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 stubs/signalfd.c diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 035b29a..434a480 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -5,4 +5,5 @@ stub-obj-y += fdset-get-fd.o stub-obj-y += fdset-remove-fd.o stub-obj-y += get-fd.o stub-obj-y += set-fd-handler.o +stub-obj-y += signalfd.o stub-obj-$(CONFIG_WIN32) += fd-register.o diff --git a/stubs/set-fd-handler.c b/stubs/set-fd-handler.c index 4807b5d..7b4ca4f 100644 --- a/stubs/set-fd-handler.c +++ b/stubs/set-fd-handler.c @@ -9,3 +9,11 @@ int qemu_set_fd_handler2(int fd, { abort(); } + +int qemu_set_fd_handler(int fd, + IOHandler *fd_read, + IOHandler *fd_write, + void *opaque) +{ + abort(); +} diff --git a/stubs/signalfd.c b/stubs/signalfd.c new file mode 100644 index 0000000..a28d8a2 --- /dev/null +++ b/stubs/signalfd.c @@ -0,0 +1,7 @@ +#include "qemu-common.h" +#include "compatfd.h" + +bool qemu_signalfd_available(void) +{ + abort(); +} -- 1.7.1