Chromium Code Reviews| 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..5778992f65ad9337a6ef2e9536b2769017532bf4 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 bool IsaTTY() { |
| +#ifdef __GLIBC__ |
| + // isatty is not yet hooked up to the IRT interface under glibc. |
| + return 0; |
| +#else |
| + int result = 0; |
| + int err = _real_isatty(real_fd_, &result); |
| + if (err) |
| + return err; |
|
binji
2014/03/18 19:41:17
return type is bool. Do we need to change the sign
|
| + return result != 0; |
| +#endif |
| + } |
| + |
| Error MMap(void* addr, |
| size_t length, |
| int prot, |