stat.h 1.8 KB

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