Commit 596767d5 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

compel: uapi -- Add standalone headers

Will be used later.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 2acc2005
#ifndef UAPI_COMPEL_H__
#define UAPI_COMPEL_H__
#include <errno.h>
#define COMPEL_TYPE_INT (1u << 0)
#define COMPEL_TYPE_LONG (1u << 1)
#define COMPEL_TYPE_GOTPCREL (1u << 2)
typedef struct {
unsigned int offset;
unsigned int type;
long addend;
long value;
} compel_reloc_t;
/*
* FIXME: Backward compat layer for CRIU. Need to
* drop it later, before the release.
*/
#define elf_reloc_t compel_reloc_t
#define PIEGEN_TYPE_INT COMPEL_TYPE_INT
#define PIEGEN_TYPE_LONG COMPEL_TYPE_LONG
#define PIEGEN_TYPE_GOTPCREL COMPEL_TYPE_GOTPCREL
#endif /* UAPI_COMPEL_H__ */
#ifndef __CR_INT_H__
#define __CR_INT_H__
#include <stdint.h>
typedef uint64_t u64;
typedef int64_t s64;
typedef uint32_t u32;
typedef int32_t s32;
typedef uint16_t u16;
typedef int16_t s16;
typedef uint8_t u8;
typedef int8_t s8;
#endif /* __CR_INT_H__ */
#ifndef __PIEGEN_TYPES_H__
#define __PIEGEN_TYPES_H__
#define PIEGEN_TYPE_INT (1u << 0)
#define PIEGEN_TYPE_LONG (1u << 1)
#define PIEGEN_TYPE_GOTPCREL (1u << 2)
typedef struct {
unsigned int offset;
unsigned int type;
long addend;
long value;
} elf_reloc_t;
#endif /* __PIEGEN_TYPES_H__ */
compel.h
\ No newline at end of file
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