about summary refs log tree commit diff
path: root/nptl/sysdeps/pthread/posix-timer.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-25 20:41:26 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-25 20:41:26 +0000
commit09402f5bc1d87787c84dbf75d41777c87b1ce40e (patch)
treed5be40f068434405ba1554389d73460fea0a1a0a /nptl/sysdeps/pthread/posix-timer.h
parent2a9ae45c3f89b4069e75c53f6dd32e8174b5cfd1 (diff)
downloadglibc-09402f5bc1d87787c84dbf75d41777c87b1ce40e.tar.gz
glibc-09402f5bc1d87787c84dbf75d41777c87b1ce40e.tar.xz
glibc-09402f5bc1d87787c84dbf75d41777c87b1ce40e.zip
Update.
2003-03-25  Ulrich Drepper  <drepper@redhat.com>

	* csu/tst-atomic.c: Adjust tests to what atomic_add_negative and
	atomic_add_zero were supposed to do.
	* include/atomic.h: Adjust atomic_add_negative and atomic_add_zero
	to x86 behavior.

	* sysdeps/generic/bits/typesizes.h (__TIMER_T_TYPE): Define as void*.
	This matches the new timer implementation.
	* sysdeps/unix/sysv/linux/bits/siginfo.h (struct siginfo): Adjust
	timer info for what the kernel provides these days.
	(struct sigevent): Add _tid field.
	Define SIGEV_THREAD_ID.

	* Versions.def (librt): Add GLIBC_2.3.3.

	* abilist/libpthread.abilist: Update for nptl.
Diffstat (limited to 'nptl/sysdeps/pthread/posix-timer.h')
-rw-r--r--nptl/sysdeps/pthread/posix-timer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nptl/sysdeps/pthread/posix-timer.h b/nptl/sysdeps/pthread/posix-timer.h
index 6710291b9b..bc0c57f63b 100644
--- a/nptl/sysdeps/pthread/posix-timer.h
+++ b/nptl/sysdeps/pthread/posix-timer.h
@@ -1,5 +1,5 @@
 /* Definitions for POSIX timer implementation on top of LinuxThreads.
-   Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Kaz Kylheku <kaz@ashi.footprints.net>.
 
@@ -94,6 +94,7 @@ extern struct thread_node __timer_signal_thread_tclk;
 
 
 /* Return pointer to timer structure corresponding to ID.  */
+#if 0
 static inline struct timer_node *
 timer_id2ptr (timer_t timerid)
 {
@@ -109,6 +110,10 @@ timer_ptr2id (struct timer_node *timer)
 {
   return timer - __timer_array;
 }
+#else
+# define timer_id2ptr(timerid) ((struct timed_node *) timerid)
+# define timer_ptr2id(timerid) ((void *) timerid)
+#endif
 
 /* Check whether timer is valid; global mutex must be held. */
 static inline int