blob: c4992038cee0baabab187085df8ffd87a89cc861 [file] [log] [blame]
Chris Zankel9a8fd552005-06-23 22:01:26 -07001/*
2 * include/asm-xtensa/stat.h
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
Bob Wilson71d28e62007-10-16 16:43:00 -07008 * Copyright (C) 2001 - 2007 Tensilica Inc.
Chris Zankel9a8fd552005-06-23 22:01:26 -07009 */
10
11#ifndef _XTENSA_STAT_H
12#define _XTENSA_STAT_H
13
Chris Zankel9a8fd552005-06-23 22:01:26 -070014#define STAT_HAVE_NSEC 1
15
16struct stat {
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080017 unsigned long st_dev;
Bob Wilson71d28e62007-10-16 16:43:00 -070018 unsigned long st_ino;
19 unsigned int st_mode;
20 unsigned int st_nlink;
21 unsigned int st_uid;
22 unsigned int st_gid;
23 unsigned long st_rdev;
24 long st_size;
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080025 unsigned long st_blksize;
26 unsigned long st_blocks;
27 unsigned long st_atime;
28 unsigned long st_atime_nsec;
29 unsigned long st_mtime;
30 unsigned long st_mtime_nsec;
31 unsigned long st_ctime;
32 unsigned long st_ctime_nsec;
33 unsigned long __unused4;
34 unsigned long __unused5;
Chris Zankel9a8fd552005-06-23 22:01:26 -070035};
36
Chris Zankel9a8fd552005-06-23 22:01:26 -070037struct stat64 {
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080038 unsigned long long st_dev; /* Device */
39 unsigned long long st_ino; /* File serial number */
Chris Zankel9a8fd552005-06-23 22:01:26 -070040 unsigned int st_mode; /* File mode. */
41 unsigned int st_nlink; /* Link count. */
42 unsigned int st_uid; /* User ID of the file's owner. */
43 unsigned int st_gid; /* Group ID of the file's group. */
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080044 unsigned long long st_rdev; /* Device number, if device. */
45 long long st_size; /* Size of file, in bytes. */
Bob Wilson71d28e62007-10-16 16:43:00 -070046 unsigned long st_blksize; /* Optimal block size for I/O. */
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080047 unsigned long __unused2;
Bob Wilson71d28e62007-10-16 16:43:00 -070048 unsigned long long st_blocks; /* Number 512-byte blocks allocated. */
49 unsigned long st_atime; /* Time of last access. */
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080050 unsigned long st_atime_nsec;
Bob Wilson71d28e62007-10-16 16:43:00 -070051 unsigned long st_mtime; /* Time of last modification. */
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080052 unsigned long st_mtime_nsec;
Bob Wilson71d28e62007-10-16 16:43:00 -070053 unsigned long st_ctime; /* Time of last status change. */
Chris Zankelfc4fb2a2006-12-10 02:18:52 -080054 unsigned long st_ctime_nsec;
55 unsigned long __unused4;
56 unsigned long __unused5;
Chris Zankel9a8fd552005-06-23 22:01:26 -070057};
58
59#endif /* _XTENSA_STAT_H */