Paul TOTH figured this out:
you can use any Linux API but it’s not trivial.
- you have to install the “dev” library under Llinux, like “apt-get install xxx-dev” for the xxx API
- you have to update the Linux DSK in Delphi
- you can declare the API as externals function as usual
- now you can compile and deploy the application.
If you miss the steps 1 or 2 you’ll have a linker error.
Source: [WayBack] Dear… Delphi 10.2 Tokyo, can i use linux api directly? like ‘fcntl(….)’.
And there is this great blog post that I found later by [WayBack] Allen Drennan: [WayBack] Importing third-party Linux libraries on Delphi 10.2 Tokyo – grijjy blog
–jeroen