Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
04c3ba15
Commit
04c3ba15
authored
Jul 16, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Add SEMTIMEDOP. Patch from Anton Blanchard.
parent
36d604ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
arch/ppc/kernel/syscalls.c
arch/ppc/kernel/syscalls.c
+7
-5
include/asm-ppc/ipc.h
include/asm-ppc/ipc.h
+1
-0
No files found.
arch/ppc/kernel/syscalls.c
View file @
04c3ba15
...
...
@@ -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
=
-
E
INVAL
;
ret
=
-
E
NOSYS
;
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
);
include/asm-ppc/ipc.h
View file @
04c3ba15
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment