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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ppc/] [stat.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1276 phoenix
#ifndef _PPC_STAT_H
2
#define _PPC_STAT_H
3
 
4
#ifdef __KERNEL__
5
#include <linux/types.h>
6
#endif /* __KERNEL__ */
7
 
8
struct __old_kernel_stat {
9
        unsigned short st_dev;
10
        unsigned short st_ino;
11
        unsigned short st_mode;
12
        unsigned short st_nlink;
13
        unsigned short st_uid;
14
        unsigned short st_gid;
15
        unsigned short st_rdev;
16
        unsigned long  st_size;
17
        unsigned long  st_atime;
18
        unsigned long  st_mtime;
19
        unsigned long  st_ctime;
20
};
21
 
22
struct stat {
23
        dev_t           st_dev;
24
        ino_t           st_ino;
25
        mode_t          st_mode;
26
        nlink_t         st_nlink;
27
        uid_t           st_uid;
28
        gid_t           st_gid;
29
        dev_t           st_rdev;
30
        off_t           st_size;
31
        unsigned long   st_blksize;
32
        unsigned long   st_blocks;
33
        unsigned long   st_atime;
34
        unsigned long   __unused1;
35
        unsigned long   st_mtime;
36
        unsigned long   __unused2;
37
        unsigned long   st_ctime;
38
        unsigned long   __unused3;
39
        unsigned long   __unused4;
40
        unsigned long   __unused5;
41
};
42
 
43
/* This matches struct stat64 in glibc2.1.
44
 */
45
struct stat64 {
46
        unsigned long long st_dev;      /* Device.  */
47
        unsigned long long st_ino;      /* File serial number.  */
48
        unsigned int st_mode;           /* File mode.  */
49
        unsigned int st_nlink;          /* Link count.  */
50
        unsigned int st_uid;            /* User ID of the file's owner.  */
51
        unsigned int st_gid;            /* Group ID of the file's group. */
52
        unsigned long long st_rdev;     /* Device number, if device.  */
53
        unsigned short int __pad2;
54
        long long st_size;              /* Size of file, in bytes.  */
55
        long st_blksize;                /* Optimal block size for I/O.  */
56
 
57
        long long st_blocks;            /* Number 512-byte blocks allocated. */
58
        long st_atime;                  /* Time of last access.  */
59
        unsigned long int __unused1;
60
        long st_mtime;                  /* Time of last modification.  */
61
        unsigned long int __unused2;
62
        long st_ctime;                  /* Time of last status change.  */
63
        unsigned long int __unused3;
64
        unsigned long int __unused4;
65
        unsigned long int __unused5;
66
};
67
#endif

powered by: WebSVN 2.1.0

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