From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113636 invoked by alias); 26 May 2017 07:50:20 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 113619 invoked by uid 89); 26 May 2017 07:50:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy= X-HELO: mail-qk0-f176.google.com Received: from mail-qk0-f176.google.com (HELO mail-qk0-f176.google.com) (209.85.220.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 26 May 2017 07:50:13 +0000 Received: by mail-qk0-f176.google.com with SMTP id u75so2002952qka.3 for ; Fri, 26 May 2017 00:50:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=U3bxu0b9gjFbD3gmyCOgfCg6nGLPd/kCYpR/ZJphfIs=; b=K0DI/znoQHazYT8ffFtMhXFPR3jXB47H9JRjUxsz9SMuZ4pfDuQiRjX/jf8vhzZy4T 4q4uvIsMhzLTs2gpUeb0QeG0DxLDzdqVMlbuTfWkrLm5X0Ye2V1sC7flzP3KUVubEmZ1 EaV0Rm+CJDFZsAZ703PviYJa9Qcc+ZRuXgXg4hUtKMU6xYfc6tdYJOxqsyoSvR01BrnB D6UOHP+sidFeQAQ0QDdVa5hL6RIm/mKjIEKHH1rbpwAvoEiOAfxw1fVK6VzLFlXmHTRV Zqj3aRZMLVxKx9T3TWcRFbZQCzVa7PfQU25DUK7TTQAKx+xmVxSTBKo9+7aHBJVVOlHQ h8Ug== X-Gm-Message-State: AODbwcBu7Qe+ng8GZ+FZ5dSXWoMXSKeZgOhFl8fWZKLEXN8BCOaDt1oo +Sq+iFCiVb1Q411Szio1CnRcg/+mY14RZ1s= X-Received: by 10.55.166.137 with SMTP id p131mr551706qke.132.1495785014991; Fri, 26 May 2017 00:50:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.81.212 with HTTP; Fri, 26 May 2017 00:50:14 -0700 (PDT) From: Martin Young Date: Fri, 26 May 2017 07:50:00 -0000 Message-ID: Subject: [PATCH][MSP430] Fix return code error in simulator implemenations of write.c. To: newlib@sourceware.org Content-Type: multipart/mixed; boundary="94eb2c06eda07b0d55055068963e" X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00366.txt.bz2 --94eb2c06eda07b0d55055068963e Content-Type: text/plain; charset="UTF-8" Content-length: 420 Hello, In the MSP430 simulator implementation of write() in write.c the wrong local is used as the return code (it's returning the result of the last invocation of write_chunk() (variable c) rather than the aggregate write size (variable rv). This causes issues for users of write(). Patch included as attachment to avoid whitespace issues. I do do not have the ability to apply patch this myself. Regards, -Martin. --94eb2c06eda07b0d55055068963e Content-Type: application/octet-stream; name="rc.patch" Content-Disposition: attachment; filename="rc.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j35jree00 Content-length: 932 RnJvbSA1OTdlMTcyNWE4MDdiMDAyNWI3NzRhNjNiNzk4NzM0YzllMjEwMmYw IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNYXJ0aW4gPG1hcnRp bi55QHNvbW5pdW10ZWNoLmNvbT4KRGF0ZTogV2VkLCAxIE1hciAyMDE3IDEw OjA3OjQwICswMDAwClN1YmplY3Q6IFtQQVRDSF0gRml4IHJldHVybiBjb2Rl IGVycm9yIGluIHNpbXVsYXRvciBpbXBsZW1lbmF0aW9ucyBvZiB3cml0ZS5j LgogQ2FzZSAjNTA3MwoKLS0tCiBuZXdsaWIuc3VidHJlZS9saWJnbG9zcy9t c3A0MzAvd3JpdGUuYyB8IDIgKy0KIDEgZmlsZSBjaGFuZ2VkLCAxIGluc2Vy dGlvbigrKSwgMSBkZWxldGlvbigtKQoKZGlmZiAtLWdpdCBhL25ld2xpYi5z dWJ0cmVlL2xpYmdsb3NzL21zcDQzMC93cml0ZS5jIGIvbmV3bGliLnN1YnRy ZWUvbGliZ2xvc3MvbXNwNDMwL3dyaXRlLmMKaW5kZXggMGMwMTA5OC4uM2E1 YTlmOCAxMDA2NDQKLS0tIGEvbmV3bGliLnN1YnRyZWUvbGliZ2xvc3MvbXNw NDMwL3dyaXRlLmMKKysrIGIvbmV3bGliLnN1YnRyZWUvbGliZ2xvc3MvbXNw NDMwL3dyaXRlLmMKQEAgLTU1LDUgKzU1LDUgQEAgd3JpdGUgKGludCBmZCwg Y2hhciAqYnVmLCBpbnQgbGVuKQogICAgICAgbGVuIC09IGw7CiAgICAgICBi dWYgKz0gbDsKICAgICB9Ci0gIHJldHVybiBjOworICByZXR1cm4gcnY7CiB9 Ci0tIAoyLjkuMwoK --94eb2c06eda07b0d55055068963e--