2004-04-22 David Mosberger <davidm@hpl.hp.com>
+ * sysdeps/unix/sysv/linux/ia64/Makefile (librt-routines): Mention
+ rt-sysdep.
+ * sysdeps/unix/sysv/linux/ia64/rt-sysdep.S: New file.
+
* sysdeps/ia64/strcat.c: New file.
* sysdeps/ia64/strcat.S: Delete.
+2004-04-22 Simon Josefsson <jas@extundo.com>
+
+ * stringprep.h: Update to latest libidn version.
+ * stringprep.c: Likewise.
+ * idna.c: Likewise.
+
2004-03-14 Ulrich Drepper <drepper@redhat.com>
* idn-stub.c (__idna_to_unicode_lzlz): Use __strchrnul, not strchrnul.
* @IDNA_ICONV_ERROR: Could not convert string in locale encoding.
* @IDNA_MALLOC_ERROR: Could not allocate buffer (this is typically a
* fatal error).
+ * @IDNA_DLOPEN_ERROR: Could not dlopen the libcidn DSO (only used
+ * internally in libc).
*
* Enumerated return codes of idna_to_ascii_4i(),
* idna_to_unicode_44i() functions (and functions derived from those
mostly interested in having someone give real-world benchmark on
the impact of libidn.) */
- for (i = 0; table[i].start; i++)
+ for (i = 0; table[i].start || table[i].end; i++)
if (ucs4 >= table[i].start &&
ucs4 <= (table[i].end ? table[i].end : table[i].start))
return i;
/* stringprep.h Header file for stringprep functions. -*- c -*-
- * Copyright (C) 2002, 2003 Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004 Simon Josefsson
*
* This file is part of GNU Libidn.
*
#include <stddef.h> /* size_t */
#include <unistd.h> /* ssize_t */
-#ifdef _LIBC
-# include <stdint.h>
-#else
-# include <idn-int.h> /* uint32_t */
-#endif
+#include <stdint.h> /* uint32_t */
-#define STRINGPREP_VERSION "0.4.1"
+#define STRINGPREP_VERSION "0.4.3"
/* Error codes. */
typedef enum
+2004-05-04 Jakub Jelinek <jakub@redhat.com>
+
+ * tst-stack1.c: Don't include mcheck.h.
+ (do_test): Make sure user defined stacks aren't reused,
+ don't free them at the end. [BZ #110]
+
2004-05-02 Jakub Jelinek <jakub@redhat.com>
* manager.c: Include not-cancel.h.
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-/* Test whether pthread_create/pthread_join with user defined stacks
- doesn't leak memory. */
+/* Test pthread_create/pthread_join with user defined stacks. */
#include <limits.h>
-#include <mcheck.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdio.h>
return NULL;
}
+#define N 16
+
static int
do_test (void)
{
- mtrace ();
-
void *stack;
- int res = posix_memalign (&stack, getpagesize (), 4 * PTHREAD_STACK_MIN);
+ int res = posix_memalign (&stack, getpagesize (), N * 4 * PTHREAD_STACK_MIN);
if (res)
{
printf ("malloc failed %s\n", strerror (res));
pthread_attr_init (&attr);
int result = 0;
- res = pthread_attr_setstack (&attr, stack, 4 * PTHREAD_STACK_MIN);
- if (res)
+ for (int i = 0; i < N; ++i)
{
- printf ("pthread_attr_setstack failed %d\n", res);
- result = 1;
- }
+ res = pthread_attr_setstack (&attr, stack + i * 4 * PTHREAD_STACK_MIN,
+ 4 * PTHREAD_STACK_MIN);
+ if (res)
+ {
+ printf ("pthread_attr_setstack failed %d\n", res);
+ result = 1;
+ continue;
+ }
- for (int i = 0; i < 16; ++i)
- {
/* Create the thread. */
pthread_t th;
res = pthread_create (&th, &attr, tf, NULL);
pthread_attr_destroy (&attr);
- if (seen != 16)
+ if (seen != N)
{
- printf ("seen %d != 16\n", seen);
+ printf ("seen %d != %d\n", seen, N);
result = 1;
}
- free (stack);
return result;
}
2004-05-04 Jakub Jelinek <jakub@redhat.com>
+ * tst-stack3.c: Note testing functionality beyond POSIX.
+
+2004-05-04 Jakub Jelinek <jakub@redhat.com>
+
* sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (USE___THREAD):
Change conditional from ifdef to if.
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003.
02111-1307 USA. */
/* Test whether pthread_create/pthread_join with user defined stacks
- doesn't leak memory. */
+ doesn't leak memory.
+ NOTE: this tests functionality beyond POSIX. In POSIX user defined
+ stacks cannot be ever freed once used by pthread_create nor they can
+ be reused for other thread. */
#include <limits.h>
#include <mcheck.h>
sysdep-rtld-routines += $(sysdep-dl-routines)
endif
+ifeq ($(subdir),rt)
+librt-routines += rt-sysdep
+endif
+
# This is a crude attempt to silence the compiler which complains about
# then 'current' definition in the kernel headers.
CPPFLAGS += -D_ASM_IA64_CURRENT_H
--- /dev/null
+#include <sysdep.S>