Repair a verified behavior in rt-thread/rt-thread.
Repair a verified behavior in rt-thread/rt-thread.: a task in OriGent-RL-Data (Harbor dataset). newlib stdio is broken on GCC builds: the repository <fcntl.h publishes a different O open-flag encoding than the one baked into newlib's precompiled runtime, so fopen("rb") opens files as directories…
The task
newlib stdio is broken on GCC builds: the repository <fcntl.h> publishes a different O_* open-flag encoding than the one baked into newlib's precompiled runtime, so fopen("rb") opens files as directories and fopen("w") cannot create files
Part of henryen/OriGent-RL-Data.