diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2004-02-22 23:59:27 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2004-02-22 23:59:27 +0000 |
commit | f9429574c85acd0974ac93c2f82dd1ee0d430364 (patch) | |
tree | ffc9cb44ed37b1f4372f777cb8ee80865a1a11e0 /lib/libpthread/include | |
parent | 118b0dcdd81004c19167d42852cf6de5833f59b5 (diff) |
add pthread_attr_[get|set]stack
From: FreeBSD's libc_r
ok marc@
Diffstat (limited to 'lib/libpthread/include')
-rw-r--r-- | lib/libpthread/include/pthread.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h index 794b8184223..5f70905451b 100644 --- a/lib/libpthread/include/pthread.h +++ b/lib/libpthread/include/pthread.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pthread.h,v 1.21 2004/02/22 06:25:33 brad Exp $ */ +/* $OpenBSD: pthread.h,v 1.22 2004/02/22 23:59:26 brad Exp $ */ /* * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu @@ -203,10 +203,13 @@ enum pthread_mutextype { */ __BEGIN_DECLS int pthread_attr_destroy(pthread_attr_t *); +int pthread_attr_getstack(const pthread_attr_t *, + void **, size_t *); int pthread_attr_getstacksize(const pthread_attr_t *, size_t *); int pthread_attr_getstackaddr(const pthread_attr_t *, void **); int pthread_attr_getdetachstate(const pthread_attr_t *, int *); int pthread_attr_init(pthread_attr_t *); +int pthread_attr_setstack(pthread_attr_t *, void *, size_t); int pthread_attr_setstacksize(pthread_attr_t *, size_t); int pthread_attr_setstackaddr(pthread_attr_t *, void *); int pthread_attr_setdetachstate(pthread_attr_t *, int); @@ -299,7 +302,6 @@ int pthread_attr_setschedparam(pthread_attr_t *, const struct sched_param *); int pthread_attr_setschedpolicy(pthread_attr_t *, int); int pthread_attr_setscope(pthread_attr_t *, int); - __END_DECLS #endif /* _PTHREAD_H_ */ |