diff mbox series

[17/22] mq_getattr.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210305235105.177359-18-alx.manpages@gmail.com
State Not Applicable
Headers show
Series man3: SYNOPSIS: Use 'restrict' in prototypes (batch 3) | expand

Commit Message

Alejandro Colomar \(man-pages\) March 5, 2021, 11:51 p.m. UTC
Both POSIX and glibc use 'restrict' in mq_setattr().
Let's use it here too.

.../glibc$ grep_glibc_prototype mq_setattr
rt/mqueue.h:51:
extern int mq_setattr (mqd_t __mqdes,
		       const struct mq_attr *__restrict __mqstat,
		       struct mq_attr *__restrict __omqstat)
  __THROW __nonnull ((2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/mq_getattr.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/man3/mq_getattr.3 b/man3/mq_getattr.3
index 32bfe21be..f1925fc71 100644
--- a/man3/mq_getattr.3
+++ b/man3/mq_getattr.3
@@ -30,8 +30,8 @@  mq_getattr, mq_setattr \- get/set message queue attributes
 .B #include <mqueue.h>
 .PP
 .BI "int mq_getattr(mqd_t " mqdes ", struct mq_attr *" attr );
-.BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *" newattr ","
-.BI "               struct mq_attr *" oldattr );
+.BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *restrict " newattr ,
+.BI "               struct mq_attr *restrict " oldattr );
 .fi
 .PP
 Link with \fI\-lrt\fP.