AdaCL.OS.Low_Level

More...

Entities

Simple types

Known_OS

Record types

Pipe_Type

Subprograms

Close
Create_Pipe
Errno
Pipe
Portable_Wait
This_OS

Generic instantiations

Cast (generic instantiation)
Cast (generic instantiation)

Description

Operating System Tools. Start extrnal Programm.

Known_OS [source]

40 type Known_OS is
41 (Windows,
42 MacOS,
43 Linux);

All operating systems known to AdaCL.

Windows
MacOS
Linux

Pipe_Type [source]

32 type Pipe_Type is record
33 Input : GNAT.OS_Lib.File_Descriptor;
34 Output : GNAT.OS_Lib.File_Descriptor;
35 end record;

I/O Pipe

Input of type File_Descriptor
Output of type File_Descriptor

Close [source]

59 procedure Close (Fd : GNAT.OS_Lib.File_Descriptor);

Close a file given its file descriptor.

Fd of type File_Descriptor

Create_Pipe [source]

69 function Create_Pipe (Pipe : access Pipe_Type) return Integer;

Create pipe - GNAT Version.

Pipe of type
Return value

Errno [source]

54 function Errno return Integer renames GNAT.OS_Lib.Errno;

Error number of last C function called.

Pipe [source]

64 function Pipe (Files : access Pipe_Type) return Interfaces.C.int;

Create pipe

Files of type
Return value

Portable_Wait [source]

74 function Portable_Wait (S : System.Address) return GNAT.OS_Lib.Process_Id;

Create pipe - GNAT Version.

S of type Address
Return value

This_OS [source]

48 function This_OS return Known_OS with
49 Pure_Function, Inline, Post => This_OS'Result = MacOS;

The Operating System under which this programs runs.

Return value

Cast (generic instantiation) [source]

79 function Cast is new Ada.Unchecked_Conversion (Source => GNAT.OS_Lib.Process_Id, Target => Integer);

Cast process id to integer.

Cast (generic instantiation) [source]

83 function Cast is new Ada.Unchecked_Conversion (Source => GNAT.OS_Lib.File_Descriptor, Target => Integer);

Cast process id to integer.