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 asmlinkage long sys32_ipc(u32 call, int first, int second, int third,
13 compat_uptr_t ptr, u32 fifth)
17 version = call >> 16; /* hack for backward compatibility */
22 /* struct sembuf is the same on 32 and 64bit :)) */
23 return sys_semtimedop(first, compat_ptr(ptr), second, NULL);
25 return compat_sys_semtimedop(first, compat_ptr(ptr), second,
28 return sys_semget(first, second, third);
30 return compat_sys_semctl(first, second, third, compat_ptr(ptr));
33 return compat_sys_msgsnd(first, second, third, compat_ptr(ptr));
35 return compat_sys_msgrcv(first, second, fifth, third,
36 version, compat_ptr(ptr));
38 return sys_msgget((key_t) first, second);
40 return compat_sys_msgctl(first, second, compat_ptr(ptr));
43 return compat_sys_shmat(first, second, third, version,
46 return sys_shmdt(compat_ptr(ptr));
48 return sys_shmget(first, (unsigned)second, third);
50 return compat_sys_shmctl(first, second, compat_ptr(ptr));