[CRIU] [PATCH 07/12] posix-timer: Add restore structures
Pavel Tikhomirov
snorcht at gmail.com
Thu Jun 27 12:32:23 EDT 2013
Signed-off-by: Pavel Tikhomirov <snorcht at gmail.com>
---
include/restorer.h | 11 +++++++++++
include/util.h | 1 +
2 files changed, 12 insertions(+)
diff --git a/include/restorer.h b/include/restorer.h
index d97d741..b62981d 100644
--- a/include/restorer.h
+++ b/include/restorer.h
@@ -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];
diff --git a/include/util.h b/include/util.h
index e8d0231..d79d6e5 100644
--- a/include/util.h
+++ b/include/util.h
@@ -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__ */
--
1.7.9.5
More information about the CRIU
mailing list