| OLD | NEW |
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 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_IOCTL_H_ | 5 #ifndef LIBRARIES_NACL_IO_IOCTL_H_ |
| 6 #define LIBRARIES_NACL_IO_IOCTL_H_ | 6 #define LIBRARIES_NACL_IO_IOCTL_H_ |
| 7 | 7 |
| 8 /* ioctl to tell a tty mount to prefix every message with a particular | 8 /* ioctl to tell a tty mount to prefix every message with a particular |
| 9 * null-terminated string. Accepts a pointer to a C string which will | 9 * null-terminated string. Accepts a pointer to a C string which will |
| 10 * be the prefix. | 10 * be the prefix. |
| 11 */ | 11 */ |
| 12 #define TIOCNACLPREFIX 0xadcd01 | 12 #define TIOCNACLPREFIX 0xadcd01 |
| 13 | 13 |
| 14 /* ioctl to feed input to a tty mount. Accepts a pointer to the following | 14 /* ioctl to feed input to a tty mount. Accepts a pointer to the following |
| 15 * struct (tioc_nacl_input_string), which contains a pointer to an array | 15 * struct (tioc_nacl_input_string), which contains a pointer to an array |
| 16 * of characters. | 16 * of characters. |
| 17 */ | 17 */ |
| 18 #define TIOCNACLINPUT 0xadcd02 | 18 #define TIOCNACLINPUT 0xadcd02 |
| 19 | 19 |
| 20 struct tioc_nacl_input_string { | 20 struct tioc_nacl_input_string { |
| 21 size_t length; | 21 size_t length; |
| 22 const char* buffer; | 22 const char* buffer; |
| 23 }; | 23 }; |
| 24 | 24 |
| 25 #endif // LIBRARIES_NACL_IO_NACL_IO_H_ | 25 #endif /* LIBRARIES_NACL_IO_NACL_IO_H_ */ |
| OLD | NEW |