diff options
author | Miao Wang <shankerwangmiao@gmail.com> | 2024-12-23 10:30:43 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2024-12-23 10:30:43 +0100 |
commit | 55618e13968a60b89e5b226a23afaa8f17c5ef48 (patch) | |
tree | f18c8a65fa26b7a3ca38e385ac8d013370d8d88e /io/sys | |
parent | 15ab68bf1abddff3b2fc0fa8ed53bb42fcd66cec (diff) | |
download | glibc-55618e13968a60b89e5b226a23afaa8f17c5ef48.zip glibc-55618e13968a60b89e5b226a23afaa8f17c5ef48.tar.gz glibc-55618e13968a60b89e5b226a23afaa8f17c5ef48.tar.bz2 |
io: statx, fstatat: Drop nonnull attribute on the path argument
Since Linux 6.11 the kernel allows path to be NULL if flags &
AT_EMPTY_PATH. Let's allow users to take the advantage if they don't
care running on old kernels.
Signed-off-by: Miao Wang <shankerwangmiao@gmail.com>
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'io/sys')
-rw-r--r-- | io/sys/stat.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h index dd96b88..1e2adba 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -263,14 +263,14 @@ extern int __REDIRECT_NTH (fstat64, (int __fd, struct stat64 *__buf), # ifndef __USE_FILE_OFFSET64 extern int fstatat (int __fd, const char *__restrict __file, struct stat *__restrict __buf, int __flag) - __THROW __nonnull ((2, 3)); + __THROW __nonnull ((3)); # else # ifdef __USE_TIME64_REDIRECTS # ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (fstatat, (int __fd, const char *__restrict __file, struct stat *__restrict __buf, int __flag), - __fstatat64_time64) __nonnull ((2, 3)); + __fstatat64_time64) __nonnull ((3)); # else # define fstatat __fstatat64_time64 # endif @@ -279,7 +279,7 @@ extern int __REDIRECT_NTH (fstatat, (int __fd, const char *__restrict __file, extern int __REDIRECT_NTH (fstatat, (int __fd, const char *__restrict __file, struct stat *__restrict __buf, int __flag), - fstatat64) __nonnull ((2, 3)); + fstatat64) __nonnull ((3)); # else # define fstatat fstatat64 # endif @@ -290,7 +290,7 @@ extern int __REDIRECT_NTH (fstatat, (int __fd, const char *__restrict __file, # ifndef __USE_TIME64_REDIRECTS extern int fstatat64 (int __fd, const char *__restrict __file, struct stat64 *__restrict __buf, int __flag) - __THROW __nonnull ((2, 3)); + __THROW __nonnull ((3)); # else # ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (fstatat64, (int __fd, @@ -298,7 +298,7 @@ extern int __REDIRECT_NTH (fstatat64, (int __fd, struct stat64 *__restrict __buf, int __flag), __fstatat64_time64) - __nonnull ((2, 3)); + __nonnull ((3)); # else # define fstatat64 __fstatat64_time64 # endif |