aboutsummaryrefslogtreecommitdiff
path: root/lib/mlibc/abis/linux/msg.h
blob: 5e890c0687b9e177e9f0cdea717e59941557c3a0 (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
#ifndef _ABIBITS_MSG_H
#define _ABIBITS_MSG_H

#include <sys/ipc.h>
#include <bits/ansi/time_t.h>
#include <bits/types.h>
#include <abi-bits/pid_t.h>

#ifdef __cplusplus
extern "C" {
#endif

#if defined(__i386__)
typedef __mlibc_uint64 msglen_t;
typedef __mlibc_uint64 msgqnum_t;
#else
typedef unsigned long msglen_t;
typedef unsigned long msgqnum_t;
#endif

struct msqid_ds {
	struct ipc_perm msg_perm;
	time_t msg_stime;
	time_t msg_rtime;
	time_t msg_ctime;
	unsigned long msg_cbytes;
	msgqnum_t msg_qnum;
	msglen_t msg_qbytes;
	pid_t msg_lspid;
	pid_t msg_lrpid;
	unsigned long __unused[2];
};

#ifdef __cplusplus
}
#endif

#endif /* _ABIBITS_MSG_H */