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

Unified Diff: native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.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/passthroughfs/passthrough_fs.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc b/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc
index 4b654f19c220d2e410f470d06f834d5b1d8cd717..ebbec7d042a1b1a19fd3a915a04c4eaef13ea4b6 100644
--- a/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc
+++ b/native_client_sdk/src/libraries/nacl_io/passthroughfs/passthrough_fs.cc
@@ -90,6 +90,19 @@ class PassthroughFsNode : public Node {
return 0;
}
+ virtual Error Isatty() {
+#ifdef __GLIBC__
+ // isatty is not yet hooked up to the IRT interface under glibc.
+ return ENOTTY;
+#else
+ int result = 0;
+ int err = _real_isatty(real_fd_, &result);
+ if (err)
+ return err;
+ return 0;
+#endif
+ }
+
Error MMap(void* addr,
size_t length,
int prot,
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/node.cc ('k') | native_client_sdk/src/libraries/nacl_io/syscalls/isatty.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698