13 lines
294 B
C++
13 lines
294 B
C++
#pragma once
|
|
#include <sys/types.h>
|
|
#include <sys/user.h>
|
|
#include <cstdint>
|
|
|
|
using reg_t = decltype(user_regs_struct::orig_rax);
|
|
using hook_t = void(*)();
|
|
using err_t = uint8_t;
|
|
|
|
constexpr err_t REWIRE_SUCCESS = 0;
|
|
constexpr err_t REWIRE_FAILURE = 1;
|
|
constexpr err_t REWIRE_FAILURE_NOCTX = 2;
|