[fpc-devel] Publish some of FPC's internal cross-platform functionality

Michael Van Canneyt michael at freepascal.org
Sat Mar 9 23:19:19 CET 2019



On Sat, 9 Mar 2019, Anton Shepelev wrote:

> Michael Van Canneyt about FileWrite and FileRead:
>
>> For these functions, you can get more info with
>> GetLastOSError, and use that to set InOutRes.
>
> Thank you, but how do I translate the return value of
> GetLastOSError into a value of InOutRes?  The translation
> functions are privately implemented in sysos.inc .

You can copy them. It is open source, after all.

It's not a sin to copy such things.

Michael.



More information about the fpc-devel mailing list