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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [libposix/] [include/] [posix/] [bits/] [kernel_stat.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef _BITS_STAT_STRUCT_H
2
#define _BITS_STAT_STRUCT_H
3
 
4
#ifndef _LIBC
5
#error bits/kernel_stat.h is for internal uClibc use only!
6
#endif
7
 
8
/* This file provides whatever this particular arch's kernel thinks
9
 * struct kernel_stat should look like...  It turns out each arch has a
10
 * different opinion on the subject... */
11
 
12
#define STAT_HAVE_NSEC 1
13
 
14
struct kernel_stat {
15
#if defined(__ARMEB__)
16
        unsigned short st_dev;
17
        unsigned short __pad1;
18
#else
19
        unsigned long  st_dev;
20
#endif
21
        unsigned long st_ino;
22
        unsigned short st_mode;
23
        unsigned short st_nlink;
24
        unsigned short st_uid;
25
        unsigned short st_gid;
26
#if defined(__ARMEB__)
27
        unsigned short st_rdev;
28
        unsigned short __pad2;
29
#else
30
        unsigned long  st_rdev;
31
#endif
32
        unsigned long  st_size;
33
        unsigned long  st_blksize;
34
        unsigned long  st_blocks;
35
        unsigned long  st_atime;
36
        unsigned long  st_atime_nsec;
37
        unsigned long  st_mtime;
38
        unsigned long  st_mtime_nsec;
39
        unsigned long  st_ctime;
40
        unsigned long  st_ctime_nsec;
41
        unsigned long  __unused4;
42
        unsigned long  __unused5;
43
};
44
 
45
struct kernel_stat64 {
46
        unsigned long long st_dev;
47
        unsigned char      __pad0[4];
48
 
49
#define _HAVE_STAT64___ST_INO
50
        unsigned long      __st_ino;
51
        unsigned int       st_mode;
52
        unsigned int       st_nlink;
53
        unsigned long      st_uid;
54
        unsigned long      st_gid;
55
 
56
        unsigned long long st_rdev;
57
        unsigned char      __pad3[4];
58
 
59
        long long          st_size;
60
        unsigned long      st_blksize;
61
        unsigned long long st_blocks;  /* Number 512-byte blocks allocated. */
62
 
63
        unsigned long      st_atime;
64
        unsigned long      st_atime_nsec;
65
        unsigned long      st_mtime;
66
        unsigned long      st_mtime_nsec;
67
        unsigned long      st_ctime;
68
        unsigned long      st_ctime_nsec;
69
        unsigned long long st_ino;
70
#ifndef __ARM_EABI__
71
} __attribute__((packed));
72
#else
73
};
74
#endif
75
 
76
#endif  /*  _BITS_STAT_STRUCT_H */

powered by: WebSVN 2.1.0

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