FileMetadata and stat/statx core from pinned unix/fs.rs. Optional host-only fields represent source absence, not unknown compiler metadata.
@[reducible, inline]
Instances For
@[instance_reducible]
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[instance_reducible]
@[instance_reducible]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Instances For
- os : String
- hostUnix : Bool
- hostWindows : Bool
- errors : IoError.Hooks S E
eval_libc followed by mode_t-sized unsigned conversion and checked u32.
- readI32 : OpTy Memory.Provenance → M S Int32
- readU32 : OpTy Memory.Provenance → M S UInt32
- readPointer : OpTy Memory.Provenance → M S (Memory.Pointer (Option Memory.Provenance))
- isNull : Memory.Pointer (Option Memory.Provenance) → M S Bool
- readPath : Memory.Pointer (Option Memory.Provenance) → M S Path
- asDirectory : F → Option D
- fdMetadata : F → M S (Except (IoError.HostError E) HM ⊕ String)
- isEmpty : Path → Bool
- isAbsolute : Path → Bool
- isDot : Path → Bool
- emptyPath : Path
- metadata : Option D → Path → Bool → M S (Except (IoError.HostError E) HM)
- fileType : HM → FileType
- length : HM → UInt64
- time : HM → TimeField → M S (Except (IoError.HostError E) Time)
- sinceEpoch : Time → M S Clock.Duration
Actual system_time_to_duration: before epoch remains interpreter error.
- unixFields : HM → UnixFields
- readonly : HM → Bool
- deref : OpTy Memory.Provenance → M S (MPlaceTy Memory.Provenance)
- derefAs : OpTy Memory.Provenance → String → M S (MPlaceTy Memory.Provenance)
- field : MPlaceTy Memory.Provenance → String → M S (MPlaceTy Memory.Provenance)
- index : MPlaceTy Memory.Provenance → UInt64 → M S (MPlaceTy Memory.Provenance)
- writeInt : Int → MPlaceTy Memory.Provenance → M S Unit
Instances For
Equations
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.regular = "S_IFREG"
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.directory = "S_IFDIR"
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.symlink = "S_IFLNK"
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.socket = if hostUnix = true then "S_IFSOCK" else "S_IFREG"
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.fifo = if hostUnix = true then "S_IFIFO" else "S_IFREG"
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.character = if hostUnix = true then "S_IFCHR" else "S_IFREG"
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.block = if hostUnix = true then "S_IFBLK" else "S_IFREG"
- Miri.Interpreter.UnixFsMetadata.modeName hostUnix Miri.Interpreter.UnixFsMetadata.FileType.other = "S_IFREG"
Instances For
def
Miri.Interpreter.UnixFsMetadata.fromHost
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(metadata : Except (IoError.HostError E) HM)
:
M S (Except (IoError.Error E) Metadata)
Equations
- One or more equations did not get rendered due to their size.
- Miri.Interpreter.UnixFsMetadata.fromHost h (Except.error a) = pure (Except.error (Miri.Interpreter.IoError.Error.host a))
Instances For
def
Miri.Interpreter.UnixFsMetadata.fromFd
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(number : Int32)
:
M S (Except (IoError.Error E) Metadata)
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.UnixFsMetadata.atPath
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(number : Int32)
(path : P)
(nofollow empty : Bool)
:
M S (Except (IoError.Error E) Metadata)
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.UnixFsMetadata.writeStat
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(metadata : Metadata)
(buf : OpTy Memory.Provenance)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.UnixFsMetadata.stat
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(path buf : OpTy Memory.Provenance)
(nofollow : Bool)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.UnixFsMetadata.fstat
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(fd buf : OpTy Memory.Provenance)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.UnixFsMetadata.fstatat
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(fd path buf flags : OpTy Memory.Provenance)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Miri.Interpreter.UnixFsMetadata.statx
{S F D P HM T E : Type}
(h : Hooks S F D P HM T E)
(fd pathname flags mask buf : OpTy Memory.Provenance)
:
Equations
- One or more equations did not get rendered due to their size.