comparison nt/inc/sys/stat.h @ 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 a9cdaa557fee
children aeceb2460b39
comparison
equal deleted inserted replaced
94811:47dff47e1b61 94812:dadc38b34319
55 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 55 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
56 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 56 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
57 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 57 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
58 58
59 struct stat { 59 struct stat {
60 unsigned __int64 st_ino; /* ino_t in sys/types.h is too narrow */
60 dev_t st_dev; 61 dev_t st_dev;
61 unsigned __int64 st_ino; /* ino_t in sys/types.h is too narrow */
62 unsigned short st_mode; 62 unsigned short st_mode;
63 short st_nlink; 63 short st_nlink;
64 int st_uid; 64 int st_uid;
65 int st_gid; 65 int st_gid;
66 unsigned __int64 st_size;
66 dev_t st_rdev; 67 dev_t st_rdev;
67 off_t st_size;
68 time_t st_atime; 68 time_t st_atime;
69 time_t st_mtime; 69 time_t st_mtime;
70 time_t st_ctime; 70 time_t st_ctime;
71 char st_uname[260];
72 char st_gname[260];
71 }; 73 };
72 74
73 _CRTIMP int __cdecl __MINGW_NOTHROW fstat (int, struct stat*); 75 _CRTIMP int __cdecl __MINGW_NOTHROW fstat (int, struct stat*);
74 _CRTIMP int __cdecl __MINGW_NOTHROW chmod (const char*, int); 76 _CRTIMP int __cdecl __MINGW_NOTHROW chmod (const char*, int);
75 _CRTIMP int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*); 77 _CRTIMP int __cdecl __MINGW_NOTHROW stat (const char*, struct stat*);