[riot-notifications] [RIOT-OS/RIOT] cpu/native: make use of stdio_read() / stdio_write() (#16822)

benpicco notifications at github.com
Tue Sep 7 16:35:54 CEST 2021



<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### Contribution description

On `native` the functions stdio_read() / stdio_write() were not used.
Those functions are intended for alternative stdio implementations.
As a result, no alternative stdio could be used on `native`.

To fix this, call the functions in `_native_read()` / `_native_write()` when dealing with stdio fds.


### Testing procedure

`native` applications should work as before.
But now alternative stdio implementations are possible.


### Issues/PRs references

needed for #16723 to work on `native` 

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16822

-- Commit Summary --

  * cpu/native: make use of stdio_read() / stdio_write()

-- File Changes --

    M cpu/native/stdio_native/stdio_native.c (16)
    M cpu/native/syscalls.c (44)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16822.patch
https://github.com/RIOT-OS/RIOT/pull/16822.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16822
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210907/7ce41f18/attachment.htm>


More information about the notifications mailing list