aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-12-08 14:44:06 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-12-08 14:44:06 +0000
commitf8afe40f49bd9189c70188f222962c8c83187664 (patch)
tree63742434ba6cfaf60e4416443c032bfb29e6f818
parent51ecb7d9af3587709e7b21427a64a437ad7cb82d (diff)
downloadnewlib-f8afe40f49bd9189c70188f222962c8c83187664.zip
newlib-f8afe40f49bd9189c70188f222962c8c83187664.tar.gz
newlib-f8afe40f49bd9189c70188f222962c8c83187664.tar.bz2
* include/sys/types.h: Add #if defined(__rtems__) around
pthread_attr_t.guardsize. * include/pthread.h: Add pthread_attr_setstack, pthread_attr_getstack, pthread_attr_getguardsize, pthread_attr_setguardsize. * include/sys/types.h (pthread_attr_t): Add guardsize.
-rw-r--r--newlib/ChangeLog11
-rw-r--r--newlib/libc/include/pthread.h12
-rw-r--r--newlib/libc/include/sys/types.h3
3 files changed, 24 insertions, 2 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 7d24380..1966473 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,14 @@
+2010-12-08 Ralf Corsepius <ralf.corsepius@rtems.org>
+
+ * include/sys/types.h: Add #if defined(__rtems__) around
+ pthread_attr_t.guardsize.
+
+2010-12-08 Joel Sherrill <joel@OARcorp.com>
+
+ * include/pthread.h: Add pthread_attr_setstack, pthread_attr_getstack,
+ pthread_attr_getguardsize, pthread_attr_setguardsize.
+ * include/sys/types.h (pthread_attr_t): Add guardsize.
+
2010-12-08 Corinna Vinschen <corinna@vinschen.de>
* libc/include/strings.h: Don't include locale.h.
diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index f5af164..09d4def 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -2,7 +2,7 @@
*
* Written by Joel Sherrill <joel@OARcorp.com>.
*
- * COPYRIGHT (c) 1989-2000.
+ * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* Permission to use, copy, modify, and distribute this software for any
@@ -185,10 +185,14 @@ int _EXFUN(pthread_mutex_getprioceiling,
int _EXFUN(pthread_attr_init, (pthread_attr_t *__attr));
int _EXFUN(pthread_attr_destroy, (pthread_attr_t *__attr));
+int _EXFUN(pthread_attr_setstack, (pthread_attr_t *attr,
+ void *__stackaddr, size_t __stacksize));
+int _EXFUN(pthread_attr_getstack, (_CONST pthread_attr_t *attr,
+ void **__stackaddr, size_t *__stacksize));
int _EXFUN(pthread_attr_getstacksize,
(_CONST pthread_attr_t *__attr, size_t *__stacksize));
int _EXFUN(pthread_attr_setstacksize,
- (pthread_attr_t *__attr, size_t stacksize));
+ (pthread_attr_t *__attr, size_t __stacksize));
int _EXFUN(pthread_attr_getstackaddr,
(_CONST pthread_attr_t *__attr, void **__stackaddr));
int _EXFUN(pthread_attr_setstackaddr,
@@ -197,6 +201,10 @@ int _EXFUN(pthread_attr_getdetachstate,
(_CONST pthread_attr_t *__attr, int *__detachstate));
int _EXFUN(pthread_attr_setdetachstate,
(pthread_attr_t *__attr, int __detachstate));
+int _EXFUN(pthread_attr_getguardsize,
+ (_CONST pthread_attr_t *__attr, size_t *__guardsize));
+int _EXFUN(pthread_attr_setguardsize,
+ (pthread_attr_t *__attr, size_t __guardsize));
/* Thread Creation, P1003.1c/Draft 10, p. 144 */
diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
index 17f9306..7083573 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
@@ -353,6 +353,9 @@ typedef struct {
int inheritsched;
int schedpolicy;
struct sched_param schedparam;
+#if defined(__rtems__)
+ size_t guardsize;
+#endif
/* P1003.4b/D8, p. 54 adds cputime_clock_allowed attribute. */
#if defined(_POSIX_THREAD_CPUTIME)