+2003-05-01 Ulrich Drepper <drepper@redhat.com>
+
+ * malloc/malloc.c (mSTATs): Call ptmalloc_init if necessary.
+
+2003-04-29 Andreas Schwab <schwab@suse.de>
+
+ * string/test-strcat.c (do_one_test): Fix attribute name.
+
2003-04-30 Alexandre Oliva <aoliva@redhat.com>
* sysdeps/unix/sysv/linux/mips/sys/ucontext.h (ucontext): Make
+2003-04-30 Petter Reinholdtsen <pere@hungry.com>
+
+ * tst-fmon.c: Report name of locale if setlocale() fails.
+ * tst-numeric.c: Likewise.
+
+ * tst-fmon.sh: Ignore lines starting with hash '#' in the data file.
+ * tst-numeric.sh: Likewise.
+
+2003-04-30 Petter Reinholdtsen <pere@hungry.com>
+
+ * sort-test.sh: Output 'diff -u' when sorting test failed, to make
+ it easier to find out what was wrong with the sorting order.
+
2003-04-16 Petter Reinholdtsen <pere@hungry.com>
* Makefile (tests): Add LC_NUMERIC test tst-numeric.out.
echo "$l OK"
else
echo "$l FAIL"
+ diff -u $cns.in ${common_objpfx}localedata/$cns.xout
status=1
fi
done
/* Testing the implementation of strfmon(3).
- Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 2000, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
if (setlocale (LC_MONETARY, argv[1]) == NULL)
{
- perror ("setlocale");
+ fprintf (stderr, "setlocale(LC_MONETARY, \"%s\"): %m\n", argv[1]);
exit (EXIT_SETLOCALE);
}
/* This is locale-dependent! see setlocale(3) for details */
#! /bin/sh
# Testing the implementation of strfmon(3).
-# Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# Contributed by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
#
# Run the tests.
# There's a TAB for IFS
while IFS=" " read locale format value expect; do
+ case "$locale" in '#'*) continue ;; esac
if [ -n "$format" ]; then
LOCPATH=${common_objpfx}localedata \
GCONV_PATH=${common_objpfx}/iconvdata \
if (setlocale (LC_ALL, argv[1]) == NULL)
{
- perror ("setlocale");
+ fprintf (stderr, "setlocale(LC_ALL, \"%s\"): %m\n", argv[1]);
exit (EXIT_SETLOCALE);
}
#! /bin/sh
# Testing the implementation of LC_NUMERIC and snprintf(3).
-# Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# Contributed by Jochen Hein <jochen.hein@delphi.central.de>, 1997.
#
# Run the tests.
# There's a TAB for IFS
while IFS=" " read locale format value expect; do
+ case "$locale" in '#'*) continue ;; esac
if [ -n "$format" ]; then
LOCPATH=${common_objpfx}localedata \
GCONV_PATH=${common_objpfx}/iconvdata \
long stat_lock_direct = 0, stat_lock_loop = 0, stat_lock_wait = 0;
#endif
+ if(__malloc_initialized < 0)
+ ptmalloc_init ();
for (i=0, ar_ptr = &main_arena;; i++) {
(void)mutex_lock(&ar_ptr->mutex);
mi = mALLINFo(ar_ptr);
+2003-04-29 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/unix/sysv/linux/x86_64/bits/pthreadtypes.h
+ (__SIZEOF_PTHREAD_COND_T): Define to 48.
+ (pthread_rwlock_t): Add 16 bytes of pad instead of 8 before __flags.
+ * sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h (pthread_cond_t):
+ Make __align long long instead of long.
+ (pthread_rwlock_t): Formatting.
+ * sysdeps/unix/sysv/linux/ia64/bits/pthreadtypes.h
+ (pthread_rwlock_t): Formatting.
+ * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
+ (pthread_cond_t): Make __align long long instead of long.
+ (pthread_rwlock_t): Move __flags field to the same position as in
+ linuxthreads.
+
2003-04-30 Ulrich Drepper <drepper@redhat.com>
* tst-rwlock6.c (do_test): Use correct printf format specifiers.
structure of the attribute type is not exposed on purpose. */
typedef union
{
-struct
+ struct
{
int __lock;
unsigned int __nr_readers;
unsigned long long int __woken_seq;
} __data;
char __size[__SIZEOF_PTHREAD_COND_T];
- long int __align;
+ long long int __align;
} pthread_cond_t;
typedef union
structure of the attribute type is deliberately not exposed. */
typedef union
{
+# if __WORDSIZE == 64
struct
{
int __lock;
unsigned int __nr_readers_queued;
unsigned int __nr_writers_queued;
pthread_t __writer;
+ unsigned long int __pad1;
+ unsigned long int __pad2;
+ /* FLAGS must stay at this position in the structure to maintain
+ binary compatibility. */
+ unsigned int __flags;
+ } __data;
+# else
+ struct
+ {
+ int __lock;
+ unsigned int __nr_readers;
+ unsigned int __readers_wakeup;
+ unsigned int __writer_wakeup;
+ unsigned int __nr_readers_queued;
+ unsigned int __nr_writers_queued;
/* FLAGS must stay at this position in the structure to maintain
binary compatibility. */
unsigned int __flags;
+ pthread_t __writer;
} __data;
+# endif
char __size[__SIZEOF_PTHREAD_RWLOCK_T];
long int __align;
} pthread_rwlock_t;
unsigned long long int __woken_seq;
} __data;
char __size[__SIZEOF_PTHREAD_COND_T];
- long int __align;
+ long long int __align;
} pthread_cond_t;
typedef union
typedef union
{
# if __WORDSIZE == 64
-struct
+ struct
{
int __lock;
unsigned int __nr_readers;
if (HP_TIMING_AVAIL)
{
- hp_timing_t start __attribute ((used));
- hp_timing_t stop __attribute ((used));
+ hp_timing_t start __attribute ((unused));
+ hp_timing_t stop __attribute ((unused));
hp_timing_t best_time = ~ (hp_timing_t) 0;
size_t i;