]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 6 Apr 2003 09:28:48 +0000 (09:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 6 Apr 2003 09:28:48 +0000 (09:28 +0000)
2003-04-06  Ulrich Drepper  <drepper@redhat.com>

* descr.h (struct pthread): Move cancelhandling member to the front.

catgets/gencat.c
nptl/ChangeLog
nptl/descr.h

index 18bf3bbb7f79e9359243761e0f98507e34e5e4ef..4bb084ef22d84f42310b1835326a68917fd64482 100644 (file)
@@ -343,10 +343,10 @@ read_input_file (struct catalog *current, const char *fname)
                      continued = !continued;
                    }
                  while (temp_act_len > 0 && buf[temp_act_len - 1] == '\\');
-               }
 
-             if (continued)
-               --act_len;
+                 if (continued)
+                   --act_len;
+               }
            }
 
          /* Append to currently selected line.  */
index c798977cc6e4ce78b4bc51b7896b2c1d8dcea77d..7bfcef863b0d718e30e17147018fc9b97a154602 100644 (file)
@@ -1,3 +1,7 @@
+2003-04-06  Ulrich Drepper  <drepper@redhat.com>
+
+       * descr.h (struct pthread): Move cancelhandling member to the front.
+
 2003-04-05  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/register-atfork.c: Define malloc_prepare,
index 20e44af3beee9bcd9a2021c2c97fbe7d8fc1357a..3625b150884fde7fea633bc997a25370cae63a70 100644 (file)
@@ -86,8 +86,36 @@ struct pthread
   /* List of cleanup buffers.  */
   struct _pthread_cleanup_buffer *cleanup;
 
-  /* True if events must be reported.  */
-  bool report_events;
+  /* Flags determining processing of cancellation.  */
+  int cancelhandling;
+  /* Bit set if cancellation is disabled.  */
+#define CANCELSTATE_BIT                0
+#define CANCELSTATE_BITMASK    0x01
+  /* Bit set if asynchronous cancellation mode is selected.  */
+#define CANCELTYPE_BIT         1
+#define CANCELTYPE_BITMASK     0x02
+  /* Bit set if canceling has been initiated.  */
+#define CANCELING_BIT          2
+#define CANCELING_BITMASK      0x04
+  /* Bit set if canceled.  */
+#define CANCELED_BIT           3
+#define CANCELED_BITMASK       0x08
+  /* Bit set if thread is exiting.  */
+#define EXITING_BIT            4
+#define EXITING_BITMASK                0x10
+  /* Bit set if thread terminated and TCB is freed.  */
+#define TERMINATED_BIT         5
+#define TERMINATED_BITMASK     0x20
+  /* Mask for the rest.  Helps the compiler to optimize.  */
+#define CANCEL_RESTMASK                0xffffffc0
+
+#define CANCEL_ENABLED_AND_CANCELED(value) \
+  (((value) & (CANCELSTATE_BITMASK | CANCELED_BITMASK | EXITING_BITMASK              \
+              | CANCEL_RESTMASK | TERMINATED_BITMASK)) == CANCELED_BITMASK)
+#define CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS(value) \
+  (((value) & (CANCELSTATE_BITMASK | CANCELTYPE_BITMASK | CANCELED_BITMASK    \
+              | EXITING_BITMASK | CANCEL_RESTMASK | TERMINATED_BITMASK))     \
+   == (CANCELTYPE_BITMASK | CANCELED_BITMASK))
 
   /* We allocate one block of references here.  This should be enough
      to avoid allocating any memory dynamically for most applications.  */
@@ -108,6 +136,9 @@ struct pthread
   /* Two-level array for the thread-specific data.  */
   struct pthread_key_data *specific[PTHREAD_KEY_1STLEVEL_SIZE];
 
+  /* True if events must be reported.  */
+  bool report_events;
+
   /* True if the user provided the stack.  */
   bool user_stack;
 
@@ -129,36 +160,6 @@ struct pthread
   /* Check whether a thread is detached.  */
 #define IS_DETACHED(pd) ((pd)->joinid == (pd))
 
-  /* Flags determining processing of cancellation.  */
-  int cancelhandling;
-  /* Bit set if cancellation is disabled.  */
-#define CANCELSTATE_BIT                0
-#define CANCELSTATE_BITMASK    0x01
-  /* Bit set if asynchronous cancellation mode is selected.  */
-#define CANCELTYPE_BIT         1
-#define CANCELTYPE_BITMASK     0x02
-  /* Bit set if canceling has been initiated.  */
-#define CANCELING_BIT          2
-#define CANCELING_BITMASK      0x04
-  /* Bit set if canceled.  */
-#define CANCELED_BIT           3
-#define CANCELED_BITMASK       0x08
-  /* Bit set if thread is exiting.  */
-#define EXITING_BIT            4
-#define EXITING_BITMASK                0x10
-  /* Bit set if thread terminated and TCB is freed.  */
-#define TERMINATED_BIT         5
-#define TERMINATED_BITMASK     0x20
-  /* Mask for the rest.  Helps the compiler to optimize.  */
-#define CANCEL_RESTMASK                0xffffffc0
-
-#define CANCEL_ENABLED_AND_CANCELED(value) \
-  (((value) & (CANCELSTATE_BITMASK | CANCELED_BITMASK | EXITING_BITMASK              \
-              | CANCEL_RESTMASK | TERMINATED_BITMASK)) == CANCELED_BITMASK)
-#define CANCEL_ENABLED_AND_CANCELED_AND_ASYNCHRONOUS(value) \
-  (((value) & (CANCELSTATE_BITMASK | CANCELTYPE_BITMASK | CANCELED_BITMASK    \
-              | EXITING_BITMASK | CANCEL_RESTMASK | TERMINATED_BITMASK))     \
-   == (CANCELTYPE_BITMASK | CANCELED_BITMASK))
   /* Setjmp buffer to be used if try/finally is not available.  */
   sigjmp_buf cancelbuf;
 #define HAVE_CANCELBUF 1