summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 18:00:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 18:00:15 +0000
commit799c767d319d65c94b3770e82490c8dd4dc80378 (patch)
treebf9909c7f3ae617a34e401a0f88dc314f982f772 /cpukit/posix/include
parentee979cdd95acb1a2bfa8b02f67d5386d3c8af5e3 (diff)
downloadrtems-799c767d319d65c94b3770e82490c8dd4dc80378.tar.bz2
Split the POSIX semaphore manager into multiple files.
Diffstat (limited to 'cpukit/posix/include')
-rw-r--r--cpukit/posix/include/rtems/posix/psignal.h6
-rw-r--r--cpukit/posix/include/rtems/posix/semaphore.h33
2 files changed, 38 insertions, 1 deletions
diff --git a/cpukit/posix/include/rtems/posix/psignal.h b/cpukit/posix/include/rtems/posix/psignal.h
index 1471a282bc..c15ca78d34 100644
--- a/cpukit/posix/include/rtems/posix/psignal.h
+++ b/cpukit/posix/include/rtems/posix/psignal.h
@@ -80,6 +80,12 @@ boolean _POSIX_signals_Unblock_thread(
siginfo_t *info
);
+boolean _POSIX_signals_Check_signal(
+ POSIX_API_Control *api,
+ int signo,
+ boolean is_global
+);
+
boolean _POSIX_signals_Clear_signals(
POSIX_API_Control *api,
int signo,
diff --git a/cpukit/posix/include/rtems/posix/semaphore.h b/cpukit/posix/include/rtems/posix/semaphore.h
index da6b65c642..af80893db4 100644
--- a/cpukit/posix/include/rtems/posix/semaphore.h
+++ b/cpukit/posix/include/rtems/posix/semaphore.h
@@ -21,6 +21,7 @@
extern "C" {
#endif
+#include <semaphore.h>
#include <rtems/score/coresem.h>
#define SEM_FAILED (sem_t *) -1
@@ -113,11 +114,41 @@ RTEMS_INLINE_ROUTINE boolean _POSIX_Semaphore_Is_null (
);
/*
+ * _POSIX_Semaphore_Create_support
+ *
+ * DESCRIPTION:
+ *
+ * This routine supports the sem_init and sem_open routines.
+ */
+
+int _POSIX_Semaphore_Create_support(
+ const char *name,
+ int pshared,
+ unsigned int value,
+ POSIX_Semaphore_Control **the_sem
+);
+
+/*
+ * _POSIX_Semaphore_Wait_support
+ *
+ * DESCRIPTION:
+ *
+ * This routine supports the sem_wait, sem_trywait, and sem_timedwait
+ * services.
+ */
+
+int _POSIX_Semaphore_Wait_support(
+ sem_t *sem,
+ boolean blocking,
+ Watchdog_Interval timeout
+);
+
+/*
* _POSIX_Semaphore_Name_to_id
*
* DESCRIPTION:
*
- * XXX
+ * This routine performs name to id translation.
*/
int _POSIX_Semaphore_Name_to_id(