aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-02-24 16:12:24 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-02-24 16:12:24 -0800
commit0bab064232c278cb484b6aaa790b9c626ab6524b (patch)
tree3c997ffac693fa0e1f157273fad383b6a0a752b2 /ipc
parent091704ef34f2e6aed8436877aeb434125b002c18 (diff)
downloadhistory-0bab064232c278cb484b6aaa790b9c626ab6524b.tar.gz
[PATCH] add syscalls.h
From: "Randy.Dunlap" <rddunlap@osdl.org> Add syscalls.h, which contains prototypes for the kernel's system calls. Replace open-coded declarations all over the place. This patch found a couple of prior bugs. It appears to be more important with -mregparm=3 as we discover more asmlinkage mismatches. Some syscalls have arch-dependent arguments, so their prototypes are in the arch-specific unistd.h. Maybe it should have been asm/syscalls.h, but there were already arch-specific syscall prototypes in asm/unistd.h... Tested on x86, ia64, x86_64, ppc64, s390 and sparc64. May cause trivial-to-fix build breakage on other architectures.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/sem.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 91dfedf49b6710..5b00bea3580e82 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1011,11 +1011,6 @@ out:
return un;
}
-asmlinkage long sys_semop (int semid, struct sembuf __user *tsops, unsigned nsops)
-{
- return sys_semtimedop(semid, tsops, nsops, NULL);
-}
-
asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops,
unsigned nsops, const struct timespec __user *timeout)
{
@@ -1181,6 +1176,11 @@ out_free:
return error;
}
+asmlinkage long sys_semop (int semid, struct sembuf __user *tsops, unsigned nsops)
+{
+ return sys_semtimedop(semid, tsops, nsops, NULL);
+}
+
/* If CLONE_SYSVSEM is set, establish sharing of SEM_UNDO state between
* parent and child tasks.
*