diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/include/rtems/posix/psignal.h | 6 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/semaphore.h | 33 |
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( |