aboutsummaryrefslogtreecommitdiffstats
path: root/include/pthread.h
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2001-07-20 04:23:11 +0000
committerJason Evans <jasone@FreeBSD.org>2001-07-20 04:23:11 +0000
commitaa33517e949a0603d3bac6cba0c05344ca68754c (patch)
tree656e85a738aa3a12d8926a342cea87c2eae35e1d /include/pthread.h
parent50ea040994690e6a3141549c18dfd59a25de75e1 (diff)
downloadsrc-aa33517e949a0603d3bac6cba0c05344ca68754c.tar.gz
src-aa33517e949a0603d3bac6cba0c05344ca68754c.zip
Implement pthread_attr_[gs]etguardsize(). Non-default-size stacks used to
be malloc()ed, but they are now allocated using mmap(), just as the default-size stacks are. A separate cache of stacks is kept for non-default-size stacks. Collaboration with: deischen
Notes
Notes: svn path=/head/; revision=80021
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 54fe73649dc5..ec11d6fe0578 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -192,12 +192,15 @@ __BEGIN_DECLS
int pthread_attr_destroy __P((pthread_attr_t *));
int pthread_attr_getstacksize __P((const pthread_attr_t *,
size_t *));
+int pthread_attr_getguardsize __P((const pthread_attr_t *,
+ size_t *));
int pthread_attr_getstackaddr __P((const pthread_attr_t *,
void **));
int pthread_attr_getdetachstate __P((const pthread_attr_t *,
int *));
int pthread_attr_init __P((pthread_attr_t *));
int pthread_attr_setstacksize __P((pthread_attr_t *, size_t));
+int pthread_attr_setguardsize __P((pthread_attr_t *, size_t));
int pthread_attr_setstackaddr __P((pthread_attr_t *, void *));
int pthread_attr_setdetachstate __P((pthread_attr_t *, int));
void pthread_cleanup_pop __P((int));