fields-stat 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. (* FreeBSD 9.0 /usr/include/sys/stat.h *)
  2. st_dev*: dev_t; (* inode's device *)
  3. st_ino*: ino_t; (* inode's number *)
  4. st_mode*: mode_t; (* inode protection mode *)
  5. st_nlink*: nlink_t; (* number of hard links *)
  6. st_uid*: uid_t; (* user ID of the file's owner *)
  7. st_gid*: gid_t; (* group ID of the file's group *)
  8. st_rdev*: dev_t; (* device type *)
  9. (*
  10. st_atim: timespec_t; (* time of last access *)
  11. st_mtim: timespec_t; (* time of last data modification *)
  12. st_ctim: timespec_t; (* time of last file status change *)
  13. *)
  14. st_atime*: time_t;
  15. st_atimensec*: long;
  16. st_mtime*: time_t;
  17. st_mtimensec*: long;
  18. st_ctime*: time_t;
  19. st_ctimensec*: long;
  20. st_size*: off_t; (* file size, in bytes *)
  21. st_blocks*: blkcnt_t; (* blocks allocated for file *)
  22. st_blksize*: blksize_t; (* optimal blocksize for I/O *)
  23. st_flags*: fflags_t; (* user defined flags for file *)
  24. st_gen*: uint32_t; (* file generation number *)
  25. st_lspare*: int32_t;
  26. (*
  27. st_birthtim: timespec_t; (* time of file creation *)
  28. *)
  29. __st_birthtime*: time_t;
  30. __st_birthtimensec*: long;
  31. ___pad: ARRAY [untagged] 2 OF INTEGER; (* FreeBSD 9.0: sizeof(struct stat) = 96 B *)