Sign in Join

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

Mailing lists / fpc-pascal / 2024-12

How to provide user supplied functionality for mkdir, chdir etc for freertos/esp-idf?

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Christo Crause

How can I provide functionality for chdir, mkdir etc. ? The current implementation in freertos/sysdir.inc
is hard coded with IO errors, is there a way to override the default implementation?

I have implemented RTL file handling functionality by assigning the rtl_do_* procedural variables.
Should a similar approach (procedural variables) be used in the freertos/sysdir.inc so that a user
can supply custom implementations?

Reply by email

Sven Barth
to Christo Crause

Christo Crause via fpc-pascal schrieb am
Mo., 16. Dez. 2024, 18:02:

Show quoted text 11 lines
How can I provide functionality for chdir, mkdir etc. ? The current implementation in freertos/sysdir.inc is hard coded with IO errors, is there a way to override the default implementation? I have implemented RTL file handling functionality by assigning the rtl_do_* procedural variables. Should a similar approach (procedural variables) be used in the freertos/sysdir.inc so that a user can supply custom implementations?

That or providing both (file and dir) through a manager record.

Regards,
Sven

Reply by email