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

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

Issue 334983007: [NaCl SDK] Remove use of TIOCNACLINPUT from nacl_io/ppapi_simple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback Created 6 years, 6 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/ioctl.h
diff --git a/native_client_sdk/src/libraries/nacl_io/ioctl.h b/native_client_sdk/src/libraries/nacl_io/ioctl.h
index 43bd718bbcc108ac35bc5a1be88ed3fed3ef49f9..d0c015615e8361f319362db51755d2944290ada8 100644
--- a/native_client_sdk/src/libraries/nacl_io/ioctl.h
+++ b/native_client_sdk/src/libraries/nacl_io/ioctl.h
@@ -8,20 +8,13 @@
#include <sys/types.h>
/*
- * ioctl to feed input to a tty node. Accepts a pointer to the following
- * struct (tioc_nacl_input_string), which contains a pointer to an array
- * of characters.
- */
-#define TIOCNACLINPUT 0xadcd02
-
-/*
- * ioctl to register an output handler with the tty node. Will fail
- * with EALREADY if a handler is already registered. Expects an
- * argument of type tioc_nacl_output. The handler will be called during
- * calls to write() on the thread that calls write(), or, for echoed input
- * during the TIOCNACLINPUT ioctl() on the thread calling ioctl(). The
- * handler should return the number of bytes written/handled, or -errno
- * if an error occured.
+ * ioctl to register an output handler with the tty node. Will fail with
+ * EALREADY if a handler is already registered. Expects an argument of type
+ * tioc_nacl_output. The handler will be called during calls to write() on the
+ * thread that calls write(), or, for echoed input during the
+ * NACL_IOC_HANDLEMESSAGE ioctl() on the thread calling ioctl(). The handler
+ * should return the number of bytes written/handled, or -errno if an error
+ * occured.
*/
#define TIOCNACLOUTPUT 0xadcd03
@@ -51,11 +44,6 @@
typedef char* naclioc_jspipe_name;
-struct tioc_nacl_input_string {
- size_t length;
- const char* buffer;
-};
-
typedef ssize_t (*tioc_nacl_output_handler_t)(const char* buf,
size_t count,
void* user_data);

Powered by Google App Engine
This is Rietveld 408576698