Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: sysdeps/nacl/read.c

Issue 8116004: Fix error codes in read and sched_yield. (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sysdeps/nacl/sched_yield.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/read.c
diff --git a/sysdeps/nacl/read.c b/sysdeps/nacl/read.c
index 32dd536ae596f7d6ce43adf492c77cb4895ca446..2fd5a835f89e9b4b20e71788df1c51ce63c7f309 100644
--- a/sysdeps/nacl/read.c
+++ b/sysdeps/nacl/read.c
@@ -11,7 +11,7 @@ ssize_t __libc_read (int fd, void *buf, size_t size)
size_t nread;
int result = __nacl_irt_read (fd, buf, size, &nread);
if (result != 0) {
- errno = -result;
+ errno = result;
return -1;
}
return nread;
« no previous file with comments | « no previous file | sysdeps/nacl/sched_yield.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698