stat.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * include/asm-xtensa/stat.h
  4. *
  5. * This file is subject to the terms and conditions of the GNU General Public
  6. * License. See the file "COPYING" in the main directory of this archive
  7. * for more details.
  8. *
  9. * Copyright (C) 2001 - 2007 Tensilica Inc.
  10. */
  11. #ifndef _XTENSA_STAT_H
  12. #define _XTENSA_STAT_H
  13. #define STAT_HAVE_NSEC 1
  14. struct stat {
  15. unsigned long st_dev;
  16. unsigned long st_ino;
  17. unsigned int st_mode;
  18. unsigned int st_nlink;
  19. unsigned int st_uid;
  20. unsigned int st_gid;
  21. unsigned long st_rdev;
  22. long st_size;
  23. unsigned long st_blksize;
  24. unsigned long st_blocks;
  25. unsigned long st_atime;
  26. unsigned long st_atime_nsec;
  27. unsigned long st_mtime;
  28. unsigned long st_mtime_nsec;
  29. unsigned long st_ctime;
  30. unsigned long st_ctime_nsec;
  31. unsigned long __unused4;
  32. unsigned long __unused5;
  33. };
  34. struct stat64 {
  35. unsigned long long st_dev; /* Device */
  36. unsigned long long st_ino; /* File serial number */
  37. unsigned int st_mode; /* File mode. */
  38. unsigned int st_nlink; /* Link count. */
  39. unsigned int st_uid; /* User ID of the file's owner. */
  40. unsigned int st_gid; /* Group ID of the file's group. */
  41. unsigned long long st_rdev; /* Device number, if device. */
  42. long long st_size; /* Size of file, in bytes. */
  43. unsigned long st_blksize; /* Optimal block size for I/O. */
  44. unsigned long __unused2;
  45. unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
  46. unsigned long st_atime; /* Time of last access. */
  47. unsigned long st_atime_nsec;
  48. unsigned long st_mtime; /* Time of last modification. */
  49. unsigned long st_mtime_nsec;
  50. unsigned long st_ctime; /* Time of last status change. */
  51. unsigned long st_ctime_nsec;
  52. unsigned long __unused4;
  53. unsigned long __unused5;
  54. };
  55. #endif /* _XTENSA_STAT_H */