<blockquote>
<p>I don't think <code>stdio_read</code> is supposed to return EOF directly, this should be done is <code>syscall.c</code> related function.</p>
</blockquote>
<p>Ah, right. Newlib's getchar implementation should handle EOF and errno handling. -ENOTSUP should be fine.</p>

<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/11598?email_source=notifications&email_token=ABE7WYBAWV6RJEM6CPJXDQ3P2DIMBA5CNFSM4HQFEOT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQAQCY#issuecomment-501221387">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYAPUET6OUWEUMJA7JLP2DIMBANCNFSM4HQFEOTQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYEXUQI7IUY5VDFHOETP2DIMBA5CNFSM4HQFEOT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQAQCY.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/11598?email_source=notifications\u0026email_token=ABE7WYBAWV6RJEM6CPJXDQ3P2DIMBA5CNFSM4HQFEOT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQAQCY#issuecomment-501221387",
"url": "https://github.com/RIOT-OS/RIOT/pull/11598?email_source=notifications\u0026email_token=ABE7WYBAWV6RJEM6CPJXDQ3P2DIMBA5CNFSM4HQFEOT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXQAQCY#issuecomment-501221387",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>