Commit d8be68f3 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Pavel Emelyanov

posix-timer: Add restore structures

Signed-off-by: 's avatarPavel Tikhomirov <snorcht@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9a9424ee
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
#include "vdso.h" #include "vdso.h"
#include <time.h>
#include "protobuf/mm.pb-c.h" #include "protobuf/mm.pb-c.h"
#include "protobuf/vma.pb-c.h" #include "protobuf/vma.pb-c.h"
#include "protobuf/creds.pb-c.h" #include "protobuf/creds.pb-c.h"
...@@ -69,6 +71,12 @@ struct str_posix_timer { ...@@ -69,6 +71,12 @@ struct str_posix_timer {
void * sival_ptr; void * sival_ptr;
}; };
struct restore_posix_timer {
struct str_posix_timer spt;
struct itimerspec val;
int overrun;
};
struct task_restore_core_args; struct task_restore_core_args;
/* Make sure it's pow2 in size */ /* Make sure it's pow2 in size */
...@@ -121,6 +129,9 @@ struct task_restore_core_args { ...@@ -121,6 +129,9 @@ struct task_restore_core_args {
struct itimerval itimers[3]; struct itimerval itimers[3];
int timer_n;
struct restore_posix_timer *posix_timers;
CredsEntry creds; CredsEntry creds;
uint32_t cap_inh[CR_CAP_SIZE]; uint32_t cap_inh[CR_CAP_SIZE];
uint32_t cap_prm[CR_CAP_SIZE]; uint32_t cap_prm[CR_CAP_SIZE];
......
...@@ -274,5 +274,6 @@ static inline bool dir_dots(struct dirent *de) ...@@ -274,5 +274,6 @@ static inline bool dir_dots(struct dirent *de)
extern int read_fd_link(int lfd, char *buf, size_t size); extern int read_fd_link(int lfd, char *buf, size_t size);
#define USEC_PER_SEC 1000000L #define USEC_PER_SEC 1000000L
#define NSEC_PER_SEC 1000000000L
#endif /* __CR_UTIL_H__ */ #endif /* __CR_UTIL_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment