Received: from [140.186.70.92] (port=38945 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6l9x-0004J4-BQ for qemu-devel@nongnu.org; Fri, 15 Oct 2010 10:21:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6kv0-0007i2-QX for qemu-devel@nongnu.org; Fri, 15 Oct 2010 10:05:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6kv0-0007hW-Ji for qemu-devel@nongnu.org; Fri, 15 Oct 2010 10:05:58 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9FE5v3h028142 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 15 Oct 2010 10:05:57 -0400 Received: from localhost6.localdomain6 (ovpn-113-85.phx2.redhat.com [10.3.113.85]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id o9FE5tSj014808 for ; Fri, 15 Oct 2010 10:05:56 -0400 From: Jes.Sorensen@redhat.com Date: Fri, 15 Oct 2010 16:05:44 +0200 Message-Id: <1287151553-16894-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH 0/9] Re-factor osdep code + macro and brace fixes List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Jes Sorensen Hi, Here is another set of patches which tries to split up osdep.c further into posix and win32 versions. It introduces os-{posix,win32}-lib.c files which are used for functions that are OS specific core library functionality, like gettimeofday(), and which is used by both QEMU and support applications like qemu-img. Other functions are moved to os-{posix,win32}.c. In addtion there are a couple of minor fixes for bad macro names. In some cases braces were added to code when it was moved, to make it compliant with the QEMU bracing rules. Cheers, Jes Jes Sorensen (9): Move QEMU OS dependant library functions to OS specific files Move osdep socket code to os-{posix,win32}-lib.c qemu_pipe() is used only by POSIX code, so move to os-posix-lib.c We only support eventfd under POSIX, move qemu_eventfd() to os-posix.c Move qemu_gettimeofday() to OS specific files Do not redefine reserved key-words TRUE/FALSE Separate qemu_pidfile() into OS specific versions Consolidate oom_check() functions Remove unncessary includes Makefile | 6 +- Makefile.objs | 9 ++- hw/bt-sdp.c | 21 +++-- os-posix-lib.c | 111 +++++++++++++++++++++++ os-posix.c | 53 +++++++++++ os-win32-lib.c | 128 ++++++++++++++++++++++++++ os-win32.c | 24 +++++ osdep.c | 256 ---------------------------------------------------- osdep.h | 15 --- posix-aio-compat.c | 1 + qemu-common.h | 1 + qemu-img.c | 1 + qemu-malloc.c | 14 +--- qemu-os-posix.h | 3 + qemu-os-win32.h | 9 ++ qemu-tool.c | 1 + 16 files changed, 357 insertions(+), 296 deletions(-) create mode 100644 os-posix-lib.c create mode 100644 os-win32-lib.c -- 1.7.2.3