31 #ifndef __SIM_SYSCALLRETURN_HH__ 32 #define __SIM_SYSCALLRETURN_HH__
bool successful() const
Was the system call successful?
int errnoValue() const
The errno value.
int64_t encodedValue() const
The encoded value (as described above)
static SyscallReturn retry()
Pseudo-constructor to create an instance with the retry flag set.
SyscallReturn(int64_t v)
For simplicity, allow the object to be initialized with a single signed integer using the same positi...
int64_t returnValue() const
The return value.
bool suppressed() const
Should returning this value be suppressed?
SyscallReturn()
A SyscallReturn constructed with no value means don't return anything.
bool needsRetry() const
Does the syscall need to be retried?
This class represents the return value from an emulated system call, including any errno setting...