|
@@ -2,12 +2,12 @@ Program Example43;
|
|
|
|
|
|
{ Program to demonstrate the Uname function. }
|
|
|
|
|
|
-Uses linux;
|
|
|
+Uses BaseUnix;
|
|
|
|
|
|
Var UN : utsname;
|
|
|
|
|
|
begin
|
|
|
- if Uname (UN) then
|
|
|
+ if fpUname (UN)=0 then
|
|
|
With UN do
|
|
|
begin
|
|
|
Writeln ('Name : ',pchar(@sysname[0]));
|
|
@@ -15,6 +15,8 @@ begin
|
|
|
Writeln ('release : ',pchar(@Release[0]));
|
|
|
Writeln ('Version : ',pchar(@Version[0]));
|
|
|
Writeln ('Machine : ',pchar(@Machine[0]));
|
|
|
+{$ifdef Linux} // linuxism
|
|
|
Writeln ('Domainname : ',pchar(@domainname[0]));
|
|
|
+{$endif}
|
|
|
end;
|
|
|
end.
|