MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / stat.h
blobbd27a97a1cedbacca3118ccd1853f57c5b4dec3c
1 #ifndef _ASMNIOS2NOMMU_STAT_H
2 #define _ASMNIOS2NOMMU_STAT_H
4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/stat.h
8 * Derived from various works, Alpha, ix86, M68K, Sparc, ...et al
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
28 struct __old_kernel_stat {
29 unsigned short st_dev;
30 unsigned short st_ino;
31 unsigned short st_mode;
32 unsigned short st_nlink;
33 unsigned short st_uid;
34 unsigned short st_gid;
35 unsigned short st_rdev;
36 unsigned long st_size;
37 unsigned long st_atime;
38 unsigned long st_mtime;
39 unsigned long st_ctime;
42 struct stat {
43 unsigned short st_dev;
44 unsigned short __pad1;
45 unsigned long st_ino;
46 unsigned short st_mode;
47 unsigned short st_nlink;
48 unsigned short st_uid;
49 unsigned short st_gid;
50 unsigned short st_rdev;
51 unsigned short __pad2;
52 unsigned long st_size;
53 unsigned long st_blksize;
54 unsigned long st_blocks;
55 unsigned long st_atime;
56 unsigned long __unused1;
57 unsigned long st_mtime;
58 unsigned long __unused2;
59 unsigned long st_ctime;
60 unsigned long __unused3;
61 unsigned long __unused4;
62 unsigned long __unused5;
65 /* This matches struct stat64 in glibc2.1, hence the absolutely
66 * insane amounts of padding around dev_t's.
68 struct stat64 {
69 unsigned long long st_dev;
70 unsigned char __pad1[4];
72 #define STAT64_HAS_BROKEN_ST_INO 1
73 unsigned long __st_ino;
75 unsigned int st_mode;
76 unsigned int st_nlink;
78 unsigned long st_uid;
79 unsigned long st_gid;
81 unsigned long long st_rdev;
82 unsigned char __pad3[4];
84 long long st_size;
85 unsigned long st_blksize;
87 unsigned long __pad4; /* future possible st_blocks high bits */
88 unsigned long st_blocks; /* Number 512-byte blocks allocated. */
90 unsigned long st_atime;
91 unsigned long st_atime_nsec;
93 unsigned long st_mtime;
94 unsigned long st_mtime_nsec;
96 unsigned long st_ctime;
97 unsigned long st_ctime_nsec;
99 unsigned long long st_ino;
102 #endif