Contents of /trunk/mkinitrd-magellan/klibc/usr/include/arch/arm/klibc/archstat.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 839 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 839 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | #ifndef _KLIBC_ARCHSTAT_H |
2 | #define _KLIBC_ARCHSTAT_H |
3 | |
4 | #include <klibc/stathelp.h> |
5 | |
6 | #define _STATBUF_ST_NSEC |
7 | |
8 | /* This matches struct stat64 in glibc2.1, hence the absolutely |
9 | * insane amounts of padding around dev_t's. |
10 | * Note: The kernel zero's the padded region because glibc might read them |
11 | * in the hope that the kernel has stretched to using larger sizes. |
12 | */ |
13 | |
14 | struct stat { |
15 | __stdev64 (st_dev); |
16 | unsigned char __pad0[4]; |
17 | |
18 | unsigned long __st_ino; |
19 | unsigned int st_mode; |
20 | unsigned int st_nlink; |
21 | |
22 | unsigned long st_uid; |
23 | unsigned long st_gid; |
24 | |
25 | __stdev64 (st_rdev); |
26 | unsigned char __pad3[4]; |
27 | |
28 | long long st_size; |
29 | unsigned long st_blksize; |
30 | |
31 | unsigned long long st_blocks; /* Number 512-byte blocks allocated. */ |
32 | |
33 | struct timespec st_atim; |
34 | struct timespec st_mtim; |
35 | struct timespec st_ctim; |
36 | |
37 | unsigned long long st_ino; |
38 | }; |
39 | |
40 | #endif |