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

benpicco notifications at github.com
Wed Sep 22 16:51:20 CEST 2021


@benpicco commented on this pull request.



> +            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;
+                }
+                offset += res;
+            }
+            r += offset;

Ok, changed it - this is a strange API

-- 
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#discussion_r714025444
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210922/499558ac/attachment.htm>


More information about the notifications mailing list