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

Unified Diff: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc

Issue 59883020: [NaCl SDK] nacl_io: Enable isatty running under sel_ldr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
Index: native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
index 9c59b6a209394c4ecf48e8452193679b8cfe0dad..8b247c21fd9440b06b499b2954ee5ba5fc40c143 100644
--- a/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
+++ b/native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc
@@ -576,16 +576,16 @@ int KernelProxy::isatty(int fd) {
Error error = AcquireHandle(fd, &handle);
if (error) {
errno = error;
- return -1;
+ return 0;
}
- error = handle->node()->IsaTTY();
+ error = handle->node()->Isatty();
if (error) {
errno = error;
- return -1;
+ return 0;
}
- return 0;
+ return 1;
}
int KernelProxy::ioctl(int fd, int request, va_list args) {

Powered by Google App Engine
This is Rietveld 408576698