stat.h 947 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 ARM Ltd.
  4. */
  5. #ifndef __ASM_STAT_H
  6. #define __ASM_STAT_H
  7. #include <uapi/asm/stat.h>
  8. #ifdef CONFIG_COMPAT
  9. #include <linux/time.h>
  10. #include <asm/compat.h>
  11. /*
  12. * struct stat64 is needed for compat tasks only. Its definition is different
  13. * from the generic struct stat64.
  14. */
  15. struct stat64 {
  16. compat_u64 st_dev;
  17. unsigned char __pad0[4];
  18. #define STAT64_HAS_BROKEN_ST_INO 1
  19. compat_ulong_t __st_ino;
  20. compat_uint_t st_mode;
  21. compat_uint_t st_nlink;
  22. compat_ulong_t st_uid;
  23. compat_ulong_t st_gid;
  24. compat_u64 st_rdev;
  25. unsigned char __pad3[4];
  26. compat_s64 st_size;
  27. compat_ulong_t st_blksize;
  28. compat_u64 st_blocks; /* Number of 512-byte blocks allocated. */
  29. compat_ulong_t st_atime;
  30. compat_ulong_t st_atime_nsec;
  31. compat_ulong_t st_mtime;
  32. compat_ulong_t st_mtime_nsec;
  33. compat_ulong_t st_ctime;
  34. compat_ulong_t st_ctime_nsec;
  35. compat_u64 st_ino;
  36. };
  37. #endif
  38. #endif