stat.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef _PPC64_STAT_H
  2. #define _PPC64_STAT_H
  3. /*
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. #include <linux/types.h>
  10. struct stat {
  11. unsigned long st_dev;
  12. ino_t st_ino;
  13. nlink_t st_nlink;
  14. mode_t st_mode;
  15. uid_t st_uid;
  16. gid_t st_gid;
  17. unsigned long st_rdev;
  18. off_t st_size;
  19. unsigned long st_blksize;
  20. unsigned long st_blocks;
  21. unsigned long st_atime;
  22. unsigned long st_atime_nsec;
  23. unsigned long st_mtime;
  24. unsigned long st_mtime_nsec;
  25. unsigned long st_ctime;
  26. unsigned long st_ctime_nsec;
  27. unsigned long __unused4;
  28. unsigned long __unused5;
  29. unsigned long __unused6;
  30. };
  31. #define STAT_HAVE_NSEC 1
  32. /* This matches struct stat64 in glibc2.1. Only used for 32 bit. */
  33. struct stat64 {
  34. unsigned long st_dev; /* Device. */
  35. unsigned 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 st_rdev; /* Device number, if device. */
  41. unsigned short __pad2;
  42. long st_size; /* Size of file, in bytes. */
  43. int st_blksize; /* Optimal block size for I/O. */
  44. long st_blocks; /* Number 512-byte blocks allocated. */
  45. int st_atime; /* Time of last access. */
  46. int st_atime_nsec;
  47. int st_mtime; /* Time of last modification. */
  48. int st_mtime_nsec;
  49. int st_ctime; /* Time of last status change. */
  50. int st_ctime_nsec;
  51. unsigned int __unused4;
  52. unsigned int __unused5;
  53. };
  54. #endif