| 167 | } msg_fake; |
| 168 | |
| 169 | void build_msg_msg(struct msg_msg *msg, uint64_t m_list_next, |
| 170 | uint64_t m_list_prev, uint64_t m_ts, uint64_t next) { |
| 171 | msg->m_list_next = m_list_next; |
| 172 | msg->m_list_prev = m_list_prev; |
| 173 | msg->m_type = MTYPE_FAKE; |
| 174 | msg->m_ts = m_ts; |
| 175 | msg->next = next; |
| 176 | msg->security = 0; |
| 177 | } |
| 178 | |
| 179 | int write_msg(int msqid, const void *msgp, size_t msgsz, long msgtyp) { |
| 180 | *(long *)msgp = msgtyp; |