1 #include <linux/kernel.h>
2 #include <linux/spinlock.h>
3 #include <linux/list.h>
4 #include <linux/syscalls.h>
5 #include <linux/time.h>
10 #include <linux/compat.h>
12 #include <asm-i386/ipc.h>
15 sys32_ipc(u32 call, int first, int second, int third,
16 compat_uptr_t ptr, u32 fifth)
20 version = call >> 16; /* hack for backward compatibility */
25 /* struct sembuf is the same on 32 and 64bit :)) */
26 return sys_semtimedop(first, compat_ptr(ptr), second, NULL);
28 return compat_sys_semtimedop(first, compat_ptr(ptr), second,
31 return sys_semget(first, second, third);
33 return compat_sys_semctl(first, second, third, compat_ptr(ptr));
36 return compat_sys_msgsnd(first, second, third, compat_ptr(ptr));
38 return compat_sys_msgrcv(first, second, fifth, third,
39 version, compat_ptr(ptr));
41 return sys_msgget((key_t) first, second);
43 return compat_sys_msgctl(first, second, compat_ptr(ptr));
46 return compat_sys_shmat(first, second, third, version,
50 return sys_shmdt(compat_ptr(ptr));
52 return sys_shmget(first, (unsigned)second, third);
54 return compat_sys_shmctl(first, second, compat_ptr(ptr));