diff options
-rw-r--r-- | include/pthread.h | 10 | ||||
-rw-r--r-- | lib/libc_r/uthread/uthread_attr_getdetachstate.c | 3 | ||||
-rw-r--r-- | lib/libc_r/uthread/uthread_attr_getstackaddr.c | 3 | ||||
-rw-r--r-- | lib/libc_r/uthread/uthread_attr_getstacksize.c | 3 | ||||
-rw-r--r-- | lib/libkse/thread/thr_attr_getdetachstate.c | 3 | ||||
-rw-r--r-- | lib/libkse/thread/thr_attr_getstackaddr.c | 3 | ||||
-rw-r--r-- | lib/libkse/thread/thr_attr_getstacksize.c | 3 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_attr_getdetachstate.c | 3 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_attr_getstackaddr.c | 3 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_attr_getstacksize.c | 3 |
10 files changed, 25 insertions, 12 deletions
diff --git a/include/pthread.h b/include/pthread.h index 2c675bd..01b104b 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 *, diff --git a/lib/libc_r/uthread/uthread_attr_getdetachstate.c b/lib/libc_r/uthread/uthread_attr_getdetachstate.c index fee1e8b..d120553 100644 --- a/lib/libc_r/uthread/uthread_attr_getdetachstate.c +++ b/lib/libc_r/uthread/uthread_attr_getdetachstate.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate) +int +pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) { int ret; diff --git a/lib/libc_r/uthread/uthread_attr_getstackaddr.c b/lib/libc_r/uthread/uthread_attr_getstackaddr.c index 1fee4a5..442dcc2 100644 --- a/lib/libc_r/uthread/uthread_attr_getstackaddr.c +++ b/lib/libc_r/uthread/uthread_attr_getstackaddr.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr) +int +pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr) { int ret; diff --git a/lib/libc_r/uthread/uthread_attr_getstacksize.c b/lib/libc_r/uthread/uthread_attr_getstacksize.c index 5c7a9e0..d9aaca4 100644 --- a/lib/libc_r/uthread/uthread_attr_getstacksize.c +++ b/lib/libc_r/uthread/uthread_attr_getstacksize.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize) +int +pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize) { int ret; diff --git a/lib/libkse/thread/thr_attr_getdetachstate.c b/lib/libkse/thread/thr_attr_getdetachstate.c index fee1e8b..d120553 100644 --- a/lib/libkse/thread/thr_attr_getdetachstate.c +++ b/lib/libkse/thread/thr_attr_getdetachstate.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate) +int +pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) { int ret; diff --git a/lib/libkse/thread/thr_attr_getstackaddr.c b/lib/libkse/thread/thr_attr_getstackaddr.c index 1fee4a5..442dcc2 100644 --- a/lib/libkse/thread/thr_attr_getstackaddr.c +++ b/lib/libkse/thread/thr_attr_getstackaddr.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr) +int +pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr) { int ret; diff --git a/lib/libkse/thread/thr_attr_getstacksize.c b/lib/libkse/thread/thr_attr_getstacksize.c index 5c7a9e0..d9aaca4 100644 --- a/lib/libkse/thread/thr_attr_getstacksize.c +++ b/lib/libkse/thread/thr_attr_getstacksize.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize) +int +pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize) { int ret; diff --git a/lib/libpthread/thread/thr_attr_getdetachstate.c b/lib/libpthread/thread/thr_attr_getdetachstate.c index fee1e8b..d120553 100644 --- a/lib/libpthread/thread/thr_attr_getdetachstate.c +++ b/lib/libpthread/thread/thr_attr_getdetachstate.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate) +int +pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate) { int ret; diff --git a/lib/libpthread/thread/thr_attr_getstackaddr.c b/lib/libpthread/thread/thr_attr_getstackaddr.c index 1fee4a5..442dcc2 100644 --- a/lib/libpthread/thread/thr_attr_getstackaddr.c +++ b/lib/libpthread/thread/thr_attr_getstackaddr.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getstackaddr(pthread_attr_t *attr, void **stackaddr) +int +pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr) { int ret; diff --git a/lib/libpthread/thread/thr_attr_getstacksize.c b/lib/libpthread/thread/thr_attr_getstacksize.c index 5c7a9e0..d9aaca4 100644 --- a/lib/libpthread/thread/thr_attr_getstacksize.c +++ b/lib/libpthread/thread/thr_attr_getstacksize.c @@ -36,7 +36,8 @@ #include <pthread.h> #include "pthread_private.h" -int pthread_attr_getstacksize(pthread_attr_t *attr, size_t *stacksize) +int +pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize) { int ret; |