[Lazarus] Libc functions and types

Sven Barth pascaldragon at googlemail.com
Tue Jan 17 09:31:03 CET 2012


Am 17.01.2012 08:28, schrieb Udav:
> Well, I guess one option is to rebuild RTL with FPC_USE_LIBC defined. Another
> one is to define needed structures myself and implement function calls via
> syscall - what, I believe, is recommended way. But how can I determine the
> number of the function I want to call?

Unit libc is deprecated, yes, but its functionality is not. Most 
functionality is available via different units like BaseUnix and so on. 
A "grep -ri TheStructureYouSearch $fpcdir/rtl" should often help you in 
finding your structure (it should often work with functions as well).

Regards,
Sven





More information about the Lazarus mailing list