Semihosting.Filesystem

Entities

Simple Types

Tagged Types

Access Types

Subprograms

Description

This package use the ARM semihosting feature to provide a low level driver to access the host file system. It is recommended to _not_ use this interface directly but to access the file system using the File_IO package. For more info, see the file system chapter of the documentation.

Any_SHFS

type Any_SHFS is access all SHFS'Class;

Close

procedure Close (This : in out SHFS)
Parameters
This

Create_Directory

function Create_Directory (This : in out SHFS;
                           Path : String)
                           return Status_Code
Parameters
This
Path
Return Value

Create_File

function Create_File (This : in out SHFS;
                      Path : String)
                      return Status_Code
Parameters
This
Path
Return Value

Create_Node

function Create_Node (This : in out SHFS;
                      Path : String;
                      Kind : File_Kind)
                      return Status_Code
Parameters
This
Path
Kind
Return Value

File_Kind

type File_Kind is (Regular_File, Directory);
Enumeration Literal
Regular_File
Directory

Open

function Open (This   : in out SHFS;
               Path   : String;
               Handle : out Any_Directory_Handle)
               return Status_Code
Parameters
This
Path
Handle
Return Value

Open

function Open (This    : in out SHFS;
               Path    : String;
               Mode    : File_Mode;
               Handler : out Any_File_Handle)
               return Status_Code
Parameters
This
Path
Mode
Handler
Return Value

Remove_Directory

function Remove_Directory (This : in out SHFS;
                           Path : String)
                           return Status_Code
Parameters
This
Path
Return Value

Rename

function Rename (This : in out SHFS;
                 Old_Path : String;
                 New_Path : String)
                 return Status_Code
Parameters
This
Old_Path
New_Path
Return Value

Root_Node

function Root_Node
  (This   : in out SHFS;
   As     : String;
   Handle : out Any_Node_Handle)
   return Status_Code
Parameters
This
As
Handle
Return Value

SHFS

type SHFS is new HAL.Filesystem.Filesystem_Driver with private;

Truncate_File

function Truncate_File (This   : in out SHFS;
                        Path   : String;
                        Length : File_Size)
                        return Status_Code
Parameters
This
Path
Length
Return Value

Unlink

function Unlink (This : in out SHFS;
                 Path : String)
                 return Status_Code
Parameters
This
Path
Return Value