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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node_tty.h

Issue 23005005: [NaCl SDK] nacl_io: Add initial implementations of kill and signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 4 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/mount_node_tty.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
index 87c8191506d3fd0b0b7bb10479defd83afac9c00..8bf5b173047b273e9430f679cdcc0e84621e9419 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
@@ -47,20 +47,26 @@ class MountNodeTty : public MountNodeCharDevice {
}
private:
- virtual Error Write(size_t offs,
- const void* buf,
- size_t count,
- int* out_bytes,
- bool locked);
Error ProcessInput(struct tioc_nacl_input_string* message);
Error Echo(const char* string, int count);
void InitTermios();
std::deque<char> input_buffer_;
bool is_readable_;
+ bool did_resize_;
pthread_cond_t is_readable_cond_;
- std::string prefix_;
struct termios termios_;
+
+ /// Current height of terminal in rows. Set via ioctl(2).
+ int rows_;
+ /// Current width of terminal in columns. Set via ioctl(2).
+ int cols_;
+
+ // Output handler for TTY. This is set via ioctl(2).
+ struct tioc_nacl_output output_handler_;
+ // Lock to protect output_handler_. This lock gets aquired whenever
+ // output_handler_ is used or set.
+ sdk_util::SimpleLock output_lock_;
};
}
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/kernel_proxy.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_node_tty.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698