statx.2: SYNOPSIS: Use 'restrict' in prototypes

Glibc uses 'restrict' for the types of the parameters of statx().
Let's use it here too.

......

.../glibc$ grep_glibc_prototype statx
io/bits/statx-generic.h:60:
int statx (int __dirfd, const char *__restrict __path, int __flags,
           unsigned int __mask, struct statx *__restrict __buf)
  __THROW __nonnull ((2, 5));
.../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-14 00:10:21 +01:00 committed by Michael Kerrisk
parent c59ca53abd
commit 049d7f92e8
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ statx \- get file status (extended)
.B #include <unistd.h>
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.PP
.BI "int statx(int " dirfd ", const char *" pathname ", int " flags ","
.BI " unsigned int " mask ", struct statx *" statxbuf );
.BI "int statx(int " dirfd ", const char *restrict " pathname ", int " flags ,
.BI " unsigned int " mask ", struct statx *restrict " statxbuf );
.fi
.SH DESCRIPTION
This function returns information about a file, storing it in the buffer