From b81c896174dc98cb15cc80844751fb23cd9e02d1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 11 Sep 2000 19:13:06 +0000 Subject: Update. 2000-09-11 Ulrich Drepper * sysdeps/pthread/pthread.h: Declare pthread_attr_getstack and pthread_attr_setstack. * Versions [libpthread] (GLIBC_2.2): Export pthread_attr_getstack and pthread_attr_setstack. * attr.c (pthread_attr_getstack, pthread_attr_setstack): New functions. --- linuxthreads/sysdeps/pthread/pthread.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'linuxthreads/sysdeps') diff --git a/linuxthreads/sysdeps/pthread/pthread.h b/linuxthreads/sysdeps/pthread/pthread.h index 459eca6241..f2a742e57e 100644 --- a/linuxthreads/sysdeps/pthread/pthread.h +++ b/linuxthreads/sysdeps/pthread/pthread.h @@ -264,6 +264,19 @@ extern int pthread_attr_getstackaddr (__const pthread_attr_t *__restrict __attr, void **__restrict __stackaddr) __THROW; +#ifdef __USE_XOPEN2K +/* The following two interfaces are intended to replace the last two. They + require setting the address as well as the size since only setting the + address will make the implementation on some architectures impossible. */ +extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, + size_t __stacksize) __THROW; + +/* Return the previously set address for the stack. */ +extern int pthread_attr_getstack (__const pthread_attr_t *__restrict __attr, + void **__restrict __stackaddr, + size_t *__restrict __stacksize) __THROW; +#endif + /* Add information about the minimum stack size needed for the thread to be started. This size must never be less than PTHREAD_STACK_SIZE and must also not exceed the system limits. */ -- cgit v1.2.3