[fpc-devel] Does i386 Darwin (Mac OSX) have equivalent Linux SysInfo

Marco van de Voort marcov at stack.nl
Sun Jul 4 05:19:41 CEST 2010


In our previous episode, Andrew Brunner said:
> procedure UpdateStats;
> var
>     SI:TSysInfo;
> begin
>   Linux.SysInfo(@SI);
> end;
> 
> FPC (svn/trunk) build on Darwin Mac OSX 10.6.4 did not come with a
> Linux Unit.  Where can I find the TSysInfo data type and SysInfo
> function equivalents?

Nowhere, it is Linux specific, and that's why it is in unit Linux.

You might try to substitute them with sysctls.  (see rtl/darwin/sysctlh.inc
for some predefined constants
 



More information about the fpc-devel mailing list