2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-03 15:55:53 +00:00

syscalls: Introduce sys_kcmp syscall

Though we can use libc's syscall() wrapper
I would prefer to have own implementation
in case if we will need it in non-libc bindable
code.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-02-22 00:37:58 +04:00
parent 7bc585b226
commit cff00de82d
3 changed files with 20 additions and 0 deletions

View File

@@ -182,4 +182,17 @@ typedef struct {
# define PAGE_SIZE 4096
#endif
/* For sys_kcmp */
enum kcmp_type {
KCMP_FILE,
KCMP_VM,
KCMP_FILES,
KCMP_FS,
KCMP_SIGHAND,
KCMP_IO,
KCMP_SYSVSEM,
KCMP_TYPES,
};
#endif /* CR_TYPES_H_ */