dlinfo.3: SYNOPSIS: Use 'restrict' in prototypes

Glibc uses 'restrict' for dlinfo().
Let's use it here too.

......

.../glibc$ grep_glibc_prototype dlinfo
dlfcn/dlfcn.h:123:
extern int dlinfo (void *__restrict __handle,
		   int __request, void *__restrict __arg)
     __THROW __nonnull ((1, 3));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-02-24 15:42:59 +01:00 committed by Michael Kerrisk
parent 0300d62fc1
commit fbea610b4a
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ dlinfo \- obtain information about a dynamically loaded object
.B #include <link.h>
.B #include <dlfcn.h>
.PP
.BR "int dlinfo(void *" handle ", int " request ", void *" info );
.BR "int dlinfo(void *restrict " handle ", int " request \
", void *restrict " info );
.PP
Link with \fI\-ldl\fP.
.fi