Source-extracted ordered error tables and policy from pinned shims/io_error.rs. Host/target errno numbers remain compiler/host queries, never platform guesses.
@[reducible, inline]
Instances For
- ArgumentListTooLong : ErrorKind
- AddrInUse : ErrorKind
- AddrNotAvailable : ErrorKind
- ResourceBusy : ErrorKind
- ConnectionAborted : ErrorKind
- ConnectionRefused : ErrorKind
- ConnectionReset : ErrorKind
- Deadlock : ErrorKind
- QuotaExceeded : ErrorKind
- AlreadyExists : ErrorKind
- FileTooLarge : ErrorKind
- HostUnreachable : ErrorKind
- Interrupted : ErrorKind
- InvalidInput : ErrorKind
- IsADirectory : ErrorKind
- FilesystemLoop : ErrorKind
- NotFound : ErrorKind
- OutOfMemory : ErrorKind
- StorageFull : ErrorKind
- TooManyLinks : ErrorKind
- InvalidFilename : ErrorKind
- NetworkDown : ErrorKind
- NetworkUnreachable : ErrorKind
- NotConnected : ErrorKind
- NotADirectory : ErrorKind
- DirectoryNotEmpty : ErrorKind
- BrokenPipe : ErrorKind
- ReadOnlyFilesystem : ErrorKind
- NotSeekable : ErrorKind
- StaleNetworkFileHandle : ErrorKind
- TimedOut : ErrorKind
- ExecutableFileBusy : ErrorKind
- CrossesDevices : ErrorKind
- InProgress : ErrorKind
- InputOutputError : ErrorKind
- PermissionDenied : ErrorKind
- WouldBlock : ErrorKind
- Unsupported : ErrorKind
- TooManyOpenFiles : ErrorKind
- Other : ErrorKind
Instances For
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
- family : ForeignItems.Family
- os : String
- hostUnix : Bool
- libc : String → M S (Memory.Scalar Memory.Provenance)
- windows : String → M S (Memory.Scalar Memory.Provenance)
- scalarI32 : Memory.Scalar Memory.Provenance → M S Int32
- scalarU32 : Memory.Scalar Memory.Provenance → M S UInt32
- getLastErrorPlace : M S (Option (MPlaceTy Memory.Provenance))
- setLastErrorPlace : MPlaceTy Memory.Provenance → M S Unit
- allocateU32Machine : M S (MPlaceTy Memory.Provenance)
- writeScalar : Memory.Scalar Memory.Provenance → MPlaceTy Memory.Provenance → M S Unit
- readScalar : MPlaceTy Memory.Provenance → M S (Memory.Scalar Memory.Provenance)
- writeInt : Int → MPlaceTy Memory.Provenance → M S Unit
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.IoError.toErrnum
{S H : Type}
(h : Hooks S H)
:
Error H → M S (Memory.Scalar Memory.Provenance)
Equations
- Miri.Interpreter.IoError.toErrnum h (Miri.Interpreter.IoError.Error.host error) = Miri.Interpreter.IoError.hostErrorToErrnum h error
- Miri.Interpreter.IoError.toErrnum h (Miri.Interpreter.IoError.Error.libc name) = h.libc name
- Miri.Interpreter.IoError.toErrnum h (Miri.Interpreter.IoError.Error.windows name) = h.windows name
- Miri.Interpreter.IoError.toErrnum h (Miri.Interpreter.IoError.Error.raw value) = pure value
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Miri.Interpreter.IoError.setLastError h error = do let value ← Miri.Interpreter.IoError.toErrnum h error let __do_lift ← Miri.Interpreter.IoError.lastErrorPlace h h.writeScalar value __do_lift
Instances For
def
Miri.Interpreter.IoError.setErrnoAndReturnNeg1
{S H : Type}
(h : Hooks S H)
(error : Error H)
(dest : MPlaceTy Memory.Provenance)
:
Equations
- Miri.Interpreter.IoError.setErrnoAndReturnNeg1 h error dest = do Miri.Interpreter.IoError.setLastError h error h.writeInt (-1) dest
Instances For
def
Miri.Interpreter.IoError.setErrnoAndReturnNeg1I32
{S H : Type}
(h : Hooks S H)
(error : Error H)
:
Equations
- Miri.Interpreter.IoError.setErrnoAndReturnNeg1I32 h error = do Miri.Interpreter.IoError.setLastError h error pure (-1)
Instances For
def
Miri.Interpreter.IoError.setErrnoAndReturnNeg1I64
{S H : Type}
(h : Hooks S H)
(error : Error H)
:
Equations
- Miri.Interpreter.IoError.setErrnoAndReturnNeg1I64 h error = do Miri.Interpreter.IoError.setLastError h error pure (-1)
Instances For
Equations
- Miri.Interpreter.IoError.getLastError h = do let __do_lift ← Miri.Interpreter.IoError.lastErrorPlace h h.readScalar __do_lift
Instances For
def
Miri.Interpreter.IoError.tryErrnumToHost
{S H : Type}
(h : Hooks S H)
(value : Memory.Scalar Memory.Provenance)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
- Miri.Interpreter.IoError.intoNtstatus x✝ = Int32.ofInt 3221225861
Instances For
def
Miri.Interpreter.IoError.tryUnwrap
{S H A : Type}
(h : Hooks S H)
(result : Except (HostError H) A)
(negativeOne : A)
:
M S A
Equations
- Miri.Interpreter.IoError.tryUnwrap h (Except.ok value) negativeOne = pure value
- Miri.Interpreter.IoError.tryUnwrap h (Except.error error) negativeOne = do Miri.Interpreter.IoError.setLastError h (Miri.Interpreter.IoError.Error.host error) pure negativeOne