public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] y2038: Reorder placement of st_ino in struct __stat64_t64
@ 2020-10-14 13:00 Lukasz Majewski
  2020-10-14 13:13 ` Adhemerval Zanella
  0 siblings, 1 reply; 15+ messages in thread
From: Lukasz Majewski @ 2020-10-14 13:00 UTC (permalink / raw)
  To: Joseph Myers, Paul Eggert, Adhemerval Zanella
  Cc: Alistair Francis, Arnd Bergmann, Alistair Francis, GNU C Library,
	Florian Weimer, Carlos O'Donell, Stepan Golosunov,
	Andreas Schwab, Zack Weinberg, Lukasz Majewski

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-10-15 13:04 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 13:00 [PATCH] y2038: Reorder placement of st_ino in struct __stat64_t64 Lukasz Majewski
2020-10-14 13:13 ` Adhemerval Zanella
2020-10-14 14:14   ` Lukasz Majewski
2020-10-14 14:21     ` Andreas Schwab
2020-10-14 15:33       ` Lukasz Majewski
2020-10-15 10:28         ` Andreas Schwab
2020-10-14 14:23     ` Adhemerval Zanella
2020-10-14 15:56       ` Lukasz Majewski
2020-10-14 17:50         ` Adhemerval Zanella
2020-10-14 22:00           ` Lukasz Majewski
2020-10-15 11:03             ` Adhemerval Zanella
2020-10-15 11:21               ` Lukasz Majewski
2020-10-14 21:37     ` Joseph Myers
2020-10-15  9:58       ` Lukasz Majewski
2020-10-15 13:04         ` Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).