summaryrefslogtreecommitdiff
path: root/PACE/pace/posix/mqueue.h
blob: c85500b4d018c717d0e33cbb53d015d6cb285dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* $Id$

 * ============================================================================
 *
 * = LIBRARY
 *    pace
 *
 * = FILENAME
 *    pace/posix/mqueue.h
 *
 * = AUTHOR
 *    Luther Baker
 *
 * ============================================================================ */

#ifndef PACE_MQUEUE_H_POSIX
#define PACE_MQUEUE_H_POSIX

#if PACE_LINUX
# include "pace/emulation/mqueue.h"
#else
# include <mqueue.h>
#endif /* PACE_LINUX */

#include "pace/signal.h"

#if defined (PACE_HAS_CPLUSPLUS)
extern "C" {
#endif /* PACE_HAS_CPLUSPLUS */

#ifndef PACE_MQD_T
#define PACE_MQD_T
# if PACE_LINUX
  typedef pace_emu_mqd_t pace_mqd_t;
# else
  typedef mqd_t pace_mqd_t;
# endif /* PACE_LINUX */
#endif /* PACE_MQD_T */

#ifndef PACE_MQ_ATTR
#define PACE_MQ_ATTR
# if PACE_LINUX
  typedef struct pace_emu_mq_attr pace_mq_attr;
# else
  typedef struct mq_attr pace_mq_attr;
# endif /* PACE_LINUX */
#endif /* PACE_MQ_ATTR */

#if defined (PACE_HAS_CPLUSPLUS)
}
#endif /* PACE_HAS_CPLUSPLUS */

#endif /* PACE_MQUEUE_H_POSIX */