stat.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2004-2006 Atmel Corporation
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef _UAPI__ASM_AVR32_STAT_H
  9. #define _UAPI__ASM_AVR32_STAT_H
  10. struct __old_kernel_stat {
  11. unsigned short st_dev;
  12. unsigned short st_ino;
  13. unsigned short st_mode;
  14. unsigned short st_nlink;
  15. unsigned short st_uid;
  16. unsigned short st_gid;
  17. unsigned short st_rdev;
  18. unsigned long st_size;
  19. unsigned long st_atime;
  20. unsigned long st_mtime;
  21. unsigned long st_ctime;
  22. };
  23. struct stat {
  24. unsigned long st_dev;
  25. unsigned long st_ino;
  26. unsigned short st_mode;
  27. unsigned short st_nlink;
  28. unsigned short st_uid;
  29. unsigned short st_gid;
  30. unsigned long st_rdev;
  31. unsigned long st_size;
  32. unsigned long st_blksize;
  33. unsigned long st_blocks;
  34. unsigned long st_atime;
  35. unsigned long st_atime_nsec;
  36. unsigned long st_mtime;
  37. unsigned long st_mtime_nsec;
  38. unsigned long st_ctime;
  39. unsigned long st_ctime_nsec;
  40. unsigned long __unused4;
  41. unsigned long __unused5;
  42. };
  43. #define STAT_HAVE_NSEC 1
  44. struct stat64 {
  45. unsigned long long st_dev;
  46. unsigned long long st_ino;
  47. unsigned int st_mode;
  48. unsigned int st_nlink;
  49. unsigned long st_uid;
  50. unsigned long st_gid;
  51. unsigned long long st_rdev;
  52. long long st_size;
  53. unsigned long __pad1; /* align 64-bit st_blocks */
  54. unsigned long st_blksize;
  55. unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
  56. unsigned long st_atime;
  57. unsigned long st_atime_nsec;
  58. unsigned long st_mtime;
  59. unsigned long st_mtime_nsec;
  60. unsigned long st_ctime;
  61. unsigned long st_ctime_nsec;
  62. unsigned long __unused1;
  63. unsigned long __unused2;
  64. };
  65. #endif /* _UAPI__ASM_AVR32_STAT_H */