summaryrefslogtreecommitdiff
path: root/include/linux/stat.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen <hskinnemoen@atmel.com>2007-03-21 19:44:48 +0100
committerHaavard Skinnemoen <hskinnemoen@atmel.com>2007-04-14 15:20:28 +0200
commit9c0deb5ae3ea0189f2e08ac29ef1316f1fb8548d (patch)
tree78a09527a773737d2989c09e49568bda8c25f035 /include/linux/stat.h
parent12f099c08167a7a51aeee623bc16dafd0841271c (diff)
downloadu-boot-imx-9c0deb5ae3ea0189f2e08ac29ef1316f1fb8548d.zip
u-boot-imx-9c0deb5ae3ea0189f2e08ac29ef1316f1fb8548d.tar.gz
u-boot-imx-9c0deb5ae3ea0189f2e08ac29ef1316f1fb8548d.tar.bz2
AVR32: Provide a definition of struct stat
Copy the definition of struct stat from the Linux kernel. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/linux/stat.h')
-rw-r--r--include/linux/stat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/stat.h b/include/linux/stat.h
index 4d05aa9..7d6df8d 100644
--- a/include/linux/stat.h
+++ b/include/linux/stat.h
@@ -125,6 +125,31 @@ struct stat {
#endif /* __MIPS__ */
+#if defined(__AVR32__)
+
+struct stat {
+ unsigned long st_dev;
+ unsigned long st_ino;
+ unsigned short st_mode;
+ unsigned short st_nlink;
+ unsigned short st_uid;
+ unsigned short st_gid;
+ unsigned long st_rdev;
+ unsigned long st_size;
+ unsigned long st_blksize;
+ unsigned long st_blocks;
+ unsigned long st_atime;
+ unsigned long st_atime_nsec;
+ unsigned long st_mtime;
+ unsigned long st_mtime_nsec;
+ unsigned long st_ctime;
+ unsigned long st_ctime_nsec;
+ unsigned long __unused4;
+ unsigned long __unused5;
+};
+
+#endif /* __AVR32__ */
+
#ifdef __cplusplus
}
#endif