changeset 94812:dadc38b34319

(struct stat): Move st_dev after st_ino, for better alignment. Make st_size 64-bit wide. Add new members st_uname and st_gname.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 09 May 2008 18:59:49 +0000
parents 47dff47e1b61
children cdb39fb391ad
files nt/inc/sys/stat.h
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/nt/inc/sys/stat.h	Fri May 09 18:59:45 2008 +0000
+++ b/nt/inc/sys/stat.h	Fri May 09 18:59:49 2008 +0000
@@ -57,17 +57,19 @@
 #define	S_ISFIFO(m)	(((m) & S_IFMT) == S_IFIFO)
 
 struct stat {
+  unsigned __int64 st_ino;	/* ino_t in sys/types.h is too narrow */
   dev_t st_dev;
-  unsigned __int64 st_ino;	/* ino_t in sys/types.h is too narrow */
   unsigned short   st_mode;
   short		   st_nlink;
   int		   st_uid;
   int		   st_gid;
+  unsigned __int64 st_size;
   dev_t		   st_rdev;
-  off_t		   st_size;
   time_t	   st_atime;
   time_t	   st_mtime;
   time_t	   st_ctime;
+  char		   st_uname[260];
+  char		   st_gname[260];
 };
 
 _CRTIMP int __cdecl __MINGW_NOTHROW	fstat (int, struct stat*);