patch-2.4.22 linux-2.4.22/arch/ppc/kernel/syscalls.c
Next file: linux-2.4.22/arch/ppc/kernel/temp.c
Previous file: linux-2.4.22/arch/ppc/kernel/softemu8xx.c
Back to the patch index
Back to the overall index
- Lines: 36
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/ppc/kernel/syscalls.c
- Orig date:
2003-06-13 07:51:31.000000000 -0700
diff -urN linux-2.4.21/arch/ppc/kernel/syscalls.c linux-2.4.22/arch/ppc/kernel/syscalls.c
@@ -1,7 +1,7 @@
/*
* linux/arch/ppc/kernel/sys_ppc.c
*
- * PowerPC version
+ * PowerPC version
* Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
*
* Derived from "arch/i386/kernel/sys_i386.c"
@@ -136,7 +136,7 @@
break;
}
break;
- case SHMDT:
+ case SHMDT:
ret = sys_shmdt ((char *)ptr);
break;
case SHMGET:
@@ -180,7 +180,7 @@
if (!(file = fget(fd)))
goto out;
}
-
+
down_write(¤t->mm->mmap_sem);
ret = do_mmap_pgoff(file, addr, len, prot, flags, pgoff);
up_write(¤t->mm->mmap_sem);
@@ -263,7 +263,7 @@
return -EFAULT;
if (!access_ok(VERIFY_WRITE,name,sizeof(struct oldold_utsname)))
return -EFAULT;
-
+
down_read(&uts_sem);
error = __copy_to_user(&name->sysname,&system_utsname.sysname,__OLD_UTS_LEN);
error -= __put_user(0,name->sysname+__OLD_UTS_LEN);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)