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>
13 sys32_ipc(u32 call
, int first
, int second
, int third
,
14 compat_uptr_t ptr
, u32 fifth
)
18 version
= call
>> 16; /* hack for backward compatibility */
23 /* struct sembuf is the same on 32 and 64bit :)) */
24 return sys_semtimedop(first
, compat_ptr(ptr
), second
, NULL
);
26 return compat_sys_semtimedop(first
, compat_ptr(ptr
), second
,
29 return sys_semget(first
, second
, third
);
31 return compat_sys_semctl(first
, second
, third
, compat_ptr(ptr
));
34 return compat_sys_msgsnd(first
, second
, third
, compat_ptr(ptr
));
36 return compat_sys_msgrcv(first
, second
, fifth
, third
,
37 version
, compat_ptr(ptr
));
39 return sys_msgget((key_t
) first
, second
);
41 return compat_sys_msgctl(first
, second
, compat_ptr(ptr
));
44 return compat_sys_shmat(first
, second
, third
, version
,
48 return sys_shmdt(compat_ptr(ptr
));
50 return sys_shmget(first
, (unsigned)second
, third
);
52 return compat_sys_shmctl(first
, second
, compat_ptr(ptr
));