2012-12-24 15:36:14 +04:00
|
|
|
#ifndef __CR_CRTOOLS_H__
|
|
|
|
#define __CR_CRTOOLS_H__
|
2011-09-23 12:00:45 +04:00
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
2012-05-31 14:50:00 +04:00
|
|
|
#include "list.h"
|
2013-01-09 17:02:47 +04:00
|
|
|
#include "asm/types.h"
|
2013-11-05 20:17:47 +04:00
|
|
|
#include "servicefd.h"
|
2011-09-23 12:00:45 +04:00
|
|
|
|
2014-09-16 13:34:00 +04:00
|
|
|
#define CR_FD_PERM (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)
|
2011-09-23 12:00:45 +04:00
|
|
|
|
2013-11-15 14:04:48 +04:00
|
|
|
extern int check_img_inventory(void);
|
|
|
|
extern int write_img_inventory(void);
|
|
|
|
extern void kill_inventory(void);
|
2012-07-19 17:37:25 +04:00
|
|
|
|
2014-06-05 20:16:41 +04:00
|
|
|
#define LAST_PID_PATH "sys/kernel/ns_last_pid"
|
2011-12-01 18:21:17 +04:00
|
|
|
|
2013-11-15 14:04:48 +04:00
|
|
|
extern int cr_dump_tasks(pid_t pid);
|
|
|
|
extern int cr_pre_dump_tasks(pid_t pid);
|
|
|
|
extern int cr_restore_tasks(void);
|
|
|
|
extern int cr_show(int pid);
|
|
|
|
extern int convert_to_elf(char *elf_path, int fd_core);
|
|
|
|
extern int cr_check(void);
|
|
|
|
extern int cr_exec(int pid, char **opts);
|
2013-12-17 19:27:07 +04:00
|
|
|
extern int cr_dedup(void);
|
2011-09-23 12:00:45 +04:00
|
|
|
|
2015-01-22 18:55:34 +03:00
|
|
|
extern int check_add_feature(char *arg);
|
2013-09-28 06:16:17 +04:00
|
|
|
|
2012-12-25 22:40:24 +04:00
|
|
|
#endif /* __CR_CRTOOLS_H__ */
|