]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 11 May 2003 23:28:52 +0000 (23:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 11 May 2003 23:28:52 +0000 (23:28 +0000)
* io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.

2003-05-11  Ulrich Drepper  <drepper@redhat.com>

* time/tst-strftime.c (do_test): Add tests for - flag.

2003-05-11  Jim Meyering  <jim@meyering.net>

* time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
        the space-padded-by-default conversion specifiers, %e, %k, %l.

2003-05-11  Andreas Schwab  <schwab@suse.de>

ChangeLog
io/Makefile
nptl/ChangeLog
nptl/cond-perf.c
time/strftime.c

index e089f2e2aa2ad2a635459654ed6f63eaec30661e..6e393e646e7d7af368aa311a89356584dff938ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2003-05-11  Andreas Schwab  <schwab@suse.de>
+
+       * io/Makefile ($(objpfx)ftwtest.out): Use absolute file names.
+
+2003-05-11  Ulrich Drepper  <drepper@redhat.com>
+
+       * time/tst-strftime.c (do_test): Add tests for - flag.
+
+2003-05-11  Jim Meyering  <jim@meyering.net>
+
+       * time/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
+        the space-padded-by-default conversion specifiers, %e, %k, %l.
+
 2003-05-11  Andreas Schwab  <schwab@suse.de>
 
        * sysdeps/generic/sched_setaffinity.c: Fix parameter name.
index 97bff3606c7cc174457f776f501323ee8cd99cc2..0a222a234ebba75d4aea1f730f1de9e0d3dd646f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 1992-1999,2000,01,02 Free Software Foundation, Inc.
+# Copyright (C) 1992-2002, 2003 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 
 # The GNU C Library is free software; you can redistribute it and/or
@@ -83,5 +83,6 @@ ifeq ($(cross-compiling),no)
 tests: $(objpfx)ftwtest.out
 
 $(objpfx)ftwtest.out: $(objpfx)ftwtest
-       $(SHELL) -e ftwtest-sh $(common-objpfx) $(<D)/$(<F) > $@
+       $(SHELL) -e ftwtest-sh $(shell cd $(common-objpfx). && pwd)/ \
+                $(shell cd $(<D) && pwd)/$(<F) > $@
 endif
index 93409bde1cb1043b0f90e8c92002adc52cd93fde..78943b369672774a5aa1646ad3aeaf0dcfdc307c 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-11  Ulrich Drepper  <drepper@redhat.com>
+
+       * cond-perf.c (cons): Add missing locking around setting of alldone.
+
 2003-05-10  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Remove futex
index c3305b391d8f8a26a406eaa12d32cd900873a208..53d85637b8743b89575f4bc76fe4d44a69445348 100644 (file)
@@ -25,8 +25,10 @@ cons (void *arg)
     {
       if (--ntogo == 0)
        {
+         pthread_mutex_lock (&mut2);
          alldone = true;
          pthread_cond_signal (&cond2);
+         pthread_mutex_unlock (&mut2);
        }
 
       pthread_cond_wait (&cond1, &mut1);
@@ -67,7 +69,7 @@ main (int argc, char *argv[])
   pthread_t th[nthreads];
   int i;
   for (i = 0; i < nthreads; ++i)
-    if ((err = pthread_create (&th[i], NULL, cons, (void *) (long) i)) != 0)
+    if (__builtin_expect ((err = pthread_create (&th[i], NULL, cons, (void *) (long) i)) != 0, 0))
       printf ("pthread_create: %s\n", strerror (err));
 
   for (i = 0; i < nrounds; ++i)
index d9ed3ffe8c929f7ab51c3287244e4cfdc337818d..99bf7f6f12e55682754c4ceaf825ed7bca491747 100644 (file)
@@ -977,8 +977,8 @@ my_strftime (s, maxsize, format, tp ut_argument LOCALE_PARAM)
             jump to one of these two labels.  */
 
        do_number_spacepad:
-         /* Force `_' flag unless overwritten by `0' flag.  */
-         if (pad != L_('0'))
+         /* Force `_' flag unless overwritten by `0' or '-' flag.  */
+         if (pad != L_('0') && pad != L_('-'))
            pad = L_('_');
 
        do_number: