mirror of https://github.com/mkerrisk/man-pages
mq_receive.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in mq_timedreceive(). Let's use it here too. .../glibc$ grep_glibc_prototype mq_timedreceive rt/mqueue.h:76: extern ssize_t mq_timedreceive (mqd_t __mqdes, char *__restrict __msg_ptr, size_t __msg_len, unsigned int *__restrict __msg_prio, const struct timespec *__restrict __abs_timeout) __nonnull ((2, 5)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
7369646c2b
commit
6d512409df
|
@ -35,9 +35,9 @@ mq_receive, mq_timedreceive \- receive a message from a message queue
|
|||
.B #include <time.h>
|
||||
.B #include <mqueue.h>
|
||||
.PP
|
||||
.BI "ssize_t mq_timedreceive(mqd_t " mqdes ", char *" msg_ptr ,
|
||||
.BI " size_t " msg_len ", unsigned int *" msg_prio ,
|
||||
.BI " const struct timespec *" abs_timeout );
|
||||
.BI "ssize_t mq_timedreceive(mqd_t " mqdes ", char *restrict " msg_ptr ,
|
||||
.BI " size_t " msg_len ", unsigned int *restrict " msg_prio ,
|
||||
.BI " const struct timespec *restrict " abs_timeout );
|
||||
.fi
|
||||
.PP
|
||||
Link with \fI\-lrt\fP.
|
||||
|
|
Loading…
Reference in New Issue