Add socket handler & console client
This change adds a socket handler to the console-server, exposing a unix
domain socket for the UART data. We use this to replace the existing
stdio handler.
We also add a client for this socket, allowing multiple processes to
read/write data from & to the server.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/console-socket.c b/console-socket.c
new file mode 100644
index 0000000..c81c044
--- /dev/null
+++ b/console-socket.c
@@ -0,0 +1,5 @@
+
+const char console_socket_path[] = "\0obmc-uart-console";
+const size_t console_socket_len = sizeof(console_socket_path);
+const char *console_socket_path_readable = console_socket_path + 1;
+