summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
-rw-r--r--winsup/cygwin/include/semaphore.h17
2 files changed, 11 insertions, 9 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index fd9cf5aa3..33e5ac972 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -305,12 +305,13 @@ details. */
164: Export shm_open, shm_unlink.
165: Export mq_close, mq_getattr, mq_notify, mq_open, mq_receive,
mq_send, mq_setattr, mq_timedreceive, mq_timedsend, mq_unlink.
+ 166: Export sem_unlink.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 165
+#define CYGWIN_VERSION_API_MINOR 166
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible
diff --git a/winsup/cygwin/include/semaphore.h b/winsup/cygwin/include/semaphore.h
index 0f13c85e8..b16d13751 100644
--- a/winsup/cygwin/include/semaphore.h
+++ b/winsup/cygwin/include/semaphore.h
@@ -24,18 +24,19 @@ extern "C"
typedef struct __sem_t {char __dummy;} *sem_t;
#endif
-#define SEM_FAILED 0
+#define SEM_FAILED ((sem_t *) 0)
/* Semaphores */
- int sem_init (sem_t * sem, int pshared, unsigned int value);
- int sem_destroy (sem_t * sem);
+ int sem_init (sem_t *sem, int pshared, unsigned int value);
+ int sem_destroy (sem_t *sem);
sem_t *sem_open (const char *name, int oflag, ...);
int sem_close (sem_t *sem);
- int sem_wait (sem_t * sem);
- int sem_trywait (sem_t * sem);
- int sem_timedwait (sem_t * sem, const struct timespec *abstime);
- int sem_post (sem_t * sem);
- int sem_getvalue (sem_t * sem, int *sval);
+ int sem_unlink (const char *name);
+ int sem_wait (sem_t *sem);
+ int sem_trywait (sem_t *sem);
+ int sem_timedwait (sem_t *sem, const struct timespec *abstime);
+ int sem_post (sem_t *sem);
+ int sem_getvalue (sem_t *sem, int *sval);
#ifdef __cplusplus
}