From 799c767d319d65c94b3770e82490c8dd4dc80378 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 18:00:15 +0000 Subject: Split the POSIX semaphore manager into multiple files. --- cpukit/posix/include/rtems/posix/semaphore.h | 33 +++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'cpukit/posix/include/rtems/posix/semaphore.h') 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 #include #define SEM_FAILED (sem_t *) -1 @@ -112,12 +113,42 @@ RTEMS_INLINE_ROUTINE boolean _POSIX_Semaphore_Is_null ( POSIX_Semaphore_Control *the_semaphore ); +/* + * _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( -- cgit v1.2.3