summaryrefslogtreecommitdiffstats
path: root/include/pthread.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-02-10 08:48:04 +0000
committeralfred <alfred@FreeBSD.org>2003-02-10 08:48:04 +0000
commit6a79467bbde44ba077bc5179639dd9dc5565c929 (patch)
tree9cfde8705da32bc1df807d3472d6599f73e66326 /include/pthread.h
parente5970c99a38ac699e97b1ca31f86489f31066f81 (diff)
downloadFreeBSD-src-6a79467bbde44ba077bc5179639dd9dc5565c929.zip
FreeBSD-src-6a79467bbde44ba077bc5179639dd9dc5565c929.tar.gz
Add pthread_attr_getstack() and pthread_attr_setstack().
Submitted by: Craig Rodrigues <rodrigc@attbi.com>
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 83f36e4..647e702 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -190,6 +190,9 @@ enum pthread_mutextype {
*/
__BEGIN_DECLS
int pthread_attr_destroy(pthread_attr_t *);
+int pthread_attr_getstack(const pthread_attr_t * __restrict,
+ void ** __restrict stackaddr,
+ size_t * __restrict stacksize);
int pthread_attr_getstacksize(const pthread_attr_t *, size_t *);
int pthread_attr_getguardsize(const pthread_attr_t *, size_t *);
int pthread_attr_getstackaddr(const pthread_attr_t *, void **);
@@ -197,6 +200,7 @@ int pthread_attr_getdetachstate(const pthread_attr_t *, int *);
int pthread_attr_init(pthread_attr_t *);
int pthread_attr_setstacksize(pthread_attr_t *, size_t);
int pthread_attr_setguardsize(pthread_attr_t *, size_t);
+int pthread_attr_setstack(pthread_attr_t *, void *, size_t);
int pthread_attr_setstackaddr(pthread_attr_t *, void *);
int pthread_attr_setdetachstate(pthread_attr_t *, int);
void pthread_cleanup_pop(int);
OpenPOWER on IntegriCloud