]> Zhao Yanbai Git Server - minix.git/commitdiff
stat.h: abi-compatible way to make st_size off_t
authorBen Gras <ben@minix3.org>
Tue, 28 Aug 2012 14:35:38 +0000 (16:35 +0200)
committerBen Gras <ben@minix3.org>
Tue, 28 Aug 2012 23:20:30 +0000 (01:20 +0200)
include/sys/stat.h

index b6d81843c76c32557682836c3b51f4b429170f50..b17b9a39030dfcef5590b439476bb27d353435fd 100644 (file)
@@ -31,7 +31,12 @@ struct stat {
   time_t    st_birthtime;         /* time of creation */
   long      st_birthtimensec;     /* nsec of time of creation */
 #endif
+#ifdef ST_SIZE_OFF_T
+  off_t                st_size;                /* file size, in off_t bytes */
+  off_t                st_size_rest;
+#else
   big_off_t st_size;           /* file size, in bytes */
+#endif
   blkcnt_t  st_blocks;         /* blocks allocated for file */
   blksize_t st_blksize;                /* optimal blocksize for I/O */
   u32_t     st_flags;          /* user defined flags for file */