Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Chen Yisong
lxc
Commits
344b8ee2
Unverified
Commit
344b8ee2
authored
Oct 22, 2019
by
Christian Brauner
Committed by
GitHub
Oct 22, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3168 from havmind/memfd_create_powerpc
syscall_wrappers: rename internal memfd_create to memfd_create_lxc
parents
6637fb9f
40b06c78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
syscall_wrappers.h
src/lxc/syscall_wrappers.h
+2
-1
No files found.
src/lxc/syscall_wrappers.h
View file @
344b8ee2
...
@@ -74,7 +74,7 @@ static inline long __keyctl(int cmd, unsigned long arg2, unsigned long arg3,
...
@@ -74,7 +74,7 @@ static inline long __keyctl(int cmd, unsigned long arg2, unsigned long arg3,
#endif
#endif
#ifndef HAVE_MEMFD_CREATE
#ifndef HAVE_MEMFD_CREATE
static
inline
int
memfd_create
(
const
char
*
name
,
unsigned
int
flags
)
{
static
inline
int
memfd_create
_lxc
(
const
char
*
name
,
unsigned
int
flags
)
{
#ifndef __NR_memfd_create
#ifndef __NR_memfd_create
#if defined __i386__
#if defined __i386__
#define __NR_memfd_create 356
#define __NR_memfd_create 356
...
@@ -113,6 +113,7 @@ static inline int memfd_create(const char *name, unsigned int flags) {
...
@@ -113,6 +113,7 @@ static inline int memfd_create(const char *name, unsigned int flags) {
return
-
1
;
return
-
1
;
#endif
#endif
}
}
#define memfd_create memfd_create_lxc
#else
#else
extern
int
memfd_create
(
const
char
*
name
,
unsigned
int
flags
);
extern
int
memfd_create
(
const
char
*
name
,
unsigned
int
flags
);
#endif
#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