1 /* semaphore.h: POSIX semaphore interface
3 Copyright 2001 Red Hat, Inc.
5 Written by Robert Collins <rbtcollins@hotmail.com>
7 This file is part of Cygwin.
9 This software is a copyrighted work licensed under the terms of the
10 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
13 #include <sys/types.h>
23 #if !(defined (__INSIDE_CYGWIN__) || defined (__INSIDE_MSYS__))
28 #define SEM_VALUE_MAX 1147483648
31 int sem_init (sem_t
* sem
, int pshared
, unsigned int value
);
32 int sem_destroy (sem_t
* sem
);
33 int sem_wait (sem_t
* sem
);
34 int sem_trywait (sem_t
* sem
);
35 int sem_post (sem_t
* sem
);
41 #endif /* _SEMAPHORE_H */