<h3>Contribution description</h3>
<p>On <code>native</code> the functions stdio_read() / stdio_write() were not used.<br>
Those functions are intended for alternative stdio implementations.<br>
As a result, no alternative stdio could be used on <code>native</code>.</p>
<p>To fix this, call the functions in <code>_native_read()</code> / <code>_native_write()</code> when dealing with stdio fds.</p>
<h3>Testing procedure</h3>
<p><code>native</code> applications should work as before.<br>
But now alternative stdio implementations are possible.</p>
<h3>Issues/PRs references</h3>
<p>needed for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="965433703" data-permission-text="Title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/16723" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/16723/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/16723">#16723</a> to work on <code>native</code></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/RIOT-OS/RIOT/pull/16822'>https://github.com/RIOT-OS/RIOT/pull/16822</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>cpu/native: make use of stdio_read() / stdio_write()</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16822/files#diff-6c64faaa75c29ff8fbee03e95c865dcbacc78a3458a0f555ef6a5afe84e37719">cpu/native/stdio_native/stdio_native.c</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/16822/files#diff-bd858834370ed83048031e52321fcb18925297a16752cdd019ba828221f2ade1">cpu/native/syscalls.c</a>
    (44)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16822.patch'>https://github.com/RIOT-OS/RIOT/pull/16822.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/16822.diff'>https://github.com/RIOT-OS/RIOT/pull/16822.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16822">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYEB763YQODDZNJU4GTUAYPMVANCNFSM5DSRGJIQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABE7WYFYOJFPAEOJMWDIP5TUAYPMVA5CNFSM5DSRGJI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OYDA2FQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16822",
"url": "https://github.com/RIOT-OS/RIOT/pull/16822",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>