]> git.proxmox.com Git - mirror_lxc.git/commitdiff
remove fork_ns code
authorDaniel Lezcano <daniel.lezcano@free.fr>
Tue, 7 Jul 2009 20:53:05 +0000 (22:53 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 7 Jul 2009 20:53:05 +0000 (22:53 +0200)
This code is no longer used, remove it.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/namespace.h

index 884b2229379df0a17c67967de2c034e848122532..16cbf08a72a09eccac09516222b6dd3ceed6394a 100644 (file)
 #  define CLONE_NEWNET            0x40000000
 #endif
 
-#if __i386__ || __x86_64__ || __powerpc__
-#   define fork_ns(flags) syscall(SYS_clone, flags|SIGCHLD, NULL)
-#elif __s390__
-#   define fork_ns(flags) syscall(SYS_clone, NULL, flags|SIGCHLD)
-#elif __ia64__
-#   define fork_ns(flags) syscall(SYS_clone2, flags|SIGCHLD, NULL)
-#else
-#   error "unsupported architecture"
-#endif
-
-#define unshare_ns(flags) unshare(flags)
-
 extern pid_t lxc_clone(int (*fn)(void *), void *arg, int flags);
 
 #endif