criu/include
Pavel Emelyanov 164ccc095f crtools: R/W API rewrite
Kill all the macros for reading/writing image parts. New API looks like

* write_img_buf/write_img
  Write an object into an image. Reports 0 for OK, -1 for error. The _buf
  version accepts object size as an argument, the other one uses sizeof()

* read_img_buf/read_img
  Reads an object from image. Reports 0 for OK, -1 for error or EOF.

* read_img_buf_eof/read_img
  Reads an object from image. Reports 1 for OK, 0 for EOF and -1 for error.
  This is not symmetrical with the previous one, but it was done deliberately
  to make it possible to write code like

  ret = read_img_bug_eof();
  if (ret <= 0)
	return ret; /* 0 means OK, all is done, -1 means error was met */.

  ... /* 1 means object was read, can proceed */

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
2012-01-23 01:43:10 +04: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 dump: Images opening rework 2012-01-23 01:42:51 +04:00
files.h restore: Learn to work with shared struct file-s 2012-01-11 16:01:44 +04:00
image.h crtools: Reformat core_entry 2012-01-23 01:43:00 +04:00
inet_diag.h sockets: Rename struct inet_diag_req to inet_diag_req_v2 2012-01-20 16:40:56 +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 a new primitive cr_wait_until_greater (v2) 2012-01-19 16:16:58 +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-log.h restorer: move log descriptor from crtools (v2) 2012-01-17 18:08:03 +03:00
restorer.h restore: Drop real_pid member from shmem_info structure 2012-01-20 13:08:06 +04:00
sockets.h show: inet sockets dump parsing support added 2012-01-18 12:39:04 +04:00
syscall-codes.h syscall: add sys_kill 2012-01-19 16:16:58 +04:00
syscall.h restore: detect that someone failed (v2) 2012-01-19 16:16:58 +04:00
types.h restore: detect that someone failed (v2) 2012-01-19 16:16:58 +04:00
unix_diag.h sockets: Update unix_diag.h 2012-01-10 17:26:50 +04:00
util.h crtools: R/W API rewrite 2012-01-23 01:43:10 +04:00