xref: /openbmc/linux/arch/xtensa/include/uapi/asm/stat.h (revision e2be04c7)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
283596729SDavid Howells /*
383596729SDavid Howells  * include/asm-xtensa/stat.h
483596729SDavid Howells  *
583596729SDavid Howells  * This file is subject to the terms and conditions of the GNU General Public
683596729SDavid Howells  * License.  See the file "COPYING" in the main directory of this archive
783596729SDavid Howells  * for more details.
883596729SDavid Howells  *
983596729SDavid Howells  * Copyright (C) 2001 - 2007 Tensilica Inc.
1083596729SDavid Howells  */
1183596729SDavid Howells 
1283596729SDavid Howells #ifndef _XTENSA_STAT_H
1383596729SDavid Howells #define _XTENSA_STAT_H
1483596729SDavid Howells 
1583596729SDavid Howells #define STAT_HAVE_NSEC 1
1683596729SDavid Howells 
1783596729SDavid Howells struct stat {
1883596729SDavid Howells 	unsigned long	st_dev;
1983596729SDavid Howells 	unsigned long	st_ino;
2083596729SDavid Howells 	unsigned int	st_mode;
2183596729SDavid Howells 	unsigned int	st_nlink;
2283596729SDavid Howells 	unsigned int	st_uid;
2383596729SDavid Howells 	unsigned int	st_gid;
2483596729SDavid Howells 	unsigned long	st_rdev;
2583596729SDavid Howells 	long		st_size;
2683596729SDavid Howells 	unsigned long	st_blksize;
2783596729SDavid Howells 	unsigned long	st_blocks;
2883596729SDavid Howells 	unsigned long	st_atime;
2983596729SDavid Howells 	unsigned long	st_atime_nsec;
3083596729SDavid Howells 	unsigned long	st_mtime;
3183596729SDavid Howells 	unsigned long	st_mtime_nsec;
3283596729SDavid Howells 	unsigned long	st_ctime;
3383596729SDavid Howells 	unsigned long	st_ctime_nsec;
3483596729SDavid Howells 	unsigned long	__unused4;
3583596729SDavid Howells 	unsigned long	__unused5;
3683596729SDavid Howells };
3783596729SDavid Howells 
3883596729SDavid Howells struct stat64  {
3983596729SDavid Howells 	unsigned long long st_dev;	/* Device */
4083596729SDavid Howells 	unsigned long long st_ino;	/* File serial number */
4183596729SDavid Howells 	unsigned int  st_mode;		/* File mode. */
4283596729SDavid Howells 	unsigned int  st_nlink;		/* Link count. */
4383596729SDavid Howells 	unsigned int  st_uid;		/* User ID of the file's owner. */
4483596729SDavid Howells 	unsigned int  st_gid;		/* Group ID of the file's group. */
4583596729SDavid Howells 	unsigned long long st_rdev;	/* Device number, if device. */
4683596729SDavid Howells 	long long st_size;		/* Size of file, in bytes. */
4783596729SDavid Howells 	unsigned long st_blksize;	/* Optimal block size for I/O. */
4883596729SDavid Howells 	unsigned long __unused2;
4983596729SDavid Howells 	unsigned long long st_blocks;	/* Number 512-byte blocks allocated. */
5083596729SDavid Howells 	unsigned long st_atime;		/* Time of last access. */
5183596729SDavid Howells 	unsigned long st_atime_nsec;
5283596729SDavid Howells 	unsigned long st_mtime;		/* Time of last modification. */
5383596729SDavid Howells 	unsigned long st_mtime_nsec;
5483596729SDavid Howells 	unsigned long st_ctime;		/* Time of last status change. */
5583596729SDavid Howells 	unsigned long st_ctime_nsec;
5683596729SDavid Howells 	unsigned long __unused4;
5783596729SDavid Howells 	unsigned long __unused5;
5883596729SDavid Howells };
5983596729SDavid Howells 
6083596729SDavid Howells #endif	/* _XTENSA_STAT_H */
61