[project @ 1998-01-23 15:23:07 by sof]
authorsof <unknown>
Fri, 23 Jan 1998 15:23:07 +0000 (15:23 +0000)
committersof <unknown>
Fri, 23 Jan 1998 15:23:07 +0000 (15:23 +0000)
hook function for I/O errors

ghc/runtime/hooks/IOErrorHdr.lc [new file with mode: 0644]

diff --git a/ghc/runtime/hooks/IOErrorHdr.lc b/ghc/runtime/hooks/IOErrorHdr.lc
new file mode 100644 (file)
index 0000000..73676f5
--- /dev/null
@@ -0,0 +1,11 @@
+\begin{code}
+#include "rtsdefs.h"
+
+void
+IOErrorHdrHook (FILE *where)
+{
+    fflush( stdout );                  /* Flush out any pending output */
+
+    fprintf(where, "\nI/O error: ");
+}
+\end{code}