aboutsummaryrefslogtreecommitdiffstats
path: root/include/pthread.h
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2000-05-11 15:57:17 +0000
committerBruce Evans <bde@FreeBSD.org>2000-05-11 15:57:17 +0000
commit80a07932e7c55f54368d8c6f3d48fc996410e731 (patch)
treefa2806a0ba06719e45c4b69d25abc3cf815bfd00 /include/pthread.h
parent96d7319afb05a9fbc559d20ed91e2c8144602cf1 (diff)
downloadsrc-80a07932e7c55f54368d8c6f3d48fc996410e731.tar.gz
src-80a07932e7c55f54368d8c6f3d48fc996410e731.zip
Fixed missing consts for function parameters, so that the code matches
the man page and POSIX.1. Fixed nearby misformatting. Fixed a missing prototype.
Notes
Notes: svn path=/head/; revision=60382
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 2c675bd8e402..01b104bf9f42 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -190,9 +190,12 @@ enum pthread_mutextype {
*/
__BEGIN_DECLS
int pthread_attr_destroy __P((pthread_attr_t *));
-int pthread_attr_getstacksize __P((pthread_attr_t *, size_t *));
-int pthread_attr_getstackaddr __P((pthread_attr_t *, void **));
-int pthread_attr_getdetachstate __P((pthread_attr_t *, int *));
+int pthread_attr_getstacksize __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_setstackaddr __P((pthread_attr_t *, void *));
@@ -231,6 +234,7 @@ int pthread_key_delete __P((pthread_key_t));
int pthread_kill __P((pthread_t, int));
int pthread_mutexattr_init __P((pthread_mutexattr_t *));
int pthread_mutexattr_destroy __P((pthread_mutexattr_t *));
+int pthread_mutexattr_gettype __P((pthread_mutexattr_t *, int *));
int pthread_mutexattr_settype __P((pthread_mutexattr_t *, int));
int pthread_mutex_destroy __P((pthread_mutex_t *));
int pthread_mutex_init __P((pthread_mutex_t *,