[CRIU] [PATCH v4 21/33] files: Add open stages enum

Kirill Tkhai ktkhai at virtuozzo.com
Tue Dec 13 07:07:17 PST 2016


This will be used in next patches.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 criu/include/files.h |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/criu/include/files.h b/criu/include/files.h
index 9fec16a..83f1cae 100644
--- a/criu/include/files.h
+++ b/criu/include/files.h
@@ -97,6 +97,12 @@ static inline int fdinfo_rst_prio(struct fdinfo_list_entry *fd_a, struct fdinfo_
 		((fd_a->pid == fd_b->pid) && (fd_a->fe->fd < fd_b->fe->fd));
 }
 
+enum {
+	ORV_ERR = -1,
+	ORV_OK,
+	ORV_AGAIN,
+};
+
 struct file_desc_ops {
 	/* fd_types from images/fdinfo.proto */
 	unsigned int		type;



More information about the CRIU mailing list