4 #define MSG_Q_DIR "/tmp"
5 #define MSG_Q_MAXQUEUES 256
8 #define WAIT_FOREVER (-1)
10 #define S_objLib_OBJ_TIMEOUT EAGAIN
13 #define MSG_Q_LOCK_NONE 0
15 #define MSG_Q_LOCK_EXPECT 2
18 #define MSG_Q_TIMEOUT (-1)
19 #define MSG_Q_ERROR (-2) // OS-specific error i.e. write returns -1
20 #define MSG_Q_NOTASK (-3) // "no task present" error
34 extern MSG_Q_ID msgQNCreate(
int task,
int msglen,
int lock = MSG_Q_LOCK_NONE) ;
35 extern int msgQNSend(MSG_Q_ID task,
char *what,
int size,
int timeout = WAIT_FOREVER,
int prio = 0) ;
36 extern int msgQNReceive(MSG_Q_ID task,
char *where,
int size,
int timeout = WAIT_FOREVER) ;
37 extern int msgQNDelete(MSG_Q_ID task) ;
38 extern int msgQNLocking(MSG_Q_ID task,
int lock) ;
39 extern int msgQNSize(MSG_Q_ID task,
int size) ;
40 extern int msgQNCheck(MSG_Q_ID task) ;