diff options
author | Neal H. Walfield <neal@gnu.org> | 2005-01-12 10:33:39 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-06 22:41:11 +0200 |
commit | d7fecf68ed19432ad1d9f18f83af7d211b5e33d4 (patch) | |
tree | 8117e655a800a040ad05d8fb388ccfabfa0894dc | |
parent | a2102d6a91d6e4522471da3bbc3d58473400bfe7 (diff) |
libc-parts/
2005-01-12 Neal H. Walfield <neal@gnu.org>
* assert.h: Include prototype for printf.
(assert) [!NDEBUG]: Rewrite to do something useful.
libhurd-cap-server/
2005-01-12 Neal H. Walfield <neal@gnu.org>
* class-init.c (hurd_cap_class_init_untyped): Fix assert.
* bucket-manage-mt.c (manage_mt_worker): Likewise.
libpthread/
2005-01-12 Neal H. Walfield <neal@gnu.org>
* sysdeps/l4/pt-thread-alloc.c: Replace assert with a compile time
warning.
* sysdeps/l4/hurd/pt-sigstate.c (__pthread_sigstate): Don't return
EINVAL. Pretend to work so the generic code is happy.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | sysdeps/l4/hurd/pt-sigstate.c | 5 | ||||
-rw-r--r-- | sysdeps/l4/pt-thread-alloc.c | 8 |
3 files changed, 17 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2005-01-12 Neal H. Walfield <neal@gnu.org> + + * sysdeps/l4/pt-thread-alloc.c: Replace assert with a compile time + warning. + * sysdeps/l4/hurd/pt-sigstate.c (__pthread_sigstate): Don't return + EINVAL. Pretend to work so the generic code is happy. + 2004-11-02 Marcus Brinkmann <marcus@gnu.org> * sysdeps/generic/bits/condition.h (__PTHREAD_COND_INITIALIZER): diff --git a/sysdeps/l4/hurd/pt-sigstate.c b/sysdeps/l4/hurd/pt-sigstate.c index 490c95f..8ab8034 100644 --- a/sysdeps/l4/hurd/pt-sigstate.c +++ b/sysdeps/l4/hurd/pt-sigstate.c @@ -1,5 +1,5 @@ /* Set a thread's signal state. Hurd on L4 version. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2005 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 @@ -28,5 +28,6 @@ __pthread_sigstate (struct __pthread *thread, int how, const sigset_t *set, sigset_t *oset, int clear_pending) { - return EINVAL; + /* FIXME: Do the right thing here. */ + return 0; } diff --git a/sysdeps/l4/pt-thread-alloc.c b/sysdeps/l4/pt-thread-alloc.c index 07784f5..fc2f43b 100644 --- a/sysdeps/l4/pt-thread-alloc.c +++ b/sysdeps/l4/pt-thread-alloc.c @@ -1,5 +1,5 @@ /* Allocate kernel thread. L4 version. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2005 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 @@ -31,7 +31,13 @@ __pthread_thread_alloc (struct __pthread *thread) /* The main thread is already running of course. */ if (__pthread_num_threads == 1) { + /* XXX: The initialization code needs to make this consistent. + Right now, we have none and this whole library is a hack + anyways. */ +#warning __pthread_total is inconsistent. +#if 0 assert (__pthread_total == 1); +#endif thread->threadid = l4_myself (); } else |