From patchwork Wed Mar 18 10:30:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang Jian(Bamvor)" X-Patchwork-Id: 5680 Received: (qmail 28161 invoked by alias); 18 Mar 2015 10:29:29 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 27651 invoked by uid 89); 18 Mar 2015 10:29:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: szxga02-in.huawei.com From: "Zhang Jian(Bamvor)" To: CC: , , , , Subject: [RFC PATCH 2/3] ARM64: ILP32: use __fsword_t in generic/bits/statfs.h Date: Wed, 18 Mar 2015 18:30:10 +0800 Message-ID: <1426674611-26427-3-git-send-email-bamvor.zhangjian@huawei.com> In-Reply-To: <1426674611-26427-1-git-send-email-bamvor.zhangjian@huawei.com> References: <1426674611-26427-1-git-send-email-bamvor.zhangjian@huawei.com> MIME-Version: 1.0 X-CFilter-Loop: Reflected From: Yang Yingliang Use __fsword_t to make size of struct statfs equal in userspace and kernel. Signed-off-by: Yang Yingliang --- sysdeps/unix/sysv/linux/generic/bits/statfs.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sysdeps/unix/sysv/linux/generic/bits/statfs.h b/sysdeps/unix/sysv/linux/generic/bits/statfs.h index e2f8c6a..ec06d30 100644 --- a/sysdeps/unix/sysv/linux/generic/bits/statfs.h +++ b/sysdeps/unix/sysv/linux/generic/bits/statfs.h @@ -48,18 +48,18 @@ struct statfs { - __SWORD_TYPE f_type; - __SWORD_TYPE f_bsize; + __fsword_t f_type; + __fsword_t f_bsize; __field64(__fsblkcnt_t, __fsblkcnt64_t, f_blocks); __field64(__fsblkcnt_t, __fsblkcnt64_t, f_bfree); __field64(__fsblkcnt_t, __fsblkcnt64_t, f_bavail); __field64(__fsfilcnt_t, __fsfilcnt64_t, f_files); __field64(__fsfilcnt_t, __fsfilcnt64_t, f_ffree); __fsid_t f_fsid; - __SWORD_TYPE f_namelen; - __SWORD_TYPE f_frsize; - __SWORD_TYPE f_flags; - __SWORD_TYPE f_spare[4]; + __fsword_t f_namelen; + __fsword_t f_frsize; + __fsword_t f_flags; + __fsword_t f_spare[4]; }; #undef __field64 @@ -67,18 +67,18 @@ struct statfs #ifdef __USE_LARGEFILE64 struct statfs64 { - __SWORD_TYPE f_type; - __SWORD_TYPE f_bsize; + __fsword_t f_type; + __fsword_t 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; - __SWORD_TYPE f_namelen; - __SWORD_TYPE f_frsize; - __SWORD_TYPE f_flags; - __SWORD_TYPE f_spare[4]; + __fsword_t f_namelen; + __fsword_t f_frsize; + __fsword_t f_flags; + __fsword_t f_spare[4]; }; #endif