stat.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright 2004-2006 Analog Devices Inc.
  3. *
  4. * Licensed under the GPL-2.
  5. */
  6. #ifndef _UAPI_BFIN_STAT_H
  7. #define _UAPI_BFIN_STAT_H
  8. struct stat {
  9. unsigned short st_dev;
  10. unsigned short __pad1;
  11. unsigned long st_ino;
  12. unsigned short st_mode;
  13. unsigned short st_nlink;
  14. unsigned short st_uid;
  15. unsigned short st_gid;
  16. unsigned short st_rdev;
  17. unsigned short __pad2;
  18. unsigned long st_size;
  19. unsigned long st_blksize;
  20. unsigned long st_blocks;
  21. unsigned long st_atime;
  22. unsigned long __unused1;
  23. unsigned long st_mtime;
  24. unsigned long __unused2;
  25. unsigned long st_ctime;
  26. unsigned long __unused3;
  27. unsigned long __unused4;
  28. unsigned long __unused5;
  29. };
  30. /* This matches struct stat64 in glibc2.1, hence the absolutely
  31. * insane amounts of padding around dev_t's.
  32. */
  33. struct stat64 {
  34. unsigned long long st_dev;
  35. unsigned char __pad1[4];
  36. #define STAT64_HAS_BROKEN_ST_INO 1
  37. unsigned long __st_ino;
  38. unsigned int st_mode;
  39. unsigned int st_nlink;
  40. unsigned long st_uid;
  41. unsigned long st_gid;
  42. unsigned long long st_rdev;
  43. unsigned char __pad2[4];
  44. long long st_size;
  45. unsigned long st_blksize;
  46. long long st_blocks; /* Number 512-byte blocks allocated. */
  47. unsigned long st_atime;
  48. unsigned long st_atime_nsec;
  49. unsigned long st_mtime;
  50. unsigned long st_mtime_nsec;
  51. unsigned long st_ctime;
  52. unsigned long st_ctime_nsec;
  53. unsigned long long st_ino;
  54. };
  55. #endif /* _UAPI_BFIN_STAT_H */