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
682d7e54
Commit
682d7e54
authored
Sep 19, 2008
by
dlezcano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display a warning when the architecture is not supported for checkpoint/restart.
parent
925aaa31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
checkpoint.c
src/lxc/checkpoint.c
+9
-3
restart.c
src/lxc/restart.c
+8
-3
No files found.
src/lxc/checkpoint.c
View file @
682d7e54
...
@@ -41,13 +41,19 @@
...
@@ -41,13 +41,19 @@
#if __i386__
#if __i386__
# define __NR_checkpoint 334
# define __NR_checkpoint 334
#else
# error "Architecture not supported"
#endif
static
inline
long
sys_checkpoint
(
pid_t
pid
,
int
fd
,
unsigned
long
flags
)
static
inline
long
sys_checkpoint
(
pid_t
pid
,
int
fd
,
unsigned
long
flags
)
{
{
return
syscall
(
__NR_checkpoint
,
pid
,
fd
,
flags
);
return
syscall
(
__NR_checkpoint
,
pid
,
fd
,
flags
);
}
}
#else
# warning "Architecture not supported for checkpoint"
static
inline
long
sys_checkpoint
(
pid_t
pid
,
int
fd
,
unsigned
long
flags
)
{
errno
=
ENOSYS
;
return
-
1
;
}
#endif
int
lxc_checkpoint
(
const
char
*
name
,
int
cfd
,
unsigned
long
flags
)
int
lxc_checkpoint
(
const
char
*
name
,
int
cfd
,
unsigned
long
flags
)
{
{
...
...
src/lxc/restart.c
View file @
682d7e54
...
@@ -44,13 +44,18 @@ LXC_TTY_HANDLER(SIGQUIT);
...
@@ -44,13 +44,18 @@ LXC_TTY_HANDLER(SIGQUIT);
#if __i386__
#if __i386__
# define __NR_restart 335
# define __NR_restart 335
#else
# error "Architecture not supported"
#endif
static
inline
long
sys_restart
(
pid_t
pid
,
int
fd
,
unsigned
long
flags
)
static
inline
long
sys_restart
(
pid_t
pid
,
int
fd
,
unsigned
long
flags
)
{
{
return
syscall
(
__NR_restart
,
pid
,
fd
,
flags
);
return
syscall
(
__NR_restart
,
pid
,
fd
,
flags
);
}
}
#else
static
inline
long
sys_restart
(
pid_t
pid
,
int
fd
,
unsigned
long
flags
)
{
errno
=
ENOSYS
;
return
-
1
;
}
# warning "Architecture not supported for restart syscall"
#endif
int
lxc_restart
(
const
char
*
name
,
int
cfd
,
unsigned
long
flags
)
int
lxc_restart
(
const
char
*
name
,
int
cfd
,
unsigned
long
flags
)
{
{
...
...
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