29#ifndef __SIM_SYSCALLRETURN_HH__
30#define __SIM_SYSCALLRETURN_HH__
This class represents the return value from an emulated system call, including any errno setting.
bool suppressed() const
Should returning this value be suppressed?
SyscallReturn(int64_t v)
For simplicity, allow the object to be initialized with a single signed integer using the same positi...
static SyscallReturn retry()
Pseudo-constructor to create an instance with the retry flag set.
int64_t encodedValue() const
The encoded value (as described above)
bool needsRetry() const
Does the syscall need to be retried?
int64_t returnValue() const
The return value.
int count() const
How many values did the syscall attempt to return?
SyscallReturn()
A SyscallReturn constructed with no value means don't return anything.
SyscallReturn(int64_t v1, int64_t v2)
A SyscallReturn constructed with two values means put the second value in additional return registers...
bool successful() const
Was the system call successful?
int errnoValue() const
The errno value.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.