mq_send(3) Library Functions Manual mq_send(3) mq_send, mq_timedsend - (librt -lrt) #include int mq_send(size_t msg_len; mqd_t mqdes, const char msg_ptr[msg_len], size_t msg_len, unsigned int msg_prio); #include #include int mq_timedsend(size_t msg_len; mqd_t mqdes, const char msg_ptr[msg_len], size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout); glibc ( feature_test_macros(7)): mq_timedsend(): _POSIX_C_SOURCE >= 200112L mq_send() msg_ptr mqdes. msg_len msg_ptr mq_msgsize . . msg_prio . . mq_overview(7) . ( mq_maxmsg ) mq_send() . O_NONBLOCK EAGAIN. mq_timedsend() mq_send() O_NONBLOCK abs_timeout . 1970-01-01 00:00:00 +0000 (UTC) timespec(3). mq_timedsend() . mq_send() mq_timedsend() -1 errno . EAGAIN O_NONBLOCK mqdes. EBADF mqdes . EINTR signal(7). EINVAL (blocked) abs_timeout tv_sec tv_nsec 1000 . EMSGSIZE msg_len mq_msgsize . ETIMEDOUT . attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |mq_send()| | MT-Safe | |mq_timedsend()| | | +------------+------------------------------------+--------------------+ mq_timedsend() mq_send() . POSIX.1-2008. POSIX.1-2001. mq_close(3) mq_getattr(3) mq_notify(3) mq_open(3) mq_receive(3) mq_unlink(3) timespec(3) mq_overview(7) time(7) 3 . . : . 6.18 8 2026 mq_send(3)