criu/include
Andrey Vagin 014841825a restorer: isolate restorer like parasite (v4)
Before this patch the restorer's code is linked in crtools and then
we copied functions from it. In this case all function should
be inline and we can't use a global variables.

I suggest to make it like parasite. The restorer's code is isolated in
own file and will be copied wholly.  The restorer's code is compiled as
position-independent code, so we can use functions and global variale
(E.g. to save descriptor for log messages).

v2: correct indentions in a separate patch
v3: introduce a variable restore_task_exec_start symmetrical to
    restore_thread_exec_start
v4: don't give command in restorer_thread()

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
2012-01-17 18:08:03 +03:00
..
atomic.h Gather futex helpers into lock.h 2011-12-26 23:54:18 +04:00
bitops.h restore: Add mutexes via futex syscall and order threads creation 2011-11-18 16:09:01 +04:00
compiler.h Add ALIGN helper 2011-11-16 18:16:12 +04:00
crtools.h crtools: Make close_cr_fdset being safe to be called with closed fd-set 2012-01-12 21:25:19 +04:00
files.h restore: Learn to work with shared struct file-s 2012-01-11 16:01:44 +04:00
image.h fdinfo: fd_is_special helper for maps and cwd 2012-01-16 23:51:12 +04:00
libnetlink.h net: Define named constant for nlmsg_seq 2011-12-27 20:13:18 +04:00
list.h Initial commit 2011-09-23 12:00:45 +04:00
lock.h lock: Add cr_wait_init helper 2012-01-04 16:40:13 +04:00
log.h Move logging functions to log.c 2011-12-19 18:52:50 +04:00
parasite-syscall.h parasite: Embed vma_area into control block 2012-01-13 20:16:20 +04:00
parasite.h parasite: Make max size for path being PATH_MAX 2011-12-19 15:34:37 +04:00
proc_parse.h proc_pase: Make sure we may scan up to 15 symbols in name 2012-01-15 22:37:17 +04:00
ptrace.h dump: Drop unneeded #includes 2011-12-19 23:18:17 +04:00
restorer.h restorer: isolate restorer like parasite (v4) 2012-01-17 18:08:03 +03:00
sockets.h Merge branch '@xemul' into dev 2012-01-13 21:39:14 +04:00
syscall-codes.h syscalls: Add sys_msync helper 2012-01-04 16:40:35 +04:00
syscall.h syscalls: Add sys_msync helper 2012-01-04 16:40:35 +04:00
types.h dump: Drop unneeded #includes 2011-12-19 23:18:17 +04:00
unix_diag.h sockets: Update unix_diag.h 2012-01-10 17:26:50 +04:00
util.h restorer: don't use printk in restorer 2012-01-17 18:08:03 +03:00