Please check the manual page mq_send(3).