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
e8cdf57f
Commit
e8cdf57f
authored
Apr 10, 2012
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syscall: Add fcntl syscall and F_GETFD cmd
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
f999b8cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
syscall-codes.h
include/syscall-codes.h
+1
-0
syscall.h
include/syscall.h
+9
-0
No files found.
include/syscall-codes.h
View file @
e8cdf57f
...
...
@@ -34,6 +34,7 @@
#define __NR_exit 60
#define __NR_wait4 61
#define __NR_kill 62
#define __NR_fcntl 72
#define __NR_flock 73
#define __NR_unlink 87
#define __NR_setresuid 117
...
...
include/syscall.h
View file @
e8cdf57f
...
...
@@ -414,6 +414,15 @@ sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx
return
syscall5
(
__NR_kcmp
,
(
long
)
pid1
,
(
long
)
pid2
,
(
long
)
type
,
idx1
,
idx2
);
}
static
long
always_inline
sys_fcntl
(
int
fd
,
int
type
,
long
arg
)
{
return
syscall3
(
__NR_fcntl
,
(
long
)
fd
,
(
long
)
type
,
(
long
)
arg
);
}
#ifndef F_GETFD
#define F_GETFD 1
#endif
#ifndef CLONE_NEWPID
#define CLONE_NEWPID 0x20000000
#endif
...
...
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