summaryrefslogtreecommitdiff
path: root/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'semaphore.h')
-rw-r--r--semaphore.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/semaphore.h b/semaphore.h
index f5d9c83..e05cc4a 100644
--- a/semaphore.h
+++ b/semaphore.h
@@ -31,11 +31,15 @@
#include <process.h>
#include <errno.h>
+#define _POSIX_SEMAPHORES
+
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
+typedef unsigned int mode_t;
+
typedef HANDLE sem_t;
int sem_init (sem_t * sem,
@@ -55,6 +59,21 @@ int sem_wait (sem_t * sem
int sem_post (sem_t * sem
);
+int sem_open (const char * name,
+ int oflag,
+ ...
+ );
+
+int sem_close (sem_t * sem
+ );
+
+int sem_unlink (const char * name
+ );
+
+int sem_getvalue (sem_t * sem,
+ int * sval
+ );
+
#ifdef __cplusplus
} /* End of extern "C" */
#endif /* __cplusplus */