29 #ifndef __SIM_SYSCALLRETURN_HH__ 30 #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...
int count() const
How many values did the syscall attempt to return?
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...
SyscallReturn(int64_t v1, int64_t v2)
A SyscallReturn constructed with two values means put the second value in additional return registers...