asked on
ASKER
ASKER
ASKER
ASKER
Delphi is the most powerful Object Pascal IDE and component library for cross-platform Native App Development with flexible Cloud services and broad IoT connectivity. It provides powerful VCL controls for Windows 10 and enables FMX development for Windows, Mac and Mobile. Delphi is your choice for ultrafast Enterprise Strong Development™. Look for increased memory for large projects, extended multi-monitor support, improved Object Inspector and much more. Delphi is 5x faster for development and deployment across multiple desktop, mobile, cloud and database platforms including 32-bit and 64-bit Windows 10.
TRUSTED BY
Better:
type
PCardinal;
pid_t = Cardinal;
function sched_getaffinity(pid: pid_t; len: Cardinal; var mask: Cardinal): Integer; cdecl;
function sched_getaffinity(pid: pid_t; len: Cardinal; mask: PCardinal): Integer; cdecl;
It looks very much as if the affinity mask is placed in mask by the function so var is the better conversion.
If len indicates that maks points to an array of mask values then PCardinal is the better conversion.
Use the pid_t type to make the function more readable.
cdecl is more probable than stdcall here, but stdcall is not impossible.