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