diff options
Diffstat (limited to 'ace/os_include/sys/ipc.h')
-rw-r--r-- | ace/os_include/sys/ipc.h | 43 |
1 files changed, 37 insertions, 6 deletions
diff --git a/ace/os_include/sys/ipc.h b/ace/os_include/sys/ipc.h index 626a4c2996d..92ace0594fd 100644 --- a/ace/os_include/sys/ipc.h +++ b/ace/os_include/sys/ipc.h @@ -2,19 +2,19 @@ //============================================================================= /** - * @file ipc.h + * @file os_ipc.h * * XSI interprocess communication access structure * * $Id$ * - * @author Don Hinton <dhinton@ieee.org> + * @author Don Hinton <dhinton@dresystems.com> * @author This code was originally in various places including ace/OS.h. */ //============================================================================= -#ifndef ACE_OS_INCLUDE_SYS_IPC_H -#define ACE_OS_INCLUDE_SYS_IPC_H +#ifndef ACE_OS_INCLUDE_SYS_OS_IPC_H +#define ACE_OS_INCLUDE_SYS_OS_IPC_H #include "ace/pre.h" @@ -27,8 +27,39 @@ #include "ace/os_include/sys/types.h" #if !defined (ACE_LACKS_SYS_IPC_H) -# include /**/ <sys/ipc.h> +# include /**/ <sys/ipc.h> #endif /* !ACE_LACKS_SYS_IPC_H */ +#if defined (ACE_WIN32) && !defined (ACE_PSOS) +# define ACE_INVALID_SEM_KEY 0 +#else /* !ACE_WIN32 */ +# define ACE_INVALID_SEM_KEY -1 +#endif /* ACE_WIN32 && !ACE_PSOS */ + +#if !defined (IPC_PRIVATE) +# define IPC_PRIVATE ACE_INVALID_SEM_KEY +#endif /* IPC_PRIVATE */ + +#if !defined (IPC_STAT) +# define IPC_STAT 0 +#endif /* IPC_STAT */ + +#if !defined (IPC_CREAT) +# define IPC_CREAT 0 +#endif /* IPC_CREAT */ + +#if !defined (IPC_NOWAIT) +# define IPC_NOWAIT 0 +#endif /* IPC_NOWAIT */ + +#if !defined (IPC_RMID) +# define IPC_RMID 0 +#endif /* IPC_RMID */ + +#if !defined (IPC_EXCL) +# define IPC_EXCL 0 +#endif /* IPC_EXCL */ + + #include "ace/post.h" -#endif /* ACE_OS_INCLUDE_SYS_IPC_H */ +#endif /* ACE_OS_INCLUDE_SYS_OS_IPC_H */ |