patch-2.4.0-test8 linux/arch/sparc/kernel/solaris.c

Next file: linux/arch/sparc/kernel/sparc_ksyms.c
Previous file: linux/arch/sparc/kernel/smp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test7/linux/arch/sparc/kernel/solaris.c linux/arch/sparc/kernel/solaris.c
@@ -1,39 +0,0 @@
-/* solaris.c: Solaris binary emulation, whee...
- *
- * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
- */
-
-#include <linux/kernel.h>
-#include <linux/types.h>
-#include <linux/fcntl.h>
-#include <linux/sched.h>
-#include <linux/smp.h>
-#include <linux/smp_lock.h>
-
-#include <asm/errno.h>
-#include <asm/solerrno.h>
-
-asmlinkage int solaris_open(const char *filename, int flags, int mode)
-{
-	int newflags;
-	int ret;
-
-	lock_kernel();
-	newflags = flags & 0xf;
-	flags &= ~0xf;
-	if(flags & 0x8050)
-		newflags |= FASYNC;
-	if(flags & 0x80)
-		newflags |= O_NONBLOCK;
-	if(flags & 0x100)
-		newflags |= O_CREAT;
-	if(flags & 0x200)
-		newflags |= O_TRUNC;
-	if(flags & 0x400)
-		newflags |= O_EXCL;
-	if(flags & 0x800)
-		newflags |= O_NOCTTY;
-	ret = sys_open(filename, newflags, mode);
-	unlock_kernel();
-	return ret;
-}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)