move termios prototypes into a public header
authorSimon Marlow <marlowsd@gmail.com>
Mon, 3 Aug 2009 21:03:04 +0000 (21:03 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 3 Aug 2009 21:03:04 +0000 (21:03 +0000)
includes/Rts.h
includes/rts/TTY.h [new file with mode: 0644]
rts/RtsUtils.h

index f4cf545..3b5c5bd 100644 (file)
@@ -176,6 +176,7 @@ void _assertFail(const char *filename, unsigned int linenum)
 #include "rts/Ticky.h"
 #include "rts/Timer.h"
 #include "rts/Stable.h"
+#include "rts/TTY.h"
 
 /* Misc stuff without a home */
 DLL_IMPORT_RTS extern char **prog_argv;        /* so we can get at these from Haskell */
diff --git a/includes/rts/TTY.h b/includes/rts/TTY.h
new file mode 100644 (file)
index 0000000..f1ef62e
--- /dev/null
@@ -0,0 +1,15 @@
+/* -----------------------------------------------------------------------------
+ *
+ * (c) The GHC Team, 2009
+ *
+ * POSIX TTY-related functionality
+ *
+ * -------------------------------------------------------------------------- */
+
+#ifndef RTS_TTY_H
+#define RTS_TTY_H
+
+void* __hscore_get_saved_termios(int fd);
+void  __hscore_set_saved_termios(int fd, void* ts);
+
+#endif /* RTS_TTY_H */
index 14856bf..241cbf3 100644 (file)
@@ -39,10 +39,6 @@ char *ullong_format_string(ullong, char *, rtsBool);
 void heapCheckFail( void );
 #endif
 
-// XXX shouldn't be here
-void* __hscore_get_saved_termios(int fd);
-void  __hscore_set_saved_termios(int fd, void* ts);
-
 void printRtsInfo(void);
 
 HsInt genSymZh(void);