1#ifndef _PPC64_STAT_H
2#define _PPC64_STAT_H
3
4/*
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.
9 */
10
11#include <linux/types.h>
12
13struct __old_kernel_stat {
14	unsigned short st_dev;
15	unsigned short st_ino;
16	unsigned short st_mode;
17	unsigned short st_nlink;
18	unsigned short st_uid;
19	unsigned short st_gid;
20	unsigned short st_rdev;
21	unsigned long  st_size;
22	unsigned long  st_atime;
23	unsigned long  st_mtime;
24	unsigned long  st_ctime;
25};
26
27struct stat {
28	dev_t		st_dev;
29	ino_t		st_ino;
30	mode_t		st_mode;
31	nlink_t		st_nlink;
32	uid_t 		st_uid;
33	gid_t 		st_gid;
34	dev_t		st_rdev;
35	off_t		st_size;
36	unsigned long  	st_blksize;
37	unsigned long  	st_blocks;
38	unsigned long  	st_atime;
39	unsigned long  	__unused1;
40	unsigned long  	st_mtime;
41	unsigned long  	__unused2;
42	unsigned long  	st_ctime;
43	unsigned long  	__unused3;
44	unsigned long  	__unused4;
45	unsigned long  	__unused5;
46};
47
48/* This matches struct stat64 in glibc2.1. */
49struct stat64 {
50	unsigned long st_dev; 		/* Device.  */
51	unsigned long st_ino;		/* File serial number.  */
52	unsigned int st_mode;		/* File mode.  */
53	unsigned int st_nlink;		/* Link count.  */
54	unsigned int st_uid;		/* User ID of the file's owner.  */
55	unsigned int st_gid;		/* Group ID of the file's group. */
56	unsigned long st_rdev; 		/* Device number, if device.  */
57	unsigned short __pad2;
58	long st_size;			/* Size of file, in bytes.  */
59	int  st_blksize;		/* Optimal block size for I/O.  */
60
61	long st_blocks;			/* Number 512-byte blocks allocated. */
62	int   st_atime;			/* Time of last access.  */
63	unsigned int  __unused1;
64	int   st_mtime;			/* Time of last modification.  */
65	unsigned int  __unused2;
66	int   st_ctime;			/* Time of last status change.  */
67	unsigned int   __unused3;
68	unsigned int   __unused4;
69	unsigned int   __unused5;
70};
71#endif
72