#ifndef _SYS_MSG_H
#define _SYS_MSG_H
#include <config/types.h>
#include <sys/cdefs.h>
#include <sys/ipc.h>
#include <sys/types.h>
typedef __haiku_uint32 msgqnum_t;
typedef __haiku_uint32 msglen_t;
#define MSG_NOERROR 010000
struct msqid_ds {
struct ipc_perm msg_perm;
msgqnum_t msg_qnum;
msglen_t msg_qbytes;
pid_t msg_lspid;
pid_t msg_lrpid;
time_t msg_stime;
time_t msg_rtime;
time_t msg_ctime;
};
struct msgbuf {
long mtype;
char mtext[1];
};
__BEGIN_DECLS
int msgctl(int, int, struct msqid_ds *);
int msgget(key_t, int);
ssize_t msgrcv(int, void *, size_t, long, int);
int msgsnd(int, const void *, size_t, int);
__END_DECLS
#endif