From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45853 invoked by alias); 19 Apr 2018 00:07:47 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 45835 invoked by uid 89); 19 Apr 2018 00:07:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: mail3-relais-sop.national.inria.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix standard compliance of some statvfs fields Date: Thu, 19 Apr 2018 00:07:00 -0000 Message-Id: <20180419000742.19403-1-samuel.thibault@ens-lyon.org> X-SW-Source: 2018-04/txt/msg00383.txt.bz2 Standards require that the f_bsize, f_frsize, f_flag and f_namemax fields be unsigned long. They used to be only unsigned on hurd, which happens to be compatible with unsigned long on the only existing, 32bit, port. We can thus merely fix the type. * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize, f_namemax, f_frsize, and f_flag fields unsigned long int instead of unsigned int. (struct statvfs64): Likewise. --- ChangeLog | 4 ++++ sysdeps/mach/hurd/bits/statvfs.h | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 815c0bcaed..cd0734fbbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,10 @@ Likewise. * conform/data/sys/stat.h-data (stat.st_dev): Likewise. * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise. + * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize, + f_namemax, f_frsize, and f_flag fields unsigned long int instead of + unsigned int. + (struct statvfs64): Likewise. 2018-04-18 Joseph Myers diff --git a/sysdeps/mach/hurd/bits/statvfs.h b/sysdeps/mach/hurd/bits/statvfs.h index e9624b1700..9880b2c9c7 100644 --- a/sysdeps/mach/hurd/bits/statvfs.h +++ b/sysdeps/mach/hurd/bits/statvfs.h @@ -30,7 +30,7 @@ struct statvfs { unsigned int __f_type; - unsigned int f_bsize; + unsigned long int f_bsize; #ifndef __USE_FILE_OFFSET64 __fsblkcnt_t f_blocks; __fsblkcnt_t f_bfree; @@ -45,14 +45,14 @@ struct statvfs __fsfilcnt64_t f_ffree; #endif __fsid_t f_fsid; - unsigned int f_namemax; /* NOTE: f_namelen in `struct statfs'. */ + unsigned long int f_namemax; /* NOTE: f_namelen in `struct statfs'. */ #ifndef __USE_FILE_OFFSET64 __fsfilcnt_t f_favail; #else __fsfilcnt64_t f_favail; #endif - unsigned int f_frsize; - unsigned int f_flag; + unsigned long int f_frsize; + unsigned long int f_flag; unsigned int f_spare[3]; }; @@ -60,17 +60,17 @@ struct statvfs struct statvfs64 { unsigned int __f_type; - unsigned int f_bsize; + unsigned long int f_bsize; __fsblkcnt64_t f_blocks; __fsblkcnt64_t f_bfree; __fsblkcnt64_t f_bavail; __fsfilcnt64_t f_files; __fsfilcnt64_t f_ffree; __fsid_t f_fsid; - unsigned int f_namemax; + unsigned long int f_namemax; __fsfilcnt64_t f_favail; - unsigned int f_frsize; - unsigned int f_flag; + unsigned long int f_frsize; + unsigned long int f_flag; unsigned int f_spare[3]; }; #endif -- 2.15.1