|
libclues
Linux C++ Tracing Library
|
An errno system call result. More...
#include <ErrnoResult.hxx>
Public Member Functions | |
| ErrnoResult (const cosmos::Errno code) | |
| std::string | str () const |
| std::optional< cosmos::Errno > | errorCode () const |
| std::optional< KernelErrno > | kernelErrorCode () const |
| bool | hasErrorCode () const |
| bool | hasKernelErrorCode () const |
Protected Attributes | |
| std::optional< cosmos::Errno > | m_errno |
| std::optional< KernelErrno > | m_kernel_errno |
An errno system call result.
When a system call fails then the kernel provides a dedicated errno result via PTRACE_GET_SYSCALL_INFO. This type wraps the information provided by the kernel.
During tracing error codes can appear that aren't usually visible in user space. These are modeled via the dedicated KernelErrno type. For this reason only std::optional returns are provided.
Definition at line 24 of file ErrnoResult.hxx.
|
explicit |
Definition at line 11 of file ErrnoResult.cxx.
|
inline |
Definition at line 31 of file ErrnoResult.hxx.
|
inline |
Definition at line 39 of file ErrnoResult.hxx.
|
inline |
Definition at line 43 of file ErrnoResult.hxx.
|
inline |
Definition at line 35 of file ErrnoResult.hxx.
| std::string clues::ErrnoResult::str | ( | ) | const |
Definition at line 22 of file ErrnoResult.cxx.
|
protected |
Definition at line 49 of file ErrnoResult.hxx.
|
protected |
Definition at line 50 of file ErrnoResult.hxx.