stat.h: abi-compatible way to make st_size off_t
This commit is contained in:
parent
fd43d93ce5
commit
860224a4d4
1 changed files with 5 additions and 0 deletions
|
@ -31,7 +31,12 @@ struct stat {
|
||||||
time_t st_birthtime; /* time of creation */
|
time_t st_birthtime; /* time of creation */
|
||||||
long st_birthtimensec; /* nsec of time of creation */
|
long st_birthtimensec; /* nsec of time of creation */
|
||||||
#endif
|
#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 */
|
big_off_t st_size; /* file size, in bytes */
|
||||||
|
#endif
|
||||||
blkcnt_t st_blocks; /* blocks allocated for file */
|
blkcnt_t st_blocks; /* blocks allocated for file */
|
||||||
blksize_t st_blksize; /* optimal blocksize for I/O */
|
blksize_t st_blksize; /* optimal blocksize for I/O */
|
||||||
u32_t st_flags; /* user defined flags for file */
|
u32_t st_flags; /* user defined flags for file */
|
||||||
|
|
Loading…
Reference in a new issue