patch-1.3.12 linux/arch/alpha/kernel/osf_sys.c
Next file: linux/arch/alpha/kernel/ptrace.c
Previous file: linux/arch/alpha/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Tue Jul 25 10:39:23 1995
- Orig file:
v1.3.11/linux/arch/alpha/kernel/osf_sys.c
- Orig date:
Tue Jun 27 14:11:30 1995
diff -u --recursive --new-file v1.3.11/linux/arch/alpha/kernel/osf_sys.c linux/arch/alpha/kernel/osf_sys.c
@@ -153,26 +153,15 @@
return current->pid;
}
-#define OSF_MAP_ANONYMOUS 0x0010
-#define OSF_MAP_FIXED 0x0100
-#define OSF_MAP_HASSEMAPHORE 0x0200
-#define OSF_MAP_INHERIT 0x0400
-#define OSF_MAP_UNALIGNED 0x0800
-
asmlinkage unsigned long osf_mmap(unsigned long addr, unsigned long len,
- unsigned long prot, unsigned long osf_flags, unsigned long fd,
+ unsigned long prot, unsigned long flags, unsigned long fd,
unsigned long off)
{
struct file * file = NULL;
- unsigned long flags = osf_flags & 0x0f;
- if (osf_flags & (OSF_MAP_HASSEMAPHORE | OSF_MAP_INHERIT | OSF_MAP_UNALIGNED))
+ if (flags & (MAP_HASSEMAPHORE | MAP_INHERIT | MAP_UNALIGNED))
printk("%s: unimplemented OSF mmap flags %04lx\n", current->comm, osf_flags);
- if (osf_flags & OSF_MAP_FIXED)
- flags |= MAP_FIXED;
- if (osf_flags & OSF_MAP_ANONYMOUS)
- flags |= MAP_ANONYMOUS;
- else {
+ if (!(flags & MAP_ANONYMOUS)) {
if (fd >= NR_OPEN || !(file = current->files->fd[fd]))
return -EBADF;
}
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