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

Unified Diff: native_client_sdk/src/libraries/nacl_io/node.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/node.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/node.cc b/native_client_sdk/src/libraries/nacl_io/node.cc
index ceaad6ce52e6134fcc4223a98f6bed1362679dd0..b8876edd1a16e755c60fe73a1e2f80a6c0976920 100644
--- a/native_client_sdk/src/libraries/nacl_io/node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/node.cc
@@ -184,7 +184,9 @@ bool Node::IsaFile() { return (stat_.st_mode & S_IFREG) != 0; }
bool Node::IsaSock() { return (stat_.st_mode & S_IFSOCK) != 0; }
-bool Node::IsaTTY() { return (stat_.st_mode & S_IFCHR) != 0; }
+Error Node::Isatty() {
+ return ENOTTY;
+}
Error Node::AddChild(const std::string& name, const ScopedNode& node) {
return ENOTDIR;

Powered by Google App Engine
This is Rietveld 408576698