From 8a1f658bd783e625d947933b6603dbcedb31f75b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 17 Sep 2004 08:44:34 +0000 Subject: Update. 2004-09-17 Ulrich Drepper * misc/sys/cdefs.h: Define __nonnull using nonnull function attribute for gcc 3.3 and higher. * io/fcntl.h: Add __nonnull where appropriate. * io/ftw.h: Likewise. * io/utime.h: Likewise. * io/sys/poll.h: Likewise. * io/sys/sendfile.h: Likewise. * io/sys/stat.h: Likewise. * io/sys/statfs.h: Likewise. * io/sys/statvfs.h: Likewise. * posix/unistd.h: Likewise. --- io/sys/statvfs.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'io/sys/statvfs.h') diff --git a/io/sys/statvfs.h b/io/sys/statvfs.h index 7c6c90fae0..909662bc50 100644 --- a/io/sys/statvfs.h +++ b/io/sys/statvfs.h @@ -50,35 +50,40 @@ __BEGIN_DECLS /* Return information about the filesystem on which FILE resides. */ #ifndef __USE_FILE_OFFSET64 extern int statvfs (__const char *__restrict __file, - struct statvfs *__restrict __buf) __THROW; + struct statvfs *__restrict __buf) + __THROW __nonnull ((1, 2)); #else # ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (statvfs, (__const char *__restrict __file, - struct statvfs *__restrict __buf), statvfs64); + struct statvfs *__restrict __buf), statvfs64) + __nonnull ((1, 2)); # else # define statvfs statvfs64 # endif #endif #ifdef __USE_LARGEFILE64 extern int statvfs64 (__const char *__restrict __file, - struct statvfs64 *__restrict __buf) __THROW; + struct statvfs64 *__restrict __buf) + __THROW __nonnull ((1, 2)); #endif /* Return information about the filesystem containing the file FILDES refers to. */ #ifndef __USE_FILE_OFFSET64 -extern int fstatvfs (int __fildes, struct statvfs *__buf) __THROW; +extern int fstatvfs (int __fildes, struct statvfs *__buf) + __THROW __nonnull ((2)); #else # ifdef __REDIRECT_NTH extern int __REDIRECT_NTH (fstatvfs, (int __fildes, struct statvfs *__buf), - fstatvfs64); + fstatvfs64) __nonnull ((2)); # else # define fstatvfs fstatvfs64 # endif #endif #ifdef __USE_LARGEFILE64 -extern int fstatvfs64 (int __fildes, struct statvfs64 *__buf) __THROW; +extern int fstatvfs64 (int __fildes, struct statvfs64 *__buf) + __THROW __nonnull ((2)); #endif __END_DECLS -- cgit 1.4.1