patch-2.1.36 linux/include/asm-sparc64/stat.h

Next file: linux/include/asm-sparc64/statfs.h
Previous file: linux/include/asm-sparc64/spinlock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.35/linux/include/asm-sparc64/stat.h linux/include/asm-sparc64/stat.h
@@ -1,41 +1,26 @@
-/* $Id: stat.h,v 1.1 1996/12/26 14:22:31 davem Exp $ */
+/* $Id: stat.h,v 1.3 1997/04/18 14:34:43 jj Exp $ */
 #ifndef _SPARC64_STAT_H
 #define _SPARC64_STAT_H
 
 #include <linux/types.h>
 
-struct __old_kernel_stat {
-	unsigned short st_dev;
-	unsigned short st_ino;
-	unsigned short st_mode;
-	unsigned short st_nlink;
-	unsigned short st_uid;
-	unsigned short st_gid;
-	unsigned short st_rdev;
-	unsigned long  st_size;
-	unsigned long  st_atime;
-	unsigned long  st_mtime;
-	unsigned long  st_ctime;
-};
-
-/* XXX Fix this for full backwards 32-bit compat. */
 struct stat32 {
-	dev_t   st_dev;
-	ino_t   st_ino;
-	mode_t  st_mode;
-	short   st_nlink;
-	uid_t   st_uid;
-	gid_t   st_gid;
-	dev_t   st_rdev;
-	off_t   st_size;
-	time_t  st_atime;
-	unsigned int  __unused1;
-	time_t  st_mtime;
-	unsigned int  __unused2;
-	time_t  st_ctime;
-	unsigned int  __unused3;
-	off_t   st_blksize;
-	off_t   st_blocks;
+	__kernel_dev_t32   st_dev;
+	__kernel_ino_t32   st_ino;
+	__kernel_mode_t32  st_mode;
+	short   	   st_nlink;
+	__kernel_uid_t32   st_uid;
+	__kernel_gid_t32   st_gid;
+	__kernel_dev_t32   st_rdev;
+	__kernel_off_t32   st_size;
+	__kernel_time_t32  st_atime;
+	unsigned int       __unused1;
+	__kernel_time_t32  st_mtime;
+	unsigned int       __unused2;
+	__kernel_time_t32  st_ctime;
+	unsigned int       __unused3;
+	__kernel_off_t32   st_blksize;
+	__kernel_off_t32   st_blocks;
 	unsigned int  __unused4[2];
 };
 
@@ -49,11 +34,8 @@
 	dev_t   st_rdev;
 	off_t   st_size;
 	time_t  st_atime;
-	unsigned long  __unused1;
 	time_t  st_mtime;
-	unsigned long  __unused2;
 	time_t  st_ctime;
-	unsigned long  __unused3;
 	off_t   st_blksize;
 	off_t   st_blocks;
 	unsigned long  __unused4[2];

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov