MQ_TIMEDRECEIVE(3P)

πŸŽ€ MQ_TIMEDRECEIVE πŸ’–

okay bestie, welcome to the POSIX Programmer's Manual ✨ this one is page MQ_TIMEDRECEIVE(3P) and she's giving ADVANCED REALTIME energy, iykyk 🫢


🌸 PROLOG 🌸

so like, real talk first: this manual page is part of the POSIX Programmer's Manual πŸ“– but heads up β€” the Linux implementation of this interface may differ from what's written here (if you're on Linux, go check the corresponding Linux manual page for the deets on Linux behavior), or honestly the interface might not be implemented on Linux at all 😭 no cap, vibe check your platform first.


✨ NAME ✨

mq_timedreceive β€” receive a message from a message queue, and yes it's the ADVANCED REALTIME one πŸ‘‘


πŸ’… SYNOPSIS πŸ’…

#include <mqueue.h>
#include <time.h>

ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr,
    size_t msg_len, unsigned *restrict msg_prio,
    const struct timespec *restrict abstime);

literally just include both headers and you're set, periodt πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

not to gatekeep but… refer to mq_receive(). that's it, that's the whole section πŸŽ€ go read that one bestie, she has the lore.


okay legal bestie moment, don't skip this part πŸ’œ

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

bestie if you spot a typo, it's almost definitely a conversion glitch, not the actual spec β€” report it at that link and slay πŸ’…

and that's the whole page, babes 🌈 signed off by IEEE/The Open Group, dated 2017, on the MQ_TIMEDRECEIVE(3P) page πŸŽ€ mwah, go receive those messages πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from