]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add x86_64 syscall
authordlezcano <dlezcano>
Sat, 4 Oct 2008 19:48:29 +0000 (19:48 +0000)
committerdlezcano <dlezcano>
Sat, 4 Oct 2008 19:48:29 +0000 (19:48 +0000)
src/lxc/checkpoint.c
src/lxc/restart.c

index bbb60398dc7d43861ae7fb173a59b20c2c55e3bd..ee9579480249664cba984df92f2b5ed838664623 100644 (file)
@@ -45,6 +45,12 @@ static inline long sys_checkpoint(pid_t pid, int fd, unsigned long flags)
 {
        return syscall(__NR_checkpoint, pid, fd, flags);
 }
+#elif __x86_64__
+#    define __NR_checkpoint 295
+static inline long sys_checkpoint(pid_t pid, int fd, unsigned long 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)
index d7cf6eb12c8f157b80797ab36928e54e02720570..6ab26aac81e92636ee4afdaa74d3eb43bb3bd982 100644 (file)
@@ -49,6 +49,12 @@ static inline long sys_restart(pid_t pid, int fd, unsigned long flags)
 {
        return syscall(__NR_restart, pid, fd, flags);
 }
+#elif __x86_64__
+#    define __NR_restart 296
+static inline long sys_restart(pid_t pid, int fd, unsigned long flags)
+{
+        return syscall(__NR_restart, pid, fd, flags);
+}
 #else
 static inline long sys_restart(pid_t pid, int fd, unsigned long flags)
 {