Root/target/linux/ubicom32/files/arch/ubicom32/include/asm/stat.h

1/*
2 * arch/ubicom32/include/asm/stat.h
3 * File status definitions for Ubicom32 architecture.
4 *
5 * (C) Copyright 2009, Ubicom, Inc.
6 *
7 * This file is part of the Ubicom32 Linux Kernel Port.
8 *
9 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10 * it and/or modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation, either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
17 * the GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with the Ubicom32 Linux Kernel Port. If not,
21 * see <http://www.gnu.org/licenses/>.
22 *
23 * Ubicom32 implementation derived from (with many thanks):
24 * arch/m68knommu
25 * arch/blackfin
26 * arch/parisc
27 */
28#ifndef _ASM_UBICOM32_STAT_H
29#define _ASM_UBICOM32_STAT_H
30
31struct __old_kernel_stat {
32    unsigned short st_dev;
33    unsigned short st_ino;
34    unsigned short st_mode;
35    unsigned short st_nlink;
36    unsigned short st_uid;
37    unsigned short st_gid;
38    unsigned short st_rdev;
39    unsigned long st_size;
40    unsigned long st_atime;
41    unsigned long st_mtime;
42    unsigned long st_ctime;
43};
44
45struct stat {
46    unsigned short st_dev;
47    unsigned short __pad1;
48    unsigned long st_ino;
49    unsigned short st_mode;
50    unsigned short st_nlink;
51    unsigned short st_uid;
52    unsigned short st_gid;
53    unsigned short st_rdev;
54    unsigned short __pad2;
55    unsigned long st_size;
56    unsigned long st_blksize;
57    unsigned long st_blocks;
58    unsigned long st_atime;
59    unsigned long __unused1;
60    unsigned long st_mtime;
61    unsigned long __unused2;
62    unsigned long st_ctime;
63    unsigned long __unused3;
64    unsigned long __unused4;
65    unsigned long __unused5;
66};
67
68/* This matches struct stat64 in glibc2.1, hence the absolutely
69 * insane amounts of padding around dev_t's.
70 */
71struct stat64 {
72    unsigned long long st_dev;
73    unsigned char __pad1[2];
74
75#define STAT64_HAS_BROKEN_ST_INO 1
76    unsigned long __st_ino;
77
78    unsigned int st_mode;
79    unsigned int st_nlink;
80
81    unsigned long st_uid;
82    unsigned long st_gid;
83
84    unsigned long long st_rdev;
85    unsigned char __pad3[2];
86
87    long long st_size;
88    unsigned long st_blksize;
89
90    unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
91
92    unsigned long st_atime;
93    unsigned long st_atime_nsec;
94
95    unsigned long st_mtime;
96    unsigned long st_mtime_nsec;
97
98    unsigned long st_ctime;
99    unsigned long st_ctime_nsec;
100
101    unsigned long long st_ino;
102};
103
104#endif /* _ASM_UBICOM32_STAT_H */
105

Archive Download this file



interactive