NR_MESSAGES
for (i = 0; i < NR_MESSAGES; i++)
msgq->entries[NR_MESSAGES - 1].next = NULL;
struct msgqueue_entry entries[NR_MESSAGES];