patch-1.3.65 linux/fs/stat.c

Next file: linux/include/asm-alpha/apecs.h
Previous file: linux/fs/open.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.64/linux/fs/stat.c linux/fs/stat.c
@@ -14,6 +14,12 @@
 
 #include <asm/segment.h>
 
+#ifndef __alpha__
+
+/*
+ * For backward compatibility?  Maybe this should be moved
+ * into arch/i386 instead?
+ */
 static void cp_old_stat(struct inode * inode, struct old_stat * statbuf)
 {
 	struct old_stat tmp;
@@ -36,6 +42,8 @@
 	memcpy_tofs(statbuf,&tmp,sizeof(tmp));
 }
 
+#endif
+
 static void cp_new_stat(struct inode * inode, struct new_stat * statbuf)
 {
 	struct new_stat tmp;
@@ -94,6 +102,11 @@
 	memcpy_tofs(statbuf,&tmp,sizeof(tmp));
 }
 
+#ifndef __alpha__
+/*
+ * For backward compatibility?  Maybe this should be moved
+ * into arch/i386 instead?
+ */
 asmlinkage int sys_stat(char * filename, struct old_stat * statbuf)
 {
 	struct inode * inode;
@@ -109,6 +122,7 @@
 	iput(inode);
 	return 0;
 }
+#endif
 
 asmlinkage int sys_newstat(char * filename, struct new_stat * statbuf)
 {
@@ -126,6 +140,12 @@
 	return 0;
 }
 
+#ifndef __alpha__
+
+/*
+ * For backward compatibility?  Maybe this should be moved
+ * into arch/i386 instead?
+ */
 asmlinkage int sys_lstat(char * filename, struct old_stat * statbuf)
 {
 	struct inode * inode;
@@ -142,6 +162,8 @@
 	return 0;
 }
 
+#endif
+
 asmlinkage int sys_newlstat(char * filename, struct new_stat * statbuf)
 {
 	struct inode * inode;
@@ -158,6 +180,12 @@
 	return 0;
 }
 
+#ifndef __alpha__
+
+/*
+ * For backward compatibility?  Maybe this should be moved
+ * into arch/i386 instead?
+ */
 asmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf)
 {
 	struct file * f;
@@ -172,6 +200,8 @@
 	cp_old_stat(inode,statbuf);
 	return 0;
 }
+
+#endif
 
 asmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this