Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
76df6d9e
Commit
76df6d9e
authored
Nov 08, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscalls: Add sys_prctl helper
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@gmail.com
>
parent
b50ee4a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
syscall.h
include/syscall.h
+6
-0
No files found.
include/syscall.h
View file @
76df6d9e
...
...
@@ -226,6 +226,12 @@ static always_inline long sys_arch_prctl(int code, void *addr)
return
syscall2
(
__NR_arch_prctl
,
code
,
(
unsigned
long
)
addr
);
}
static
always_inline
long
sys_prctl
(
int
code
,
unsigned
long
arg2
,
unsigned
long
arg3
,
unsigned
long
arg4
,
unsigned
long
arg5
)
{
return
syscall5
(
__NR_prctl
,
code
,
arg2
,
arg3
,
arg4
,
arg5
);
}
#else
/* CONFIG_X86_64 */
# error x86-32 bit mode not yet implemented
#endif
/* CONFIG_X86_64 */
...
...
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