Arion 1.0.2-alpha
A high-performance C++ framework for emulating executable binaries.
 
Loading...
Searching...
No Matches
arion_lnx_type::ErrCodeType Class Reference

Type used for syscall return error codes (negative values). More...

#include <lnx_kernel_utils.hpp>

Inheritance diagram for arion_lnx_type::ErrCodeType:
arion_type::KernelType

Public Member Functions

 ErrCodeType ()
 
std::string str (std::shared_ptr< arion::Arion > arion, uint64_t val) override
 
- Public Member Functions inherited from arion_type::KernelType
virtual ~KernelType ()=default
 Virtual destructor to allow polymorphic deletion.
 
arion::LOG_COLOR get_color ()
 

Additional Inherited Members

- Protected Member Functions inherited from arion_type::KernelType
 KernelType (std::string name, arion::LOG_COLOR color=arion::LOG_COLOR::DEFAULT)
 

Detailed Description

Type used for syscall return error codes (negative values).

Constructor & Destructor Documentation

◆ ErrCodeType()

arion_lnx_type::ErrCodeType::ErrCodeType ( )
inline

Builder for ErrCodeType instances.

Member Function Documentation

◆ str()

std::string arion_lnx_type::ErrCodeType::str ( std::shared_ptr< arion::Arion arion,
uint64_t  val 
)
overridevirtual

Converts an error code value to its string representation (e.g., "-2" to "-ENOENT").

Parameters
[in]arionShared pointer to the Arion instance.
[in]valThe error code value (usually negative).
Returns
String representation of the error code.

Reimplemented from arion_type::KernelType.


The documentation for this class was generated from the following file: