patch-2.3.35 linux/arch/sparc64/solaris/fs.c
Next file: linux/arch/sparc64/solaris/ioctl.c
Previous file: linux/arch/sparc64/prom/ranges.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Mon Dec 20 22:05:52 1999
- Orig file:
v2.3.34/linux/arch/sparc64/solaris/fs.c
- Orig date:
Sat May 15 11:12:09 1999
diff -u --recursive --new-file v2.3.34/linux/arch/sparc64/solaris/fs.c linux/arch/sparc64/solaris/fs.c
@@ -1,7 +1,10 @@
-/* $Id: fs.c,v 1.13 1999/05/14 07:24:37 davem Exp $
+/* $Id: fs.c,v 1.14 1999/09/22 09:28:49 davem Exp $
* fs.c: fs related syscall emulation for Solaris
*
* Copyright (C) 1997,1998 Jakub Jelinek ([email protected])
+ *
+ * 1999-08-19 Implemented solaris F_FREESP (truncate)
+ * fcntl, by Jason Rappleye ([email protected])
*/
#include <linux/types.h>
@@ -661,7 +664,16 @@
__put_user_ret (0, &((struct sol_flock *)A(arg))->l_sysid, -EFAULT);
return ret;
}
- }
+ case SOL_F_FREESP:
+ {
+ int length;
+ int (*sys_newftruncate)(unsigned int, unsigned long)=
+ (int (*)(unsigned int, unsigned long))SYS(ftruncate);
+
+ get_user_ret(length, &((struct sol_flock*)A(arg))->l_start, -EFAULT);
+ return sys_newftruncate(fd, length);
+ }
+ };
return -EINVAL;
}
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])