use crate::{ipc_perm_t, pid_t, time_t};
pub type msgqnum_t = usize;
pub type msglen_t = usize;
pub const MSG_NOERROR: i32 = 0o10_000;
#[derive(Debug, Default, Clone)]
#[repr(C)]
pub struct msqid_ds_t {
pub msg_perm: ipc_perm_t,
msg_first: i32,
msg_last: i32,
pub msg_cbytes: msglen_t,
pub msg_qnum: msgqnum_t,
pub msg_qbytes: msglen_t,
pub msg_lspid: pid_t,
pub msg_lrpid: pid_t,
pub msg_stime: time_t,
msg_pad1: i32,
pub msg_rtime: time_t,
msg_pad2: i32,
pub msg_ctime: time_t,
msg_pad3: i32,
msg_pad4: [i32; 4],
}