Forum > Linux

How do I use fpuname?

(1/1)

xircon:

--- Code: ---program kuname;

uses  cthreads, baseunix,unix, unixtype, sysutils;

var KernelName: UtsName;

begin

 fpuname(KernelName);

end.     
--- End code ---

Got so far, not sure how to get the info out.  Are there any simple examples?

marcov:
Simply writeln() ing the fields mentioned here:

http://www.freepascal.org/docs-html/rtl/baseunix/utsname.html

?

xircon:
Thanks, been Googling for hours, trying to find that.


--- Code: ---program uname;

uses  baseunix;

var KernelName: UtsName;

begin
 fpuname(KernelName);
 writeln(kernelname.sysname);
 writeln(kernelname.nodename);
 writeln(kernelname.release);
 writeln(kernelname.version);
 writeln(kernelname.machine);
 writeln(kernelname.domain);
end.

--- End code ---
Tidied up and runs fine.

marcov:

--- Quote from: xircon on March 18, 2010, 10:56:30 pm ---Thanks, been Googling for hours, trying to find that.

--- End quote ---

I always google first too (faster if it works), but if that doesn't yield results, manually lookup the
function in the manual. It is what it is there for!

 

Navigation

[0] Message Index

Go to full version