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
1910f4ab
Commit
1910f4ab
authored
Dec 25, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mips: sigsuspend() is essentially the same as rt_sigsuspend() here
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ea5d83db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
16 deletions
+4
-16
arch/mips/kernel/signal.c
arch/mips/kernel/signal.c
+2
-8
arch/mips/kernel/signal32.c
arch/mips/kernel/signal32.c
+2
-8
No files found.
arch/mips/kernel/signal.c
View file @
1910f4ab
...
...
@@ -247,15 +247,9 @@ void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
*/
#ifdef CONFIG_TRAD_SIGNALS
asmlinkage
int
sys_sigsuspend
(
nabi_no_regargs
struct
pt_regs
regs
)
SYSCALL_DEFINE1
(
sigsuspend
,
sigset_t
__user
*
,
uset
)
{
sigset_t
newset
;
sigset_t
__user
*
uset
;
uset
=
(
sigset_t
__user
*
)
regs
.
regs
[
4
];
if
(
copy_from_user
(
&
newset
,
uset
,
sizeof
(
sigset_t
)))
return
-
EFAULT
;
return
sigsuspend
(
&
newset
);
return
sys_rt_sigsuspend
(
uset
,
sizeof
(
sigset_t
));
}
#endif
...
...
arch/mips/kernel/signal32.c
View file @
1910f4ab
...
...
@@ -273,15 +273,9 @@ static inline int get_sigset(sigset_t *kbuf, const compat_sigset_t __user *ubuf)
* Atomically swap in the new signal mask, and wait for a signal.
*/
asmlinkage
int
sys32_sigsuspend
(
nabi_no_regargs
struct
pt_regs
regs
)
asmlinkage
int
sys32_sigsuspend
(
compat_sigset_t
__user
*
uset
)
{
compat_sigset_t
__user
*
uset
;
sigset_t
newset
;
uset
=
(
compat_sigset_t
__user
*
)
regs
.
regs
[
4
];
if
(
get_sigset
(
&
newset
,
uset
))
return
-
EFAULT
;
return
sigsuspend
(
&
newset
);
return
compat_sys_rt_sigsuspend
(
uset
,
sizeof
(
compat_sigset_t
));
}
SYSCALL_DEFINE3
(
32
_sigaction
,
long
,
sig
,
const
struct
sigaction32
__user
*
,
act
,
...
...
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