-/*
- * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
- *
- * $Id: openFile.c,v 1.1 1998/04/10 10:54:42 simonm Exp $
- *
- * openFile Runtime Support
- */
-
-#include "Rts.h"
+%
+% (c) The GRASP/AQUA Project, Glasgow University, 1994
+%
+\subsection[openFile.lc]{openFile Runtime Support}
+
+\begin{code}
+
+#include "rtsdefs.h"
#include "stgio.h"
#ifdef HAVE_SYS_TYPES_H
#endif
StgAddr
-openFile(StgByteArray file, StgByteArray how)
+openFile(file, how)
+StgByteArray file;
+StgByteArray how;
{
FILE *fp;
int fd;
break;
default:
fprintf(stderr, "openFile: unknown mode `%s'\n", how);
- exit(EXIT_FAILURE);
+ EXIT(EXIT_FAILURE);
}
/* First try to open without creating */
return (StgAddr) fp;
}
+
+\end{code}