summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/include
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2004-02-22 23:59:26 +0000
committerbrad <brad@openbsd.org>2004-02-22 23:59:26 +0000
commit8e6d5e96d092fc3cb25e0ab3423cd24839be74c7 (patch)
tree334fff1f9d8d811b34fe63d577e251b103390a02 /lib/libpthread/include
parentDefine OSYSCALL* macros, as their SYSCALL* counterparts, but using the (diff)
downloadwireguard-openbsd-8e6d5e96d092fc3cb25e0ab3423cd24839be74c7.tar.xz
wireguard-openbsd-8e6d5e96d092fc3cb25e0ab3423cd24839be74c7.zip
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.h6
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_ */