3 //=============================================================================
7 * XSI semaphore facility
9 * $Id: os_sem.h 80826 2008-03-04 14:51:23Z wotte $
11 * @author Don Hinton <dhinton@dresystems.com>
12 * @author This code was originally in various places including ace/OS.h.
14 //=============================================================================
16 #ifndef ACE_OS_INCLUDE_SYS_OS_SEM_H
17 #define ACE_OS_INCLUDE_SYS_OS_SEM_H
19 #include /**/ "ace/pre.h"
21 #include "ace/config-lite.h"
23 #if !defined (ACE_LACKS_PRAGMA_ONCE)
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 #include "ace/os_include/sys/os_ipc.h"
29 #if !defined (ACE_LACKS_SYS_SEM_H)
30 # include /**/ <sys/sem.h>
31 #endif /* !ACE_LACKS_SYS_SEM_H */
33 // Place all additions (especially function declarations) within extern "C" {}
37 #endif /* __cplusplus */
39 # if !defined (GETVAL)
43 # if !defined (SETVAL)
47 # if !defined (GETALL)
51 # if !defined (SETALL)
55 # if !defined (SEM_UNDO)
57 # endif /* SEM_UNDO */
59 #if defined (ACE_LACKS_SEMBUF_T)
63 unsigned short sem_num
;
65 /// semaphore operation
71 #endif /* ACE_LACKS_SEMBUF_T */
73 #if !defined (ACE_HAS_SEMUN) || (defined (__GLIBC__) && defined (_SEM_SEMUN_UNDEFINED))
78 /// buffer for IPC_STAT & IPC_SET
80 /// array for GETALL & SETALL
83 #endif /* !ACE_HAS_SEMUN || (defined (__GLIBC__) && defined (_SEM_SEMUN_UNDEFINED)) */
87 #endif /* __cplusplus */
89 #include /**/ "ace/post.h"
90 #endif /* ACE_OS_INCLUDE_SYS_OS_SEM_H */