Skip to content

Instantly share code, notes, and snippets.

@snim2
Last active August 29, 2015 14:26
Show Gist options
  • Save snim2/d6c2aeecb7a207b1c116 to your computer and use it in GitHub Desktop.
Save snim2/d6c2aeecb7a207b1c116 to your computer and use it in GitHub Desktop.

stat.h

Based on: sys/stat.h

Field Size Offset Note
ST_DEV 2 0 dev_t is a u short
ST_INO 2 2 ino_t is a u short
ST_MODE 4 4 mode_t is a u int
ST_NLINK 2 8 nlink_t is a u short
ST_UID 2 10 uid_t is a u short
ST_GID 2 12 gid_t is a u short
ST_RDEV 2 14 dev_t is a u short
ST_SIZE 4 16 off_t is a u int
ST_ATIME 4 20 time_t is a u int?
ST_SPARE1 4 24 long
ST_MTIME 4 28 time_t is a u int?
ST_SPARE2 4 32 long
ST_CTIME 4 36 time_t is a u int?
ST_SPARE3 4 40 long
ST_BLKSIZE 4 44 long
ST_BLOCKS 4 48 long
ST_SPARE4 8 52 long[2]

TOTAL SIZE = 60 bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment