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
;
43 unsigned short st_dev
;
44 unsigned short __pad1
;
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.
69 unsigned long long st_dev
;
70 unsigned char __pad1
[4];
72 #define STAT64_HAS_BROKEN_ST_INO 1
73 unsigned long __st_ino
;
76 unsigned int st_nlink
;
81 unsigned long long st_rdev
;
82 unsigned char __pad3
[4];
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
;