[BACK]Return to system_call.adb CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / PHC / Ada / System

File: [local] / OpenXM_contrib / PHC / Ada / System / system_call.adb (download)

Revision 1.1.1.1 (vendor branch), Sun Oct 29 17:45:34 2000 UTC (23 years, 6 months ago) by maekawa
Branch: PHC, MAIN
CVS Tags: v2, maekawa-ipv6, RELEASE_1_2_3, RELEASE_1_2_2_KNOPPIX_b, RELEASE_1_2_2_KNOPPIX, RELEASE_1_2_2, RELEASE_1_2_1, HEAD
Changes since 1.1: +0 -0 lines

Import the second public release of PHCpack.

OKed by Jan Verschelde.

with System;                   use System;

package body System_Call is

  procedure Call ( Command: in string ) is

    function system(command: address) return natural;
    pragma Interface(C, system);
    cmd: constant string := command & ASCII.NUL;
    ret: Natural;

  begin
    ret := system(cmd'address);
    if ret /= 0 then
      raise System_Error;
    end if;
  end Call;

end System_Call;