Linux 4.18.10
[linux/fpc-iii.git] / arch / xtensa / include / uapi / asm / stat.h
blob7b4d90d6d7716ee874343dc3ea83983d587b6f8e
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3 * include/asm-xtensa/stat.h
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
9 * Copyright (C) 2001 - 2007 Tensilica Inc.
12 #ifndef _XTENSA_STAT_H
13 #define _XTENSA_STAT_H
15 #define STAT_HAVE_NSEC 1
17 struct stat {
18 unsigned long st_dev;
19 unsigned long st_ino;
20 unsigned int st_mode;
21 unsigned int st_nlink;
22 unsigned int st_uid;
23 unsigned int st_gid;
24 unsigned long st_rdev;
25 long st_size;
26 unsigned long st_blksize;
27 unsigned long st_blocks;
28 unsigned long st_atime;
29 unsigned long st_atime_nsec;
30 unsigned long st_mtime;
31 unsigned long st_mtime_nsec;
32 unsigned long st_ctime;
33 unsigned long st_ctime_nsec;
34 unsigned long __unused4;
35 unsigned long __unused5;
38 struct stat64 {
39 unsigned long long st_dev; /* Device */
40 unsigned long long st_ino; /* File serial number */
41 unsigned int st_mode; /* File mode. */
42 unsigned int st_nlink; /* Link count. */
43 unsigned int st_uid; /* User ID of the file's owner. */
44 unsigned int st_gid; /* Group ID of the file's group. */
45 unsigned long long st_rdev; /* Device number, if device. */
46 long long st_size; /* Size of file, in bytes. */
47 unsigned long st_blksize; /* Optimal block size for I/O. */
48 unsigned long __unused2;
49 unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
50 unsigned long st_atime; /* Time of last access. */
51 unsigned long st_atime_nsec;
52 unsigned long st_mtime; /* Time of last modification. */
53 unsigned long st_mtime_nsec;
54 unsigned long st_ctime; /* Time of last status change. */
55 unsigned long st_ctime_nsec;
56 unsigned long __unused4;
57 unsigned long __unused5;
60 #endif /* _XTENSA_STAT_H */