diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-12-15 00:24:30 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-12-15 00:24:30 +0000 |
commit | 063a19a2909c7a3d31c2af410d01e3fd6f0100c6 (patch) | |
tree | 37dd18b56a9352d8b228dae38b5847c13d88a2b0 /c/src/exec/posix/base/semaphore.h | |
parent | Switch from .s to .S on include (diff) | |
download | rtems-063a19a2909c7a3d31c2af410d01e3fd6f0100c6.tar.bz2 |
Moved around per Ralf Corsepius as preparation for automake
Diffstat (limited to 'c/src/exec/posix/base/semaphore.h')
-rw-r--r-- | c/src/exec/posix/base/semaphore.h | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/c/src/exec/posix/base/semaphore.h b/c/src/exec/posix/base/semaphore.h deleted file mode 100644 index 0388f91ad9..0000000000 --- a/c/src/exec/posix/base/semaphore.h +++ /dev/null @@ -1,108 +0,0 @@ -/* semaphore.h - * - * $Id$ - */ - -#ifndef __POSIX_SEMAPHORE_h -#define __POSIX_SEMAPHORE_h - -#include <rtems/posix/features.h> - -#if defined(_POSIX_SEMAPHORES) - -#include <sys/time.h> - -/* - * 11.1 Semaphore Characteristics, P1003.1b-1993, p.219 - */ - -typedef int sem_t; - -/* - * 11.2.1 Initialize an Unnamed Semaphore, P1003.1b-1993, p.219 - */ - -int sem_init( - sem_t *sem, - int pshared, - unsigned int value -); - -/* - * 11.2.2 Destroy an Unnamed Semaphore, P1003.1b-1993, p.220 - */ - -int sem_destroy( - sem_t *sem -); - -/* - * 11.2.3 Initialize/Open a Named Semaphore, P1003.1b-1993, p.221 - * - * NOTE: Follows open() calling conventions. - */ - -sem_t *sem_open( - const char *name, - int oflag, - ... -); - -/* - * 11.2.4 Close a Named Semaphore, P1003.1b-1993, p.224 - */ - -int sem_close( - sem_t *sem -); - -/* - * 11.2.5 Remove a Named Semaphore, P1003.1b-1993, p.225 - */ - -int sem_unlink( - const char *name -); - -/* - * 11.2.6 Lock a Semaphore, P1003.1b-1993, p.226 - * - * NOTE: P1003.4b/D8 adds sem_timedwait(), p. 27 - */ - -int sem_wait( - sem_t *sem -); - -int sem_trywait( - sem_t *sem -); - -#if defined(_POSIX_TIMEOUTS) -int sem_timedwait( - sem_t *sem, - const struct timespec *timeout -); -#endif - -/* - * 11.2.7 Unlock a Semaphore, P1003.1b-1993, p.227 - */ - -int sem_post( - sem_t *sem -); - -/* - * 11.2.8 Get the Value of a Semaphore, P1003.1b-1993, p.229 - */ - -int sem_getvalue( - sem_t *sem, - int *sval -); - -#endif /* _POSIX_SEMAPHORES */ - -#endif -/* end of include file */ |