OpenCores
URL https://opencores.org/ocsvn/or1k_soc_on_altera_embedded_dev_kit/or1k_soc_on_altera_embedded_dev_kit/trunk

Subversion Repositories or1k_soc_on_altera_embedded_dev_kit

[/] [or1k_soc_on_altera_embedded_dev_kit/] [trunk/] [linux-2.6/] [linux-2.6.24/] [include/] [asm-or32/] [stat.h] - Blame information for rev 7

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 xianfeng
#ifndef _OR32_STAT_H
2
#define _OR32_STAT_H
3
#include <linux/types.h>
4
/*
5
 * this depends on 'include/asm-or32/posix_types.h'
6
 * and must be in sync with userspace libc (sys/stat.h) file
7
 *
8
 * it would be probably best to just use i386 version
9
 * and update 'posix_types.h' and also fix uclibc...
10
 *
11
 */
12
 
13
struct __old_kernel_stat {
14
        unsigned short st_dev;
15
        unsigned short st_ino;
16
        unsigned short st_mode;
17
        unsigned short st_nlink;
18
        unsigned short st_uid;
19
        unsigned short st_gid;
20
        unsigned short st_rdev;
21
        unsigned long  st_size;
22
        unsigned long  st_atime;
23
        unsigned long  st_mtime;
24
        unsigned long  st_ctime;
25
};
26
 
27
#define STAT_HAVE_NSEC 1
28
 
29
struct stat {
30
        unsigned long   st_dev;
31
        ino_t           st_ino;
32
        mode_t          st_mode;
33
        nlink_t         st_nlink;
34
        uid_t           st_uid;
35
        gid_t           st_gid;
36
        unsigned long   st_rdev;
37
        off_t           st_size;
38
        unsigned long   st_blksize;
39
        unsigned long   st_blocks;
40
        unsigned long   st_atime;
41
        unsigned long   st_atime_nsec;
42
        unsigned long   st_mtime;
43
        unsigned long   st_mtime_nsec;
44
        unsigned long   st_ctime;
45
        unsigned long   st_ctime_nsec;
46
        unsigned long   __unused4;
47
        unsigned long   __unused5;
48
};
49
 
50
/*
51
 * i386 version
52
 *
53
struct stat {
54
        unsigned long  st_dev;
55
        unsigned long  st_ino;
56
        unsigned short st_mode;
57
        unsigned short st_nlink;
58
        unsigned short st_uid;
59
        unsigned short st_gid;
60
        unsigned long  st_rdev;
61
        unsigned long  st_size;
62
        unsigned long  st_blksize;
63
        unsigned long  st_blocks;
64
        unsigned long  st_atime;
65
        unsigned long  st_atime_nsec;
66
        unsigned long  st_mtime;
67
        unsigned long  st_mtime_nsec;
68
        unsigned long  st_ctime;
69
        unsigned long  st_ctime_nsec;
70
        unsigned long  __unused4;
71
        unsigned long  __unused5;
72
};
73
 */
74
 
75
/* This matches struct stat64 in glibc2.1, hence the absolutely
76
 * insane amounts of padding around dev_t's.
77
 */
78
struct stat64 {
79
        unsigned long long      st_dev;
80
        unsigned char   __pad0[4];
81
 
82
#define STAT64_HAS_BROKEN_ST_INO        1
83
        unsigned long   __st_ino;
84
 
85
        unsigned int    st_mode;
86
        unsigned int    st_nlink;
87
 
88
        unsigned long   st_uid;
89
        unsigned long   st_gid;
90
 
91
        unsigned long long      st_rdev;
92
        unsigned char   __pad3[4];
93
 
94
        long long       st_size;
95
        unsigned long   st_blksize;
96
 
97
        unsigned long   st_blocks;      /* Number 512-byte blocks allocated. */
98
        unsigned long   __pad4;         /* future possible st_blocks high bits */
99
 
100
        unsigned long   st_atime;
101
        unsigned long   st_atime_nsec;
102
 
103
        unsigned long   st_mtime;
104
        unsigned long   st_mtime_nsec;
105
 
106
        unsigned long   st_ctime;
107
        unsigned long   st_ctime_nsec;  /* will be high 32 bits of ctime someday */
108
 
109
        unsigned long long      st_ino;
110
};
111
 
112
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.