Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-07

Does i386 Darwin (Mac OSX) have equivalent Linux SysInfo

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Brunner
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?

Any help would be greatly appreciated.

Reply by email

Marco van de Voort
to Andrew Brunner

In our previous episode, Andrew Brunner said:

Show quoted text 10 lines
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

Reply by email