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
b9febd52
Commit
b9febd52
authored
Dec 01, 2011
by
Cyrill Gorcunov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: Add sys_flock helper
Signed-off-by:
Cyrill Gorcunov
<
gorcunov@openvz.org
>
parent
8d36f087
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 @
b9febd52
...
...
@@ -22,6 +22,7 @@
#define __NR_getpid 39
#define __NR_clone 56
#define __NR_exit 60
#define __NR_flock 73
#define __NR_unlink 87
#define __NR__sysctl 156
#define __NR_prctl 157
...
...
include/syscall.h
View file @
b9febd52
...
...
@@ -261,6 +261,11 @@ static always_inline long sys_futex(u32 *uaddr, int op, u32 val,
(
unsigned
long
)
val3
);
}
static
always_inline
long
sys_flock
(
unsigned
long
fd
,
unsigned
long
cmd
)
{
return
syscall2
(
__NR_flock
,
fd
,
cmd
);
}
static
void
always_inline
local_sleep
(
long
seconds
)
{
struct
timespec
req
,
rem
;
...
...
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