-/*
- * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
- *
- * $Id: errno.c,v 1.1 1998/04/10 10:54:18 simonm Exp $
- *
- * GHC Error Number Conversion
- */
+%
+% (c) The GRASP/AQUA Project, Glasgow University, 1994
+%
+\subsection[errno.lc]{GHC Error Number Conversion}
+
+\begin{code}
-#include "Rts.h"
+#include "rtsdefs.h"
#include "stgio.h"
int ghc_errno = 0;
/* Collect all of the grotty #ifdef's in one place. */
-void cvtErrno(void)
+void cvtErrno(STG_NO_ARGS)
{
switch(errno) {
#ifdef E2BIG
}
void
-stdErrno(void)
+stdErrno(STG_NO_ARGS)
{
switch(ghc_errno) {
default:
break;
}
}
+
+\end{code}