Add a testcase for PR ld/13839
[deliverable/binutils-gdb.git] / sim / common / dv-sockser.h
index fc21b55aaa14fa3122c0ae309f444d10a2f190f7..a0191f1a07a7cf5a1efd67879eae6e5980f2e098 100644 (file)
@@ -1,5 +1,5 @@
 /* Serial port emulation via sockets.
-   Copyright (C) 1998, Free Software Foundation, Inc.
+   Copyright (C) 1998, 2012 Free Software Foundation, Inc.
 
 This file is part of the GNU simulators.
 
@@ -20,12 +20,14 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #define DV_SOCKSER_H
 
 /* bits in result of dev_sockser_status */
-#define DV_SOCKSER_INPUT_EMPTY  1
-#define DV_SOCKSER_OUTPUT_EMPTY 2
+#define DV_SOCKSER_INPUT_EMPTY  0x1
+#define DV_SOCKSER_OUTPUT_EMPTY 0x2
+#define DV_SOCKSER_DISCONNECTED 0x4
 
 /* FIXME: later add a device ptr arg */
 extern int dv_sockser_status (SIM_DESC);
 int dv_sockser_write (SIM_DESC, unsigned char);
+int dv_sockser_write_buffer (SIM_DESC, const unsigned char *, unsigned);
 int dv_sockser_read (SIM_DESC);
 
 #endif /* DV_SOCKSER_H */
This page took 0.022905 seconds and 4 git commands to generate.