Documentation

Miri.Interpreter.UnixFd

Pinned unix/fd.rs close/dup/dup2/read/write and read_from_fd/write_to_fd; plus FileHandle positional I/O from unix/fs.rs. Async finish is a real closure.

@[reducible, inline]
Equations
Instances For
    structure Miri.Interpreter.UnixFd.Hooks (S H D O E Meta : Type) :
    Instances For
      def Miri.Interpreter.UnixFd.close {S H D O E Meta : Type} (h : Hooks S H D O E Meta) (number : Int32) :
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Miri.Interpreter.UnixFd.dup {S H D O E Meta : Type} (h : Hooks S H D O E Meta) (number : Int32) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Miri.Interpreter.UnixFd.dup2 {S H D O E Meta : Type} (h : Hooks S H D O E Meta) (old new : Int32) :
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def Miri.Interpreter.UnixFd.readWrite {S H D O E Meta : Type} (h : Hooks S H D O E Meta) (number : Int32) (pointer : Memory.Pointer (Option Memory.Provenance)) (count : UInt64) (offset : Option Int) (write : Bool) (dest : MPlaceTy Memory.Provenance) :

            Full requested range is checked before count capping and FD lookup. The finish closure owns all return-value work even if the description blocks.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def Miri.Interpreter.UnixFd.transferDescription {S H D O E Meta : Type} (h : Hooks S H D O E Meta) (ref : Files.Ref (Files.Description H D O)) (pointer : Memory.Pointer (Option Memory.Provenance)) (len : Nat) (offset : Option Int) (write : Bool) (finish : Files.Finish S E) :

              Source internal read_from_fd/write_to_fd entry: unlike read/write wrappers, no count capping or pre-lookup range check is inserted here. Ownership of ref is transferred to the actual operation, including a delayed finish callback.

              Equations
              Instances For