os_msg.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_msg.h
00006  *
00007  *  XSI message queue structures
00008  *
00009  *  os_msg.h,v 1.5 2004/08/25 16:05:41 shuston Exp
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_MSG_H
00017 #define ACE_OS_INCLUDE_SYS_OS_MSG_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_MSG_H)
00030 // OSF1 has problems with sys/msg.h and C++...
00031 #  if defined (ACE_HAS_BROKEN_MSG_H)
00032 #    define _KERNEL
00033 #  endif /* ACE_HAS_BROKEN_MSG_H */
00034 #  include /**/ <sys/msg.h>
00035 #  if defined (ACE_HAS_BROKEN_MSG_H)
00036 #    undef _KERNEL
00037 #  endif /* ACE_HAS_BROKEN_MSG_H */
00038 #endif /* !ACE_LACKS_SYS_MSG_H */
00039 
00040 // Place all additions (especially function declarations) within extern "C" {}
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif /* __cplusplus */
00045 
00046    // Declare opaque type.  Needed for ACE_OS wrappers on systems
00047    // without SysV IPC.
00048    struct msqid_ds;
00049 
00050 #if defined (ACE_LACKS_SYSV_MSQ_PROTOS)
00051    int msgget (key_t, int);
00052    int msgrcv (int, void *, size_t, long, int);
00053    int msgsnd (int, const void *, size_t, int);
00054    int msgctl (int, int, struct msqid_ds *);
00055 #endif /* ACE_LACKS_SYSV_MSQ_PROTOS */
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif /* __cplusplus */
00060 
00061 #include /**/ "ace/post.h"
00062 #endif /* ACE_OS_INCLUDE_SYS_OS_MSG_H */

Generated on Thu Nov 9 09:41:57 2006 for ACE by doxygen 1.3.6