diff --git a/include/restorer.h b/include/restorer.h index d97d7410d..b62981df5 100644 --- a/include/restorer.h +++ b/include/restorer.h @@ -16,6 +16,8 @@ #include "vdso.h" +#include + #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 e8d0231d0..d79d6e562 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__ */