mirror of https://github.com/mkerrisk/man-pages
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:
parent
c59ca53abd
commit
049d7f92e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue