[Lsb-messages] /var/www/bzr/lsb/devel/devchk r2288: add WORD_BIT/LONG_BIT (bug 2759)

Mats Wichmann mats at linuxfoundation.org
Mon May 21 13:28:26 UTC 2012


------------------------------------------------------------
revno: 2288
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: devchk
timestamp: Mon 2012-05-21 07:28:26 -0600
message:
  add WORD_BIT/LONG_BIT (bug 2759)
modified:
  ts/devchk/limits_h.c
-------------- next part --------------
=== modified file 'ts/devchk/limits_h.c'
--- a/ts/devchk/limits_h.c	2012-03-19 10:02:35 +0000
+++ b/ts/devchk/limits_h.c	2012-05-21 13:28:26 +0000
@@ -753,6 +753,78 @@
 #endif
 
 #if _LSB_DEFAULT_ARCH
+#ifdef WORD_BIT
+	CompareConstant(WORD_BIT,32,21532,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: WORD_BIT\n");
+cnt++;
+#endif
+
+#endif
+
+#if defined __powerpc64__
+#ifdef LONG_BIT
+	CompareConstant(LONG_BIT,64,21533,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: LONG_BIT\n");
+cnt++;
+#endif
+
+#elif defined __powerpc__ && !defined __powerpc64__
+#ifdef LONG_BIT
+	CompareConstant(LONG_BIT,32,21533,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: LONG_BIT\n");
+cnt++;
+#endif
+
+#elif defined __ia64__
+#ifdef LONG_BIT
+	CompareConstant(LONG_BIT,64,21533,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: LONG_BIT\n");
+cnt++;
+#endif
+
+#elif defined __i386__
+#ifdef LONG_BIT
+	CompareConstant(LONG_BIT,32,21533,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: LONG_BIT\n");
+cnt++;
+#endif
+
+#elif defined __s390x__
+#ifdef LONG_BIT
+	CompareConstant(LONG_BIT,64,21533,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: LONG_BIT\n");
+cnt++;
+#endif
+
+#elif defined __x86_64__
+#ifdef LONG_BIT
+	CompareConstant(LONG_BIT,64,21533,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: LONG_BIT\n");
+cnt++;
+#endif
+
+#elif defined __s390__ && !defined __s390x__
+#ifdef LONG_BIT
+	CompareConstant(LONG_BIT,32,21533,architecture,5.0,NULL)
+#else
+Msg( "Error: Constant not found: LONG_BIT\n");
+cnt++;
+#endif
+
+#else
+Msg( "No definition for LONG_BIT (21533, int) in db for this architecture\n");
+#ifdef LONG_BIT
+Sql( "REPLACE INTO ArchConst (ACaid,ACcid,ACvalue,ACappearedin,ACwithdrawnin) VALUES (%d,21533,%d,'""5.0""',NULL);\n", architecture, LONG_BIT);
+#endif
+#endif
+#if _LSB_DEFAULT_ARCH
 #ifdef PATH_MAX
 	CompareConstant(PATH_MAX,4096,29,architecture,1.1,NULL)
 #else



More information about the lsb-messages mailing list