summaryrefslogtreecommitdiffstats
path: root/c/src/exec
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec')
-rw-r--r--c/src/exec/libcsupport/src/utsname.c1
-rw-r--r--c/src/exec/posix/src/aio.c2
-rw-r--r--c/src/exec/posix/src/cancel.c2
-rw-r--r--c/src/exec/posix/src/cond.c1
-rw-r--r--c/src/exec/posix/src/devctl.c2
-rw-r--r--c/src/exec/posix/src/intr.c3
-rw-r--r--c/src/exec/posix/src/key.c1
-rw-r--r--c/src/exec/posix/src/mqueue.c2
-rw-r--r--c/src/exec/posix/src/mutex.c3
-rw-r--r--c/src/exec/posix/src/psignal.c3
-rw-r--r--c/src/exec/posix/src/pthread.c5
-rw-r--r--c/src/exec/posix/src/sched.c2
-rw-r--r--c/src/exec/posix/src/time.c2
-rw-r--r--c/src/exec/posix/src/types.c2
-rw-r--r--c/src/exec/posix/src/unistd.c2
-rw-r--r--c/src/exec/posix/src/utsname.c1
16 files changed, 27 insertions, 7 deletions
diff --git a/c/src/exec/libcsupport/src/utsname.c b/c/src/exec/libcsupport/src/utsname.c
index 98b105023e..dba0fefefb 100644
--- a/c/src/exec/libcsupport/src/utsname.c
+++ b/c/src/exec/libcsupport/src/utsname.c
@@ -8,6 +8,7 @@
#include <sys/utsname.h>
+#include <rtems/system.h>
#include <rtems/score/system.h>
#include <rtems/score/object.h>
diff --git a/c/src/exec/posix/src/aio.c b/c/src/exec/posix/src/aio.c
index 491c2772cf..d740be0c02 100644
--- a/c/src/exec/posix/src/aio.c
+++ b/c/src/exec/posix/src/aio.c
@@ -5,6 +5,8 @@
#include <aio.h>
+#include <rtems/system.h>
+
#ifdef NOT_IMPLEMENTED_YET
/*PAGE
diff --git a/c/src/exec/posix/src/cancel.c b/c/src/exec/posix/src/cancel.c
index 2ad972c626..54cba95035 100644
--- a/c/src/exec/posix/src/cancel.c
+++ b/c/src/exec/posix/src/cancel.c
@@ -5,6 +5,8 @@
#include <pthread.h>
#include <errno.h>
+
+#include <rtems/system.h>
#include <rtems/score/chain.h>
#include <rtems/score/isr.h>
#include <rtems/score/thread.h>
diff --git a/c/src/exec/posix/src/cond.c b/c/src/exec/posix/src/cond.c
index e20cfe5359..ce02fd7596 100644
--- a/c/src/exec/posix/src/cond.c
+++ b/c/src/exec/posix/src/cond.c
@@ -6,6 +6,7 @@
#include <pthread.h>
#include <errno.h>
+#include <rtems/system.h>
#include <rtems/score/object.h>
#include <rtems/score/states.h>
#include <rtems/score/watchdog.h>
diff --git a/c/src/exec/posix/src/devctl.c b/c/src/exec/posix/src/devctl.c
index 6581e0296c..7caf475784 100644
--- a/c/src/exec/posix/src/devctl.c
+++ b/c/src/exec/posix/src/devctl.c
@@ -5,6 +5,8 @@
#include <devctl.h>
+#include <rtems/system.h>
+
#ifdef NOT_IMPLEMENTED_YET
/*PAGE
diff --git a/c/src/exec/posix/src/intr.c b/c/src/exec/posix/src/intr.c
index 11fbe6969a..7f9c62964d 100644
--- a/c/src/exec/posix/src/intr.c
+++ b/c/src/exec/posix/src/intr.c
@@ -9,8 +9,9 @@
#include <errno.h>
#include <intr.h>
-
#include <pthread.h>
+
+#include <rtems/system.h>
#include <rtems/score/isr.h>
#include <rtems/score/coresem.h>
#include <rtems/score/thread.h>
diff --git a/c/src/exec/posix/src/key.c b/c/src/exec/posix/src/key.c
index 3bcc1b5170..fcfbd1715d 100644
--- a/c/src/exec/posix/src/key.c
+++ b/c/src/exec/posix/src/key.c
@@ -8,6 +8,7 @@
#include <pthread.h>
#include <string.h>
+#include <rtems/system.h>
#include <rtems/score/thread.h>
#include <rtems/score/wkspace.h>
#include <rtems/posix/key.h>
diff --git a/c/src/exec/posix/src/mqueue.c b/c/src/exec/posix/src/mqueue.c
index e175300355..cde97bea2d 100644
--- a/c/src/exec/posix/src/mqueue.c
+++ b/c/src/exec/posix/src/mqueue.c
@@ -21,8 +21,8 @@
#include <limits.h>
#include <errno.h>
#include <fcntl.h>
-
#include <mqueue.h>
+
#include <rtems/system.h>
#include <rtems/score/watchdog.h>
#include <rtems/posix/mqueue.h>
diff --git a/c/src/exec/posix/src/mutex.c b/c/src/exec/posix/src/mutex.c
index 9ff4acff99..1cb3f480c8 100644
--- a/c/src/exec/posix/src/mutex.c
+++ b/c/src/exec/posix/src/mutex.c
@@ -6,11 +6,10 @@
#include <errno.h>
#include <pthread.h>
-#include <rtems/score/system.h>
+#include <rtems/system.h>
#include <rtems/score/coremutex.h>
#include <rtems/score/watchdog.h>
#include <rtems/score/mpci.h>
-
#include <rtems/posix/mutex.h>
#include <rtems/posix/priority.h>
#include <rtems/posix/time.h>
diff --git a/c/src/exec/posix/src/psignal.c b/c/src/exec/posix/src/psignal.c
index 9ad7406e21..b8bd3d56ea 100644
--- a/c/src/exec/posix/src/psignal.c
+++ b/c/src/exec/posix/src/psignal.c
@@ -5,6 +5,7 @@
#include <signal.h>
+#include <rtems/system.h>
#include <rtems/score/thread.h>
#ifdef NOT_IMPLEMENTED_YET
@@ -16,7 +17,7 @@
*/
int kill(
- int pid_t,
+ pid_t pid,
int sig
)
{
diff --git a/c/src/exec/posix/src/pthread.c b/c/src/exec/posix/src/pthread.c
index 7247586685..79ea3271d2 100644
--- a/c/src/exec/posix/src/pthread.c
+++ b/c/src/exec/posix/src/pthread.c
@@ -7,6 +7,7 @@
#include <pthread.h>
#include <limits.h>
+#include <rtems/system.h>
#include <rtems/score/stack.h>
#include <rtems/score/thread.h>
#include <rtems/posix/pthread.h>
@@ -188,13 +189,13 @@ int pthread_attr_getschedpolicy(
int pthread_attr_setschedparam(
pthread_attr_t *attr,
- const struct sched_param param
+ const struct sched_param *param
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
- attr->schedparam = param;
+ attr->schedparam = *param;
return 0;
}
diff --git a/c/src/exec/posix/src/sched.c b/c/src/exec/posix/src/sched.c
index b131b52397..4cea4f5a3d 100644
--- a/c/src/exec/posix/src/sched.c
+++ b/c/src/exec/posix/src/sched.c
@@ -4,6 +4,8 @@
*/
#include <sched.h>
+
+#include <rtems/system.h>
#include <rtems/score/tod.h>
#include <rtems/score/thread.h>
#include <rtems/posix/priority.h>
diff --git a/c/src/exec/posix/src/time.c b/c/src/exec/posix/src/time.c
index cfe980793a..6c2faf65dc 100644
--- a/c/src/exec/posix/src/time.c
+++ b/c/src/exec/posix/src/time.c
@@ -4,6 +4,8 @@
*/
#include <time.h>
+
+#include <rtems/system.h>
#include <rtems/score/tod.h>
/*
diff --git a/c/src/exec/posix/src/types.c b/c/src/exec/posix/src/types.c
index e6e743ade5..a3ba918a18 100644
--- a/c/src/exec/posix/src/types.c
+++ b/c/src/exec/posix/src/types.c
@@ -5,6 +5,8 @@
#include <sys/types.h>
+#include <rtems/system.h>
+
#ifdef NOT_IMPLEMENTED_YET
/*PAGE
diff --git a/c/src/exec/posix/src/unistd.c b/c/src/exec/posix/src/unistd.c
index 909d89f923..f70d065ce3 100644
--- a/c/src/exec/posix/src/unistd.c
+++ b/c/src/exec/posix/src/unistd.c
@@ -5,6 +5,8 @@
#include <unistd.h>
+#include <rtems/system.h>
+
#ifdef NOT_IMPLEMENTED_YET
/*
diff --git a/c/src/exec/posix/src/utsname.c b/c/src/exec/posix/src/utsname.c
index 98b105023e..dba0fefefb 100644
--- a/c/src/exec/posix/src/utsname.c
+++ b/c/src/exec/posix/src/utsname.c
@@ -8,6 +8,7 @@
#include <sys/utsname.h>
+#include <rtems/system.h>
#include <rtems/score/system.h>
#include <rtems/score/object.h>