[PATCH] y2038: Reorder placement of st_ino in struct __stat64_t64

Lukasz Majewski lukma@denx.de
Wed Oct 14 13:00:51 GMT 2020


In the installed struct stat{64} the __ino64_t st_ino member is
placed in the end. This patch moves it to the same position as in the
aforementioned, exported structures as it allows less #ifdefs for
__USE_TIME_BITS64 support use case.
---
 sysdeps/unix/sysv/linux/struct_stat_time64.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/unix/sysv/linux/struct_stat_time64.h b/sysdeps/unix/sysv/linux/struct_stat_time64.h
index b85385b6f3..2c57f4e562 100644
--- a/sysdeps/unix/sysv/linux/struct_stat_time64.h
+++ b/sysdeps/unix/sysv/linux/struct_stat_time64.h
@@ -43,7 +43,6 @@
 struct __stat64_t64
   {
     __dev_t st_dev;			/* Device.  */
-    __ino64_t st_ino;			/* file serial number.	*/
     __mode_t st_mode;			/* File mode.  */
     __nlink_t st_nlink;			/* Link count.  */
     __uid_t st_uid;			/* User ID of the file's owner.	*/
@@ -70,6 +69,7 @@ struct __stat64_t64
     __fieldts64 (st_mtime);
     __fieldts64 (st_ctime);
 #   endif /* __USE_XOPEN2K8  */
+    __ino64_t st_ino;			/* file serial number.	*/
   };
 
 #   define _STATBUF_ST_BLKSIZE
-- 
2.20.1



More information about the Libc-alpha mailing list