mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
posix-timer: Add restore structures
Signed-off-by: Pavel Tikhomirov <snorcht@gmail.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
9a9424ee10
commit
d8be68f3d1
@@ -16,6 +16,8 @@
|
||||
|
||||
#include "vdso.h"
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "protobuf/mm.pb-c.h"
|
||||
#include "protobuf/vma.pb-c.h"
|
||||
#include "protobuf/creds.pb-c.h"
|
||||
@@ -69,6 +71,12 @@ struct str_posix_timer {
|
||||
void * sival_ptr;
|
||||
};
|
||||
|
||||
struct restore_posix_timer {
|
||||
struct str_posix_timer spt;
|
||||
struct itimerspec val;
|
||||
int overrun;
|
||||
};
|
||||
|
||||
struct task_restore_core_args;
|
||||
|
||||
/* Make sure it's pow2 in size */
|
||||
@@ -121,6 +129,9 @@ struct task_restore_core_args {
|
||||
|
||||
struct itimerval itimers[3];
|
||||
|
||||
int timer_n;
|
||||
struct restore_posix_timer *posix_timers;
|
||||
|
||||
CredsEntry creds;
|
||||
uint32_t cap_inh[CR_CAP_SIZE];
|
||||
uint32_t cap_prm[CR_CAP_SIZE];
|
||||
|
@@ -274,5 +274,6 @@ static inline bool dir_dots(struct dirent *de)
|
||||
extern int read_fd_link(int lfd, char *buf, size_t size);
|
||||
|
||||
#define USEC_PER_SEC 1000000L
|
||||
#define NSEC_PER_SEC 1000000000L
|
||||
|
||||
#endif /* __CR_UTIL_H__ */
|
||||
|
Reference in New Issue
Block a user