Commit 04c3ba15 authored by Paul Mackerras's avatar Paul Mackerras

PPC32: Add SEMTIMEDOP. Patch from Anton Blanchard.

parent 36d604ee
......@@ -20,7 +20,6 @@
*
*/
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/mm.h>
......@@ -59,10 +58,15 @@ sys_ipc (uint call, int first, int second, int third, void __user *ptr, long fif
version = call >> 16; /* hack for backward compatibility */
call &= 0xffff;
ret = -EINVAL;
ret = -ENOSYS;
switch (call) {
case SEMOP:
ret = sys_semop (first, (struct sembuf __user *)ptr, second);
ret = sys_semtimedop (first, (struct sembuf __user *)ptr,
second, NULL);
break;
case SEMTIMEDOP:
ret = sys_semtimedop (first, (struct sembuf __user *)ptr,
second, (const struct timespec *) fifth);
break;
case SEMGET:
ret = sys_semget (first, second, third);
......@@ -258,6 +262,4 @@ int sys_olduname(struct oldold_utsname __user * name)
return error;
}
cond_syscall(sys_pciconfig_read);
cond_syscall(sys_pciconfig_write);
cond_syscall(sys_pciconfig_iobase);
......@@ -14,6 +14,7 @@ struct ipc_kludge {
#define SEMOP 1
#define SEMGET 2
#define SEMCTL 3
#define SEMTIMEDOP 4
#define MSGSND 11
#define MSGRCV 12
#define MSGGET 13
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment