stat.h 745 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _LINUX_STAT_H
  2. #define _LINUX_STAT_H
  3. #include <asm/stat.h>
  4. #include <uapi/linux/stat.h>
  5. #define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO)
  6. #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
  7. #define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH)
  8. #define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH)
  9. #define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH)
  10. #define UTIME_NOW ((1l << 30) - 1l)
  11. #define UTIME_OMIT ((1l << 30) - 2l)
  12. #include <linux/types.h>
  13. #include <linux/time.h>
  14. #include <linux/uidgid.h>
  15. struct kstat {
  16. u64 ino;
  17. dev_t dev;
  18. umode_t mode;
  19. unsigned int nlink;
  20. kuid_t uid;
  21. kgid_t gid;
  22. dev_t rdev;
  23. loff_t size;
  24. struct timespec atime;
  25. struct timespec mtime;
  26. struct timespec ctime;
  27. unsigned long blksize;
  28. unsigned long long blocks;
  29. };
  30. #endif