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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_ 5 #ifndef LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_
6 #define LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_ 6 #define LIBRARIES_NACL_IO_MOUNT_NODE_TTY_H_
7 7
8 #include <poll.h> 8 #include <poll.h>
9 #include <pthread.h> 9 #include <pthread.h>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const void* buf, 51 const void* buf,
52 size_t count, 52 size_t count,
53 int* out_bytes, 53 int* out_bytes,
54 bool locked); 54 bool locked);
55 Error ProcessInput(struct tioc_nacl_input_string* message); 55 Error ProcessInput(struct tioc_nacl_input_string* message);
56 Error Echo(const char* string, int count); 56 Error Echo(const char* string, int count);
57 void InitTermios(); 57 void InitTermios();
58 58
59 std::deque<char> input_buffer_; 59 std::deque<char> input_buffer_;
60 bool is_readable_; 60 bool is_readable_;
61 bool did_resize_;
61 pthread_cond_t is_readable_cond_; 62 pthread_cond_t is_readable_cond_;
62 std::string prefix_; 63 std::string prefix_;
63 struct termios termios_; 64 struct termios termios_;
65 /// Current height of terminal in rows.
66 int rows_;
67 /// Current width of terminal in columns.
68 int cols_;
64 }; 69 };
65 70
66 } 71 }
67 72
68 #endif 73 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698