stat.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * include/asm-xtensa/stat.h
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * Copyright (C) 2001 - 2007 Tensilica Inc.
  9. */
  10. #ifndef _XTENSA_STAT_H
  11. #define _XTENSA_STAT_H
  12. #define STAT_HAVE_NSEC 1
  13. struct stat {
  14. unsigned long st_dev;
  15. unsigned long st_ino;
  16. unsigned int st_mode;
  17. unsigned int st_nlink;
  18. unsigned int st_uid;
  19. unsigned int st_gid;
  20. unsigned long st_rdev;
  21. long st_size;
  22. unsigned long st_blksize;
  23. unsigned long st_blocks;
  24. unsigned long st_atime;
  25. unsigned long st_atime_nsec;
  26. unsigned long st_mtime;
  27. unsigned long st_mtime_nsec;
  28. unsigned long st_ctime;
  29. unsigned long st_ctime_nsec;
  30. unsigned long __unused4;
  31. unsigned long __unused5;
  32. };
  33. struct stat64 {
  34. unsigned long long st_dev; /* Device */
  35. unsigned long long st_ino; /* File serial number */
  36. unsigned int st_mode; /* File mode. */
  37. unsigned int st_nlink; /* Link count. */
  38. unsigned int st_uid; /* User ID of the file's owner. */
  39. unsigned int st_gid; /* Group ID of the file's group. */
  40. unsigned long long st_rdev; /* Device number, if device. */
  41. long long st_size; /* Size of file, in bytes. */
  42. unsigned long st_blksize; /* Optimal block size for I/O. */
  43. unsigned long __unused2;
  44. unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
  45. unsigned long st_atime; /* Time of last access. */
  46. unsigned long st_atime_nsec;
  47. unsigned long st_mtime; /* Time of last modification. */
  48. unsigned long st_mtime_nsec;
  49. unsigned long st_ctime; /* Time of last status change. */
  50. unsigned long st_ctime_nsec;
  51. unsigned long __unused4;
  52. unsigned long __unused5;
  53. };
  54. #endif /* _XTENSA_STAT_H */