]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 23 Sep 2003 04:41:29 +0000 (04:41 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 23 Sep 2003 04:41:29 +0000 (04:41 +0000)
2003-09-22  Philip Blundell  <philb@gnu.org>

* forward.c: Add _pthread_cleanup_push, _pthread_cleanup_pop.
* sysdeps/pthread/pthread-functions.h (struct pthread_functions):
Likewise.
* pthread.c (__pthread_elements): Initialise these new elements.
* sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Use
__libc_maybe_call.
(__libc_cleanup_pop): Likewise.

linuxthreads/ChangeLog
linuxthreads/forward.c
linuxthreads/pthread.c
linuxthreads/sysdeps/pthread/bits/libc-lock.h
linuxthreads/sysdeps/pthread/pthread-functions.h
localedata/ChangeLog
localedata/locales/ca_ES
localedata/locales/eu_ES
localedata/locales/gl_ES

index 62c05e256ddf81386e7de12fc8f6b9b2f5478d74..adbb233535d40d8de9372ddb6a102ac254134396 100644 (file)
@@ -1,3 +1,13 @@
+2003-09-22  Philip Blundell  <philb@gnu.org>
+
+       * forward.c: Add _pthread_cleanup_push, _pthread_cleanup_pop.
+       * sysdeps/pthread/pthread-functions.h (struct pthread_functions):
+       Likewise.
+       * pthread.c (__pthread_elements): Initialise these new elements.
+       * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Use
+       __libc_maybe_call.
+       (__libc_cleanup_pop): Likewise.
+
 2003-09-22  Jakub Jelinek  <jakub@redhat.com>
 
        * attr.c: Include stdlib.h.
index 46cf53893ec3a7ac5feca034b2fa296b06536135..b2a36d7d60a7c91fbbc35939864806bca8468d53 100644 (file)
@@ -173,3 +173,7 @@ FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, oldstate),
         0)
 
 FORWARD (pthread_setcanceltype, (int type, int *oldtype), (type, oldtype), 0)
+
+FORWARD2 (_pthread_cleanup_push, void, (struct _pthread_cleanup_buffer * buffer, void (*routine)(void *), void * arg), (buffer, routine, arg), return)
+
+FORWARD2 (_pthread_cleanup_pop, void, (struct _pthread_cleanup_buffer * buffer, int execute), (buffer, execute), return)
index a6a2edac817e62ffed1f960b036fbcf26e76c200..b3953542e06229334218c18353aab1bbd35afc2e 100644 (file)
@@ -279,7 +279,9 @@ struct pthread_functions __pthread_functions =
     .ptr_pthread_cleanup_upto = __pthread_cleanup_upto,
     .ptr_pthread_sigaction = __pthread_sigaction,
     .ptr_pthread_sigwait = __pthread_sigwait,
-    .ptr_pthread_raise = __pthread_raise
+    .ptr_pthread_raise = __pthread_raise,
+    .ptr__pthread_cleanup_push = _pthread_cleanup_push,
+    .ptr__pthread_cleanup_pop = _pthread_cleanup_pop
   };
 #ifdef SHARED
 # define ptr_pthread_functions &__pthread_functions
index c0d0debe14425fbef1476e1649e3689b19a60edf..7e22166862eab76844fa8fccb6ae63cba3055f4e 100644 (file)
@@ -265,18 +265,12 @@ typedef pthread_key_t __libc_key_t;
     }
 
 #define __libc_cleanup_push(fct, arg) \
-  { struct _pthread_cleanup_buffer _buffer;                                  \
-    int _avail = _pthread_cleanup_push != NULL;                                      \
-    if (_avail) {                                                            \
-      _pthread_cleanup_push (&_buffer, (fct), (arg));                        \
-    }
+    { struct _pthread_cleanup_buffer _buffer;                                \
+    __libc_maybe_call (_pthread_cleanup_push, (&_buffer, (fct), (arg)), 0)
 
 #define __libc_cleanup_pop(execute) \
-    if (_avail) {                                                            \
-      _pthread_cleanup_pop (&_buffer, execute);                                      \
-    }                                                                        \
-  }
-
+    __libc_maybe_call (_pthread_cleanup_pop, (&_buffer, execute), 0);        \
+    }
 
 /* Create thread-specific key.  */
 #define __libc_key_create(KEY, DESTRUCTOR) \
index deade5c981c4bccbe5e3429e93de87fe8ecda1d8..43a328ae9c8ec338ded20193c493a8a41591df0c 100644 (file)
@@ -83,6 +83,11 @@ struct pthread_functions
   int (*ptr_pthread_raise) (int sig);
   int (*ptr___pthread_cond_timedwait) (pthread_cond_t *, pthread_mutex_t *,
                                       const struct timespec *);
+  void (*ptr__pthread_cleanup_push) (struct _pthread_cleanup_buffer * buffer,
+                                    void (*routine)(void *), void * arg);
+
+  void (*ptr__pthread_cleanup_pop) (struct _pthread_cleanup_buffer * buffer,
+                                   int execute);
 };
 
 /* Variable in libc.so.  */
index dbe894167a732520df5441c43f3a6a668a84d92e..0458879d70b6a9e8a8102e4834f4e9f56509961a 100644 (file)
@@ -1,3 +1,17 @@
+2003-09-21  Jordi Mallach  <jordi@gnu.org>
+
+       * locales/ca_ES: Fix mon_grouping, int_frac_digits and frac_digits
+       values.
+       * locales/eu_ES: Fix int_frac_digits and frac_digits values.
+       * locales/gl_ES: Likewise.
+
+2003-09-21  Jordi Mallach  <jordi@gnu.org>
+
+       * locales/ca_ES: Fix mon_grouping, int_frac_digits and frac_digits
+       values.
+       * locales/eu_ES: Fix int_frac_digits and frac_digits values.
+       * locales/gl_ES: Likewise.
+
 2003-09-17  Ulrich Drepper  <drepper@redhat.com>
 
        * locales/lo_LA: Fix duplicated collation entries.
index 4161efffd6b94779ff7e0ad1a3bf7afb51d4d325..fce51fd41c58dd94ed20ca1336e9521f3b697c7c 100644 (file)
@@ -2124,11 +2124,11 @@ int_curr_symbol      "<U0045><U0055><U0052><U0020>"
 currency_symbol      "<U20AC>"
 mon_decimal_point    "<U002C>"
 mon_thousands_sep    "<U002E>"
-mon_grouping         2;3
+mon_grouping         3;3
 positive_sign        ""
 negative_sign        "<U002D>"
-int_frac_digits      0
-frac_digits          0
+int_frac_digits      2
+frac_digits          2
 p_cs_precedes        1
 p_sep_by_space       1
 n_cs_precedes        1
index bb981b00461e0428e04d24ad0fea04d57e25be3c..412ebcaa9542f4d5bafa2aef3923cf1c80450927 100644 (file)
@@ -71,8 +71,8 @@ mon_thousands_sep    "<U002E>"
 mon_grouping         3;3
 positive_sign        ""
 negative_sign        "<U002D>"
-int_frac_digits      0
-frac_digits          0
+int_frac_digits      2
+frac_digits          2
 p_cs_precedes        1
 p_sep_by_space       1
 n_cs_precedes        1
index 28c5e9ac69048cfeb38780f300a103b7732f1c21..01cf406c57af2a2c16bf3c80e7151cec567cd97d 100644 (file)
@@ -67,8 +67,8 @@ mon_thousands_sep    "<U002E>"
 mon_grouping         3;3
 positive_sign        ""
 negative_sign        "<U002D>"
-int_frac_digits      0
-frac_digits          0
+int_frac_digits      2
+frac_digits          2
 p_cs_precedes        1
 p_sep_by_space       1
 n_cs_precedes        1