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/src/semtrywait.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 cpukit/posix/src/semtrywait.c (limited to 'cpukit/posix/src/semtrywait.c') diff --git a/cpukit/posix/src/semtrywait.c b/cpukit/posix/src/semtrywait.c new file mode 100644 index 0000000000..c29a2f3dde --- /dev/null +++ b/cpukit/posix/src/semtrywait.c @@ -0,0 +1,31 @@ +/* + * $Id$ + */ + +#include + +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include + +/*PAGE + * + * 11.2.6 Lock a Semaphore, P1003.1b-1993, p.226 + * + * NOTE: P1003.4b/D8 adds sem_timedwait(), p. 27 + */ + +int sem_trywait( + sem_t *sem +) +{ + return _POSIX_Semaphore_Wait_support( sem, FALSE, THREAD_QUEUE_WAIT_FOREVER ); +} -- cgit v1.2.3