stat.h
上传用户:lgb322
上传日期:2013-02-24
资源大小:30529k
文件大小:2k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. #ifndef _PARISC_STAT_H
  2. #define _PARISC_STAT_H
  3. #include <linux/types.h>
  4. struct stat {
  5. dev_t st_dev; /* dev_t is 32 bits on parisc */
  6. ino_t st_ino; /* 32 bits */
  7. mode_t st_mode; /* 16 bits */
  8. nlink_t st_nlink; /* 16 bits */
  9. unsigned short st_reserved1; /* old st_uid */
  10. unsigned short st_reserved2; /* old st_gid */
  11. dev_t st_rdev;
  12. off_t st_size;
  13. time_t st_atime;
  14. unsigned int st_spare1;
  15. time_t st_mtime;
  16. unsigned int st_spare2;
  17. time_t st_ctime;
  18. unsigned int st_spare3;
  19. int st_blksize;
  20. int st_blocks;
  21. unsigned int __unused1; /* ACL stuff */
  22. dev_t __unused2; /* network */
  23. ino_t __unused3; /* network */
  24. unsigned int __unused4; /* cnodes */
  25. unsigned short __unused5; /* netsite */
  26. short st_fstype;
  27. dev_t st_realdev;
  28. unsigned short st_basemode;
  29. unsigned short st_spareshort;
  30. uid_t st_uid;
  31. gid_t st_gid;
  32. unsigned int st_spare4[3];
  33. };
  34. typedef __kernel_off64_t off64_t;
  35. struct hpux_stat64 {
  36. dev_t st_dev; /* dev_t is 32 bits on parisc */
  37. ino_t           st_ino;         /* 32 bits */
  38. mode_t st_mode; /* 16 bits */
  39. nlink_t st_nlink; /* 16 bits */
  40. unsigned short st_reserved1; /* old st_uid */
  41. unsigned short st_reserved2; /* old st_gid */
  42. dev_t st_rdev;
  43. off64_t st_size;
  44. time_t st_atime;
  45. unsigned int st_spare1;
  46. time_t st_mtime;
  47. unsigned int st_spare2;
  48. time_t st_ctime;
  49. unsigned int st_spare3;
  50. int st_blksize;
  51. __u64 st_blocks;
  52. unsigned int __unused1; /* ACL stuff */
  53. dev_t __unused2; /* network */
  54. ino_t           __unused3;      /* network */
  55. unsigned int __unused4; /* cnodes */
  56. unsigned short __unused5; /* netsite */
  57. short st_fstype;
  58. dev_t st_realdev;
  59. unsigned short st_basemode;
  60. unsigned short st_spareshort;
  61. uid_t st_uid;
  62. gid_t st_gid;
  63. unsigned int st_spare4[3];
  64. };
  65. #define stat64 hpux_stat64
  66. #endif