[PATCH 08/20] dlinfo.3: SYNOPSIS: Use 'restrict' in prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 man3/dlinfo.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/dlinfo.3 b/man3/dlinfo.3
index 194f106ad..b75242f13 100644
--- a/man3/dlinfo.3
+++ b/man3/dlinfo.3
@@ -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
-- 
2.30.1.721.g45526154a5




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux