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
4416c649
Commit
4416c649
authored
Jan 02, 2012
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscalls: Add sys_msync helper
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@openvz.org
>
parent
e0e934aa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
syscall-codes.h
include/syscall-codes.h
+1
-0
syscall.h
include/syscall.h
+5
-0
No files found.
include/syscall-codes.h
View file @
4416c649
...
...
@@ -33,6 +33,7 @@
#define __NR_set_thread_area 205
#define __NR_get_thread_area 211
#define __NR_restart_syscall 219
#define __NR_msync 227
#else
/* CONFIG_X86_64 */
# error x86-32 bit mode not yet implemented
...
...
include/syscall.h
View file @
4416c649
...
...
@@ -284,6 +284,11 @@ static long always_inline sys_tgkill(long tgid, long pid, int sig)
return
syscall3
(
__NR_tgkill
,
tgid
,
pid
,
(
long
)
sig
);
}
static
long
always_inline
sys_msync
(
void
*
addr
,
unsigned
long
length
,
int
flags
)
{
return
syscall3
(
__NR_msync
,
(
long
)
addr
,
length
,
(
long
)
flags
);
}
#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