]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/cris/bits/kernel_stat.h
Inital import
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / cris / bits / kernel_stat.h
1 /* Taken from linux/include/asm-cris/stat.h */
2
3 #ifndef _CRIS_STAT_H
4 #define _CRIS_STAT_H
5
6 #ifndef _LIBC
7 #error bits/kernel_stat.h is for internal uClibc use only!
8 #endif
9
10 struct kernel_stat {
11         unsigned short st_dev;
12         unsigned short __pad1;
13         unsigned long st_ino;
14         unsigned short st_mode;
15         unsigned short st_nlink;
16         unsigned short st_uid;
17         unsigned short st_gid;
18         unsigned short st_rdev;
19         unsigned short __pad2;
20         unsigned long  st_size;
21         unsigned long  st_blksize;
22         unsigned long  st_blocks;
23         struct timespec st_atim;
24         struct timespec st_mtim;
25         struct timespec st_ctim;
26         unsigned long  __unused4;
27         unsigned long  __unused5;
28 };
29
30 /* This matches struct kernel_stat64 in glibc2.1, hence the absolutely
31  * insane amounts of padding around dev_t's.
32  */
33 struct kernel_stat64 {
34         unsigned short  st_dev;
35         unsigned char   __pad0[10];
36
37 #define _HAVE_STAT64___ST_INO
38         unsigned long   __st_ino;
39
40         unsigned int    st_mode;
41         unsigned int    st_nlink;
42
43         unsigned long   st_uid;
44         unsigned long   st_gid;
45
46         unsigned short  st_rdev;
47         unsigned char   __pad3[10];
48
49         long long       st_size;
50         unsigned long   st_blksize;
51
52         unsigned long   st_blocks;      /* Number 512-byte blocks allocated. */
53         unsigned long   __pad4;         /* future possible st_blocks high bits */
54
55         struct timespec st_atim;
56         struct timespec st_mtim;
57         struct timespec st_ctim;
58
59         unsigned long long      st_ino;
60 };
61
62 #endif