mirror of https://github.com/mkerrisk/man-pages
statvfs.3: SYNOPSIS: Use 'restrict' in prototypes
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@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
b20b8da6e3
commit
0d93c9e70b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue