Commit a6edbcf6 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

crtools: don't include restorer.h in proc_parse.h

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 565eb013
...@@ -63,6 +63,7 @@ ...@@ -63,6 +63,7 @@
#include "mem.h" #include "mem.h"
#include "vdso.h" #include "vdso.h"
#include "page-pipe.h" #include "page-pipe.h"
#include "posix-timer.h"
#include "vdso.h" #include "vdso.h"
#include "cr-service.h" #include "cr-service.h"
......
#ifndef __CR_PROC_POSIX_TIMER_H__
#define __CR_PROC_POSIX_TIMER_H__
struct str_posix_timer {
long it_id;
int clock_id;
int si_signo;
int it_sigev_notify;
void * sival_ptr;
};
struct proc_posix_timer {
struct list_head list;
struct str_posix_timer spt;
};
struct proc_posix_timers_stat {
int timer_n;
struct list_head timers;
};
extern int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat * args);
#endif
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
#include <sys/types.h> #include <sys/types.h>
#include "asm/types.h" #include "asm/types.h"
#include "restorer.h"
#include "image.h" #include "image.h"
#include "list.h" #include "list.h"
...@@ -128,16 +127,6 @@ struct mount_info { ...@@ -128,16 +127,6 @@ struct mount_info {
struct list_head postpone; struct list_head postpone;
}; };
struct proc_posix_timer {
struct list_head list;
struct str_posix_timer spt;
};
struct proc_posix_timers_stat {
int timer_n;
struct list_head timers;
};
extern struct mount_info *mnt_entry_alloc(); extern struct mount_info *mnt_entry_alloc();
extern void mnt_entry_free(struct mount_info *mi); extern void mnt_entry_free(struct mount_info *mi);
...@@ -162,8 +151,6 @@ extern int parse_fdinfo(int fd, int type, ...@@ -162,8 +151,6 @@ extern int parse_fdinfo(int fd, int type,
extern int parse_cpuinfo_features(int (*handler)(char *tok)); extern int parse_cpuinfo_features(int (*handler)(char *tok));
extern int parse_file_locks(void); extern int parse_file_locks(void);
extern int parse_posix_timers(pid_t pid, struct proc_posix_timers_stat * args);
struct pid; struct pid;
extern int parse_threads(int pid, struct pid **_t, int *_n); extern int parse_threads(int pid, struct pid **_t, int *_n);
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "crtools.h" #include "crtools.h"
#include "asm/restorer.h" #include "asm/restorer.h"
#include "posix-timer.h"
#include "vdso.h" #include "vdso.h"
#include <time.h> #include <time.h>
...@@ -55,14 +56,6 @@ struct rst_sched_param { ...@@ -55,14 +56,6 @@ struct rst_sched_param {
int prio; int prio;
}; };
struct str_posix_timer {
long it_id;
int clock_id;
int si_signo;
int it_sigev_notify;
void * sival_ptr;
};
struct restore_posix_timer { struct restore_posix_timer {
struct str_posix_timer spt; struct str_posix_timer spt;
struct itimerspec val; struct itimerspec val;
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include "namespaces.h" #include "namespaces.h"
#include "kerndat.h" #include "kerndat.h"
#include "pstree.h" #include "pstree.h"
#include "posix-timer.h"
#include "net.h" #include "net.h"
#include "mem.h" #include "mem.h"
#include "restorer.h" #include "restorer.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "file-lock.h" #include "file-lock.h"
#include "pstree.h" #include "pstree.h"
#include "fsnotify.h" #include "fsnotify.h"
#include "posix-timer.h"
#include "kerndat.h" #include "kerndat.h"
#include "vdso.h" #include "vdso.h"
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#include "proc_parse.h" #include "proc_parse.h"
#include "log.h" #include "log.h"
#include "protobuf/creds.pb-c.h"
/* /*
* UID and GID of user requesting for C/R * UID and GID of user requesting for C/R
*/ */
......
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