From 571f2090f876fee3eb99fd141d6595e6bc45549c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 23 Sep 2003 04:41:29 +0000 Subject: Update. 2003-09-22 Philip Blundell * forward.c: Add _pthread_cleanup_push, _pthread_cleanup_pop. * sysdeps/pthread/pthread-functions.h (struct pthread_functions): Likewise. * pthread.c (__pthread_elements): Initialise these new elements. * sysdeps/pthread/bits/libc-lock.h (__libc_cleanup_push): Use __libc_maybe_call. (__libc_cleanup_pop): Likewise. --- linuxthreads/forward.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linuxthreads/forward.c') diff --git a/linuxthreads/forward.c b/linuxthreads/forward.c index 46cf53893e..b2a36d7d60 100644 --- a/linuxthreads/forward.c +++ b/linuxthreads/forward.c @@ -173,3 +173,7 @@ FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, oldstate), 0) FORWARD (pthread_setcanceltype, (int type, int *oldtype), (type, oldtype), 0) + +FORWARD2 (_pthread_cleanup_push, void, (struct _pthread_cleanup_buffer * buffer, void (*routine)(void *), void * arg), (buffer, routine, arg), return) + +FORWARD2 (_pthread_cleanup_pop, void, (struct _pthread_cleanup_buffer * buffer, int execute), (buffer, execute), return) -- cgit v1.2.3