[PATCH 08/24] statvfs.3: SYNOPSIS: Use 'restrict' in prototypes

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

 



Both POSIX and glibc use 'restrict' in statvfs().
Let's use it here too.

.../glibc$ grep_glibc_prototype statvfs
io/sys/statvfs.h:51:
extern int statvfs (const char *__restrict __file,
		    struct statvfs *__restrict __buf)
     __THROW __nonnull ((1, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man3/statvfs.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/statvfs.3 b/man3/statvfs.3
index 4f2788614..6fbfdc719 100644
--- a/man3/statvfs.3
+++ b/man3/statvfs.3
@@ -34,7 +34,8 @@ statvfs, fstatvfs \- get filesystem statistics
 .nf
 .B #include <sys/statvfs.h>
 .PP
-.BI "int statvfs(const char *" path ", struct statvfs *" buf );
+.BI "int statvfs(const char *restrict " path \
+", struct statvfs *restrict " buf );
 .BI "int fstatvfs(int " fd ", struct statvfs *" buf );
 .fi
 .SH DESCRIPTION
-- 
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