Michal Simek | fb621f1 | 2009-03-27 14:25:39 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Microblaze stat structure |
| 3 | * |
| 4 | * Copyright (C) 2001,02,03 NEC Electronics Corporation |
| 5 | * Copyright (C) 2001,02,03 Miles Bader <miles@gnu.org> |
| 6 | * |
| 7 | * This file is subject to the terms and conditions of the GNU General |
| 8 | * Public License. See the file COPYING in the main directory of this |
| 9 | * archive for more details. |
| 10 | * |
| 11 | * Written by Miles Bader <miles@gnu.org> |
| 12 | */ |
| 13 | |
| 14 | #ifndef _ASM_MICROBLAZE_STAT_H |
| 15 | #define _ASM_MICROBLAZE_STAT_H |
| 16 | |
| 17 | #include <linux/posix_types.h> |
| 18 | |
| 19 | struct stat { |
| 20 | unsigned int st_dev; |
| 21 | unsigned long st_ino; |
| 22 | unsigned int st_mode; |
| 23 | unsigned int st_nlink; |
| 24 | unsigned int st_uid; |
| 25 | unsigned int st_gid; |
| 26 | unsigned int st_rdev; |
| 27 | unsigned long st_size; |
| 28 | unsigned long st_blksize; |
| 29 | unsigned long st_blocks; |
| 30 | unsigned long st_atime; |
| 31 | unsigned long __unused1; /* unsigned long st_atime_nsec */ |
| 32 | unsigned long st_mtime; |
| 33 | unsigned long __unused2; /* unsigned long st_mtime_nsec */ |
| 34 | unsigned long st_ctime; |
| 35 | unsigned long __unused3; /* unsigned long st_ctime_nsec */ |
| 36 | unsigned long __unused4; |
| 37 | unsigned long __unused5; |
| 38 | }; |
| 39 | |
| 40 | struct stat64 { |
| 41 | unsigned long long st_dev; |
| 42 | unsigned long __unused1; |
| 43 | |
| 44 | unsigned long long st_ino; |
| 45 | |
| 46 | unsigned int st_mode; |
| 47 | unsigned int st_nlink; |
| 48 | |
| 49 | unsigned int st_uid; |
| 50 | unsigned int st_gid; |
| 51 | |
| 52 | unsigned long long st_rdev; |
| 53 | unsigned long __unused3; |
| 54 | |
| 55 | long long st_size; |
| 56 | unsigned long st_blksize; |
| 57 | |
| 58 | unsigned long st_blocks; /* No. of 512-byte blocks allocated */ |
| 59 | unsigned long __unused4; /* future possible st_blocks high bits */ |
| 60 | |
| 61 | unsigned long st_atime; |
| 62 | unsigned long st_atime_nsec; |
| 63 | |
| 64 | unsigned long st_mtime; |
| 65 | unsigned long st_mtime_nsec; |
| 66 | |
| 67 | unsigned long st_ctime; |
| 68 | unsigned long st_ctime_nsec; |
| 69 | |
| 70 | unsigned long __unused8; |
| 71 | }; |
| 72 | |
| 73 | #endif /* _ASM_MICROBLAZE_STAT_H */ |