From 049d7f92e8c617ed799b36f6debba6334b8cacbc Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 14 Feb 2021 00:10:21 +0100 Subject: [PATCH] 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 Signed-off-by: Michael Kerrisk --- man2/statx.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man2/statx.2 b/man2/statx.2 index 9539ccb2b..aeb3d377d 100644 --- a/man2/statx.2 +++ b/man2/statx.2 @@ -37,8 +37,8 @@ statx \- get file status (extended) .B #include .BR "#include " "/* 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