blob: 458959d1a5ec56ce6aacbdd29aa340175804e75d [file] [log] [blame]
Greg Kroah-Hartmane2be04c2017-11-01 15:09:13 +01001/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Robin Getz96f10502009-09-24 14:11:24 +00002/*
3 * Copyright 2004-2006 Analog Devices Inc.
4 *
5 * Licensed under the GPL-2.
6 */
7
Chen Gang13376502013-11-12 17:04:04 +08008#ifndef _UAPI_BFIN_STAT_H
9#define _UAPI_BFIN_STAT_H
Bryan Wu1394f032007-05-06 14:50:22 -070010
11struct stat {
12 unsigned short st_dev;
13 unsigned short __pad1;
14 unsigned long st_ino;
15 unsigned short st_mode;
16 unsigned short st_nlink;
17 unsigned short st_uid;
18 unsigned short st_gid;
19 unsigned short st_rdev;
20 unsigned short __pad2;
21 unsigned long st_size;
22 unsigned long st_blksize;
23 unsigned long st_blocks;
24 unsigned long st_atime;
25 unsigned long __unused1;
26 unsigned long st_mtime;
27 unsigned long __unused2;
28 unsigned long st_ctime;
29 unsigned long __unused3;
30 unsigned long __unused4;
31 unsigned long __unused5;
32};
33
34/* This matches struct stat64 in glibc2.1, hence the absolutely
35 * insane amounts of padding around dev_t's.
36 */
37struct stat64 {
38 unsigned long long st_dev;
39 unsigned char __pad1[4];
40
41#define STAT64_HAS_BROKEN_ST_INO 1
42 unsigned long __st_ino;
43
44 unsigned int st_mode;
45 unsigned int st_nlink;
46
47 unsigned long st_uid;
48 unsigned long st_gid;
49
50 unsigned long long st_rdev;
51 unsigned char __pad2[4];
52
53 long long st_size;
54 unsigned long st_blksize;
55
56 long long st_blocks; /* Number 512-byte blocks allocated. */
57
58 unsigned long st_atime;
59 unsigned long st_atime_nsec;
60
61 unsigned long st_mtime;
62 unsigned long st_mtime_nsec;
63
64 unsigned long st_ctime;
65 unsigned long st_ctime_nsec;
66
67 unsigned long long st_ino;
68};
69
Chen Gang13376502013-11-12 17:04:04 +080070#endif /* _UAPI_BFIN_STAT_H */