mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
dump: convert fd types into enum
This is a precursor patch. Macro for max possible fd type will be required. And it's easier to use enum in this case. Signed-off-by: Stanislav Kinsbursky <skinsbursky@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
7a98cd2bf4
commit
b68b3d5dd5
@ -29,12 +29,16 @@
|
||||
|
||||
#define PIPEFS_MAGIC 0x50495045
|
||||
|
||||
#define FDINFO_REG 1
|
||||
#define FDINFO_MAP 2
|
||||
enum fd_types {
|
||||
FDINFO_UND,
|
||||
FDINFO_REG,
|
||||
FDINFO_MAP,
|
||||
|
||||
/* Specials */
|
||||
#define FDINFO_CWD 3
|
||||
#define FDINFO_EXE 4
|
||||
FDINFO_CWD,
|
||||
FDINFO_EXE,
|
||||
|
||||
FD_INFO_MAX
|
||||
};
|
||||
|
||||
#define PAGE_IMAGE_SIZE 4096
|
||||
#define PAGE_RSS 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user