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

File: [local] / OpenXM_contrib / PHC / Ada / System / ts_mach.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 text_io;                        use text_io;
with Machines;                       use Machines;

procedure ts_mach is

-- DESCRIPTION :
--   Prints system information about the current process.

  pid : constant string := Process_ID;
  username : constant string := User_Name(pid);
  hostname : constant string := Host_Name(pid);
  archi : constant string := Architecture(pid);
  today : constant string := Date(pid);

begin
  put_line("Hello " & username & " !");
  put_line("This is " & hostname & ".");
  put_line(archi);
  put_line("Running process with ID : " & pid & ".");
  put_line("Today date is " & today & ".");
end ts_mach;