Commit 3b23039f authored by George G. Davis's avatar George G. Davis Committed by Russell King

[ARM PATCH] 2529/1: Add semtimedop support - semop() with a timeout (with...

[ARM PATCH] 2529/1: Add semtimedop support - semop() with a timeout (with demuxed IPC syscall entry added)

Patch from George G. Davis

Adds ARM support for the semtimedop() function - semop with a timeout.
This updates ARM with same support added for other archs long ago.
Also includes sys_semtimeop syscall table entry appended to end of
syscall table as per RMK\'s request.

Signed-off-by: George G. Davis
Signed-off-by: Russell King
parent e6d86761
......@@ -326,6 +326,7 @@ __syscall_start:
.long sys_add_key
/* 310 */ .long sys_request_key
.long sys_keyctl
.long sys_semtimedop
__syscall_end:
.rept NR_syscalls - (__syscall_end - __syscall_start) / 4
......
......@@ -169,7 +169,11 @@ asmlinkage int sys_ipc(uint call, int first, int second, int third,
switch (call) {
case SEMOP:
return sys_semop(first, (struct sembuf __user *)ptr, second);
return sys_semtimedop (first, (struct sembuf __user *)ptr, second, NULL);
case SEMTIMEDOP:
return sys_semtimedop(first, (struct sembuf __user *)ptr, second,
(const struct timespec __user *)fifth);
case SEMGET:
return sys_semget (first, second, third);
case SEMCTL: {
......
......@@ -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
......
......@@ -345,6 +345,10 @@
#define __NR_request_key (__NR_SYSCALL_BASE+310)
#define __NR_keyctl (__NR_SYSCALL_BASE+311)
#if 0 /* reserved for un-muxing ipc */
#define __NR_semtimedop (__NR_SYSCALL_BASE+312)
#endif
/*
* The following SWIs are ARM private.
*/
......
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