<p></p>
<p><b>@kfessel</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16822#discussion_r713127483">cpu/native/syscalls.c</a>:</p>
<pre style='color:#555'>> @@ -249,13 +249,18 @@ ssize_t _native_writev(int fd, const struct iovec *iov, int iovcnt)
     ssize_t r = 0;
 
     if (fd == STDOUT_FILENO || fd == STDERR_FILENO) {
-        for (int i = 0; i < iovcnt; ++i) {
-            ssize_t res = stdio_write(iov->iov_base, iov->iov_len);
-            iov++;
-            if (res < 0) {
-                return res;
+        while (iovcnt--) {
+            size_t offset = 0;
+            while (iov->iov_len > offset) {
+                ssize_t res = stdio_write((void *)((uintptr_t)iov->iov_base + offset),
+                                          iov->iov_len - offset);
+                if (res < 0) {
+                    return res;
</pre>
<p>I am not sure about that since the the spec says on success which it does not define but the manpage does so. On the other hand the specs define the unsuccess (error) as the fd is not changed -> nothing is written?</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/16822#discussion_r713127483">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGINSPQFGOADCUJRPDUDCMLBANCNFSM5DSRGJIQ">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/ABE7WYFSGNU2KGTGPUR2VXTUDCMLBA5CNFSM5DSRGJI2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFVFK47I.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#discussion_r713127483",
"url": "https://github.com/RIOT-OS/RIOT/pull/16822#discussion_r713127483",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>