aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/sysdeps/pthread
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-11 19:13:06 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-11 19:13:06 +0000
commitb81c896174dc98cb15cc80844751fb23cd9e02d1 (patch)
tree36e280081ea0808186228cdfb4cfe93649678157 /linuxthreads/sysdeps/pthread
parent72c65ff44b8130b54162ec3eb85c36146d7f5d70 (diff)
downloadglibc-b81c896174dc98cb15cc80844751fb23cd9e02d1.tar
glibc-b81c896174dc98cb15cc80844751fb23cd9e02d1.tar.gz
glibc-b81c896174dc98cb15cc80844751fb23cd9e02d1.tar.bz2
glibc-b81c896174dc98cb15cc80844751fb23cd9e02d1.zip
Update.
2000-09-11 Ulrich Drepper <drepper@redhat.com> * 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.
Diffstat (limited to 'linuxthreads/sysdeps/pthread')
-rw-r--r--linuxthreads/sysdeps/pthread/pthread.h13
1 files changed, 13 insertions, 0 deletions
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. */