00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file os_shm.h 00006 * 00007 * XSI shared memory facility 00008 * 00009 * $Id: os_shm.h 59806 2004-08-25 16:05:42Z shuston $ 00010 * 00011 * @author Don Hinton <dhinton@dresystems.com> 00012 * @author This code was originally in various places including ace/OS.h. 00013 */ 00014 //============================================================================= 00015 00016 #ifndef ACE_OS_INCLUDE_SYS_OS_SHM_H 00017 #define ACE_OS_INCLUDE_SYS_OS_SHM_H 00018 00019 #include /**/ "ace/pre.h" 00020 00021 #include "ace/config-lite.h" 00022 00023 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00024 # pragma once 00025 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00026 00027 #include "ace/os_include/sys/os_ipc.h" 00028 00029 #if !defined (ACE_LACKS_SYS_SHM_H) 00030 # include /**/ <sys/shm.h> 00031 #endif /* !ACE_LACKS_SYS_SHM_H */ 00032 00033 // Place all additions (especially function declarations) within extern "C" {} 00034 #ifdef __cplusplus 00035 extern "C" 00036 { 00037 #endif /* __cplusplus */ 00038 00039 // Declare opaque type. Needed for ACE_OS wrappers on systems 00040 // without SysV IPC. 00041 struct shmid_ds; 00042 00043 #ifdef __cplusplus 00044 } 00045 #endif /* __cplusplus */ 00046 00047 #include /**/ "ace/post.h" 00048 #endif /* ACE_OS_INCLUDE_SYS_OS_SHM_H */