From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgEIJ-0005sk-SC for qemu-devel@nongnu.org; Sun, 08 Mar 2009 04:23:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgEII-0005py-KX for qemu-devel@nongnu.org; Sun, 08 Mar 2009 04:23:34 -0400 Received: from [199.232.76.173] (port=34044 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgEII-0005pj-Eu for qemu-devel@nongnu.org; Sun, 08 Mar 2009 04:23:34 -0400 Received: from savannah.gnu.org ([199.232.41.3]:46937 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LgEIH-0001hn-R6 for qemu-devel@nongnu.org; Sun, 08 Mar 2009 04:23:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LgEIH-00042u-7f for qemu-devel@nongnu.org; Sun, 08 Mar 2009 08:23:33 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LgEIG-00042n-NV for qemu-devel@nongnu.org; Sun, 08 Mar 2009 08:23:33 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sun, 08 Mar 2009 08:23:32 +0000 Subject: [Qemu-devel] [6775] Rename _BSD to HOST_BSD so that it's more obvious that it' s defined by configure Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 6775 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6775 Author: blueswir1 Date: 2009-03-08 08:23:32 +0000 (Sun, 08 Mar 2009) Log Message: ----------- Rename _BSD to HOST_BSD so that it's more obvious that it's defined by configure Modified Paths: -------------- trunk/block-raw-posix.c trunk/block.c trunk/configure trunk/dyngen-exec.h trunk/fpu/softfloat-native.c trunk/fpu/softfloat-native.h trunk/net.c trunk/osdep.c trunk/qemu-char.c trunk/savevm.c trunk/vl.c Modified: trunk/block-raw-posix.c =================================================================== --- trunk/block-raw-posix.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/block-raw-posix.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -750,7 +750,7 @@ BDRVRawState *s = bs->opaque; int fd = s->fd; int64_t size; -#ifdef _BSD +#ifdef HOST_BSD struct stat sb; #endif #ifdef __sun__ @@ -763,7 +763,7 @@ if (ret < 0) return ret; -#ifdef _BSD +#ifdef HOST_BSD if (!fstat(fd, &sb) && (S_IFCHR & sb.st_mode)) { #ifdef DIOCGMEDIASIZE if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&size)) Modified: trunk/block.c =================================================================== --- trunk/block.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/block.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -22,7 +22,7 @@ * THE SOFTWARE. */ #include "config-host.h" -#ifdef _BSD +#ifdef HOST_BSD /* include native header before sys-queue.h */ #include #endif @@ -31,7 +31,7 @@ #include "monitor.h" #include "block_int.h" -#ifdef _BSD +#ifdef HOST_BSD #include #include #include Modified: trunk/configure =================================================================== --- trunk/configure 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/configure 2009-03-08 08:23:32 UTC (rev 6775) @@ -1520,7 +1520,7 @@ if [ "$bsd" = "yes" ] ; then echo "#define O_LARGEFILE 0" >> $config_h echo "#define MAP_ANONYMOUS MAP_ANON" >> $config_h - echo "#define _BSD 1" >> $config_h + echo "#define HOST_BSD 1" >> $config_h fi echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h Modified: trunk/dyngen-exec.h =================================================================== --- trunk/dyngen-exec.h 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/dyngen-exec.h 2009-03-08 08:23:32 UTC (rev 6775) @@ -82,7 +82,7 @@ #define UINT32_MAX (4294967295U) #define UINT64_MAX ((uint64_t)(18446744073709551615)) -#ifdef _BSD +#ifdef HOST_BSD typedef struct __sFILE FILE; #else typedef struct FILE FILE; Modified: trunk/fpu/softfloat-native.c =================================================================== --- trunk/fpu/softfloat-native.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/fpu/softfloat-native.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -6,7 +6,8 @@ void set_float_rounding_mode(int val STATUS_PARAM) { STATUS(float_rounding_mode) = val; -#if defined(_BSD) && !defined(__APPLE__) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10) +#if defined(HOST_BSD) && !defined(__APPLE__) || \ + (defined(HOST_SOLARIS) && HOST_SOLARIS < 10) fpsetround(val); #elif defined(__arm__) /* nothing to do */ @@ -22,7 +23,7 @@ } #endif -#if defined(_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10) +#if defined(HOST_BSD) || (defined(HOST_SOLARIS) && HOST_SOLARIS < 10) #define lrint(d) ((int32_t)rint(d)) #define llrint(d) ((int64_t)rint(d)) #define lrintf(f) ((int32_t)rint(f)) Modified: trunk/fpu/softfloat-native.h =================================================================== --- trunk/fpu/softfloat-native.h 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/fpu/softfloat-native.h 2009-03-08 08:23:32 UTC (rev 6775) @@ -1,7 +1,7 @@ /* Native implementation of soft float functions */ #include -#if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS) +#if (defined(HOST_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS) #include #define fabsf(f) ((float)fabs(f)) #else @@ -111,7 +111,7 @@ /*---------------------------------------------------------------------------- | Software IEC/IEEE floating-point rounding mode. *----------------------------------------------------------------------------*/ -#if (defined(_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS) +#if (defined(HOST_BSD) && !defined(__APPLE__)) || defined(HOST_SOLARIS) #if defined(__OpenBSD__) #define FE_RM FP_RM #define FE_RP FP_RP Modified: trunk/net.c =================================================================== --- trunk/net.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/net.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -29,7 +29,7 @@ #include #include -/* Needed early for _BSD etc. */ +/* Needed early for HOST_BSD etc. */ #include "config-host.h" #ifndef _WIN32 @@ -52,7 +52,7 @@ #include #include #include -#ifdef _BSD +#ifdef HOST_BSD #include #if defined(__FreeBSD__) || defined(__DragonFly__) #include @@ -769,7 +769,7 @@ return s; } -#if defined (_BSD) || defined (__FreeBSD_kernel__) +#if defined (HOST_BSD) || defined (__FreeBSD_kernel__) static int tap_open(char *ifname, int ifname_size) { int fd; Modified: trunk/osdep.c =================================================================== --- trunk/osdep.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/osdep.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -33,13 +33,13 @@ #include #endif -/* Needed early for _BSD etc. */ +/* Needed early for HOST_BSD etc. */ #include "config-host.h" #ifdef _WIN32 #define WIN32_LEAN_AND_MEAN #include -#elif defined(_BSD) +#elif defined(HOST_BSD) #include #else #include @@ -188,7 +188,7 @@ if (ret != 0) return NULL; return ptr; -#elif defined(_BSD) +#elif defined(HOST_BSD) return valloc(size); #else return memalign(alignment, size); Modified: trunk/qemu-char.c =================================================================== --- trunk/qemu-char.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/qemu-char.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -61,7 +61,7 @@ #include #include #include -#ifdef _BSD +#ifdef HOST_BSD #include #ifdef __FreeBSD__ #include Modified: trunk/savevm.c =================================================================== --- trunk/savevm.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/savevm.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -29,7 +29,7 @@ #include #include -/* Needed early for _BSD etc. */ +/* Needed early for HOST_BSD etc. */ #include "config-host.h" #ifndef _WIN32 @@ -52,7 +52,7 @@ #include #include #include -#ifdef _BSD +#ifdef HOST_BSD #include #if defined(__FreeBSD__) || defined(__DragonFly__) #include Modified: trunk/vl.c =================================================================== --- trunk/vl.c 2009-03-08 00:06:10 UTC (rev 6774) +++ trunk/vl.c 2009-03-08 08:23:32 UTC (rev 6775) @@ -29,7 +29,7 @@ #include #include -/* Needed early for _BSD etc. */ +/* Needed early for HOST_BSD etc. */ #include "config-host.h" #ifndef _WIN32 @@ -53,7 +53,7 @@ #include #include #include -#ifdef _BSD +#ifdef HOST_BSD #include #if defined(__FreeBSD__) || defined(__DragonFly__) #include