List:Internals« Previous MessageNext Message »
From:Joerg Bruehe Date:April 20 2005 6:39pm
Subject:bk commit into 4.1 tree (joerg:1.2198)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of joerg. When joerg does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2198 05/04/20 20:38:57 joerg@stripped +6 -0
  Step 2 of the switch to support configuration with NPTL:
  Define a new CPP symbol that the target OS is Linux, and use it where only the OS matters and not the threads Library.
  Until now, 'HAVE_LINUXTHREADS' was used to indicate "Target is Linux" in many places.
  When we support configuration with NPTL but no Linuxthreads, this misuse must cease.

  tools/mysqlmanager.c
    1.44 05/04/20 20:38:54 joerg@stripped +1 -1
    Step 2 of the switch to support configuration with NPTL:
    Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.

  sql/stacktrace.h
    1.3 05/04/20 20:38:54 joerg@stripped +2 -2
    Step 2 of the switch to support configuration with NPTL:
    Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.

  sql/stacktrace.c
    1.16 05/04/20 20:38:54 joerg@stripped +2 -2
    Step 2 of the switch to support configuration with NPTL:
    Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.

  mysys/thr_mutex.c
    1.26 05/04/20 20:38:54 joerg@stripped +1 -1
    Step 2 of the switch to support configuration with NPTL:
    Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.

  include/my_global.h
    1.82 05/04/20 20:38:53 joerg@stripped +4 -4
    Step 2 of the switch to support configuration with NPTL:
    Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.

  configure.in
    1.363 05/04/20 20:38:53 joerg@stripped +1 -0
    Step 2 of the switch to support configuration with NPTL:
    Define a new CPP symbol that the target OS is Linux.
    Until now, 'HAVE_LINUXTHREADS' was used to indicate "Target is Linux" in many places.
    When we support configuration with NPTL but no Linuxthreads, this misuse must cease.

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	joerg
# Host:	trift2.
# Root:	/M41/nptl-4.1

--- 1.362/configure.in	Wed Apr 20 20:10:25 2005
+++ 1.363/configure.in	Wed Apr 20 20:38:53 2005
@@ -412,6 +412,7 @@
   MYSQLD_DEFAULT_SWITCHES="--skip-locking"
   TARGET_LINUX="true"
   AC_MSG_RESULT("yes");
+  AC_DEFINE([TARGET_OS_LINUX], [1], [Whether we build for Linux])
 else
   MYSQLD_DEFAULT_SWITCHES=""
   TARGET_LINUX="false"

--- 1.25/mysys/thr_mutex.c	Mon Aug 23 12:46:49 2004
+++ 1.26/mysys/thr_mutex.c	Wed Apr 20 20:38:54 2005
@@ -17,7 +17,7 @@
 /* This makes a wrapper for mutex handling to make it easier to debug mutex */
 
 #include <my_global.h>
-#if defined(HAVE_LINUXTHREADS) && !defined (__USE_UNIX98)
+#if defined(TARGET_OS_LINUX) && !defined (__USE_UNIX98)
 #define __USE_UNIX98			/* To get rw locks under Linux */
 #endif
 #if defined(THREAD) && defined(SAFE_MUTEX)

--- 1.15/sql/stacktrace.c	Wed Oct  6 18:14:30 2004
+++ 1.16/sql/stacktrace.c	Wed Apr 20 20:38:54 2005
@@ -43,7 +43,7 @@
   fputc('\n', stderr);
 }
 
-#ifdef HAVE_LINUXTHREADS
+#ifdef TARGET_OS_LINUX
 #define SIGRETURN_FRAME_COUNT  2
 
 #if defined(__alpha__) && defined(__GNUC__)
@@ -201,7 +201,7 @@
 stack trace is much more helpful in diagnosing the problem, so please do \n\
 resolve it\n");
 }
-#endif /* HAVE_LINUXTHREADS */
+#endif /* TARGET_OS_LINUX */
 #endif /* HAVE_STACKTRACE */
 
 /* Produce a core for the thread */

--- 1.2/sql/stacktrace.h	Wed Aug 22 11:22:45 2001
+++ 1.3/sql/stacktrace.h	Wed Apr 20 20:38:54 2005
@@ -18,7 +18,7 @@
 extern "C" {
 #endif
 
-#ifdef HAVE_LINUXTHREADS
+#ifdef TARGET_OS_LINUX
 #if defined(HAVE_STACKTRACE) || (defined (__i386__) || (defined(__alpha__) && defined(__GNUC__)))
 #undef HAVE_STACKTRACE
 #define HAVE_STACKTRACE
@@ -30,7 +30,7 @@
 void print_stacktrace(gptr stack_bottom, ulong thread_stack);
 void safe_print_str(const char* name, const char* val, int max_len);
 #endif /* (defined (__i386__) || (defined(__alpha__) && defined(__GNUC__))) */
-#endif /* HAVE_LINUXTHREADS */
+#endif /* TARGET_OS_LINUX */
 
 /* Define empty prototypes for functions that are not implemented */
 #ifndef HAVE_STACKTRACE

--- 1.81/include/my_global.h	Fri Apr  1 18:45:03 2005
+++ 1.82/include/my_global.h	Wed Apr 20 20:38:53 2005
@@ -97,7 +97,7 @@
 
 
 /* Fix problem with S_ISLNK() on Linux */
-#if defined(HAVE_LINUXTHREADS)
+#if defined(TARGET_OS_LINUX)
 #undef  _GNU_SOURCE
 #define _GNU_SOURCE 1
 #endif
@@ -214,13 +214,13 @@
 #endif
 
 /* In Linux-alpha we have atomic.h if we are using gcc */
-#if defined(HAVE_LINUXTHREADS) && defined(__GNUC__) && defined(__alpha__) && (__GNUC__ > 2 || ( __GNUC__ == 2 &&  __GNUC_MINOR__ >= 95)) && !defined(HAVE_ATOMIC_ADD)
+#if defined(TARGET_OS_LINUX) && defined(__GNUC__) && defined(__alpha__) && (__GNUC__ > 2 || ( __GNUC__ == 2 &&  __GNUC_MINOR__ >= 95)) && !defined(HAVE_ATOMIC_ADD)
 #define HAVE_ATOMIC_ADD
 #define HAVE_ATOMIC_SUB
 #endif
 
 /* In Linux-ia64 including atomic.h will give us an error */
-#if (defined(HAVE_LINUXTHREADS) && defined(__GNUC__) && (defined(__ia64__)||defined(__powerpc64__))) || !defined(THREAD)
+#if (defined(TARGET_OS_LINUX) && defined(__GNUC__) && (defined(__ia64__)||defined(__powerpc64__))) || !defined(THREAD)
 #undef HAVE_ATOMIC_ADD
 #undef HAVE_ATOMIC_SUB
 #endif
@@ -755,7 +755,7 @@
 error "Neither int or long is of 4 bytes width"
 #endif
 
-#if !defined(HAVE_ULONG) && !defined(HAVE_LINUXTHREADS) && !defined(__USE_MISC)
+#if !defined(HAVE_ULONG) && !defined(TARGET_OS_LINUX) && !defined(__USE_MISC)
 typedef unsigned long	ulong;		  /* Short for unsigned long */
 #endif
 #ifndef longlong_defined

--- 1.43/tools/mysqlmanager.c	Wed Sep  1 02:23:33 2004
+++ 1.44/tools/mysqlmanager.c	Wed Apr 20 20:38:54 2005
@@ -101,7 +101,7 @@
   set by the user
 */
 
-#if defined(__i386__) && defined(HAVE_LINUXTHREADS)
+#if defined(__i386__) && defined(TARGET_OS_LINUX)
 #define DO_STACKTRACE 1
 #endif
 
Thread
bk commit into 4.1 tree (joerg:1.2198)Joerg Bruehe20 Apr