summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/include/pthread.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-22 22:31:51 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-22 22:31:51 +0000
commit05195890d71bfab2b1b63592fc1ca7bf53f3da59 (patch)
tree963e18a5c2ab7afdbbeb6c06b5078969ded24850 /c/src/exec/posix/include/pthread.h
parentThis commit was generated by cvs2svn to compensate for changes in r257, (diff)
downloadrtems-05195890d71bfab2b1b63592fc1ca7bf53f3da59.tar.bz2
These files have been modified in the initial pass at getting the portion
of the POSIX API necessary to support the GNAT runtime to initially compile. We now have verified that the specifications for the necessary routines are correct per the POSIX standards we have. The removed files were moved to newlib as they were duplicates of files already included there.
Diffstat (limited to 'c/src/exec/posix/include/pthread.h')
-rw-r--r--c/src/exec/posix/include/pthread.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/c/src/exec/posix/include/pthread.h b/c/src/exec/posix/include/pthread.h
index ea9680f3c4..3bc1c6dc07 100644
--- a/c/src/exec/posix/include/pthread.h
+++ b/c/src/exec/posix/include/pthread.h
@@ -6,7 +6,7 @@
#ifndef __PTHREAD_h
#define __PTHREAD_h
-#include <rtems/posix/features.h>
+#include <sys/features.h>
#if defined(_POSIX_THREADS)
@@ -211,7 +211,7 @@ int pthread_attr_getschedpolicy(
int pthread_attr_setschedparam(
pthread_attr_t *attr,
- const struct sched_param param
+ const struct sched_param *param
);
int pthread_attr_getschedparam(
@@ -342,10 +342,10 @@ int pthread_attr_setdetachstate(
*/
int pthread_create(
- pthread_t *thread,
- const pthread_attr_t *attr,
- void (*start_routine)( void * ),
- void *arg
+ pthread_t *thread,
+ const pthread_attr_t *attr,
+ void *(*start_routine)( void * ),
+ void *arg
);
/*
@@ -366,6 +366,14 @@ int pthread_detach(
);
/*
+ * 16.1.5.1 Thread Termination, p1003.1c/Draft 10, p. 150
+ */
+
+void pthread_exit(
+ void *value_ptr
+);
+
+/*
* 16.1.6 Get Calling Thread's ID, p1003.1c/Draft 10, p. XXX
*/