patch-2.4.0-test9 linux/arch/ppc/kernel/syscalls.c
Next file: linux/arch/ppc/kernel/time.c
Previous file: linux/arch/ppc/kernel/smp.c
Back to the patch index
Back to the overall index
- Lines: 95
- Date:
Sun Sep 17 09:48:07 2000
- Orig file:
v2.4.0-test8/linux/arch/ppc/kernel/syscalls.c
- Orig date:
Tue Jul 18 15:03:56 2000
diff -u --recursive --new-file v2.4.0-test8/linux/arch/ppc/kernel/syscalls.c linux/arch/ppc/kernel/syscalls.c
@@ -45,7 +45,7 @@
{
}
-asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int on)
+int sys_ioperm(unsigned long from, unsigned long num, int on)
{
printk(KERN_ERR "sys_ioperm()\n");
return -EIO;
@@ -74,7 +74,7 @@
*
* This is really horribly ugly.
*/
-asmlinkage int
+int
sys_ipc (uint call, int first, int second, int third, void *ptr, long fifth)
{
int version, ret;
@@ -172,7 +172,7 @@
* sys_pipe() is the normal C calling standard for creating
* a pipe. It's not the way unix traditionally does this, though.
*/
-asmlinkage int sys_pipe(int *fildes)
+int sys_pipe(int *fildes)
{
int fd[2];
int error;
@@ -185,19 +185,19 @@
return error;
}
-asmlinkage unsigned long sys_mmap(unsigned long addr, size_t len,
- unsigned long prot, unsigned long flags,
- unsigned long fd, off_t offset)
+unsigned long sys_mmap(unsigned long addr, size_t len,
+ unsigned long prot, unsigned long flags,
+ unsigned long fd, off_t offset)
{
struct file * file = NULL;
int ret = -EBADF;
+ flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
if (!(flags & MAP_ANONYMOUS)) {
if (!(file = fget(fd)))
goto out;
}
- flags &= ~(MAP_EXECUTABLE | MAP_DENYWRITE);
down(¤t->mm->mmap_sem);
ret = do_mmap(file, addr, len, prot, flags, offset);
up(¤t->mm->mmap_sem);
@@ -207,7 +207,7 @@
return ret;
}
-extern asmlinkage int sys_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
+extern int sys_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
/*
* Due to some executables calling the wrong select we sometimes
@@ -215,7 +215,7 @@
* (a single ptr to them all args passed) then calls
* sys_select() with the appropriate args. -- Cort
*/
-asmlinkage int
+int
ppc_select(int n, fd_set *inp, fd_set *outp, fd_set *exp, struct timeval *tvp)
{
if ( (unsigned long)n >= 4096 )
@@ -232,14 +232,14 @@
return sys_select(n, inp, outp, exp, tvp);
}
-asmlinkage int sys_pause(void)
+int sys_pause(void)
{
current->state = TASK_INTERRUPTIBLE;
schedule();
return -ERESTARTNOHAND;
}
-asmlinkage int sys_uname(struct old_utsname * name)
+int sys_uname(struct old_utsname * name)
{
int err = -EFAULT;
@@ -250,7 +250,7 @@
return err;
}
-asmlinkage int sys_olduname(struct oldold_utsname * name)
+int sys_olduname(struct oldold_utsname * name)
{
int error;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)