Windows fixes.
/*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
*
- * $Id: errno.c,v 1.3 1998/12/02 13:27:20 simonm Exp $
+ * $Id: errno.c,v 1.4 2001/01/26 17:51:40 rrt Exp $
*
* GHC Error Number Conversion
*/
#include "Rts.h"
#include "stgio.h"
+
+/* Raw errno */
+
+int *ghcErrno(void) {
+ return &errno;
+}
+
+
+/* Fancy errno */
+
int ghc_errno = 0;
int ghc_errtype = 0;
--- /dev/null
+/* -----------------------------------------------------------------------------
+ * $Id: errno.h,v 1.1 2001/01/26 17:51:40 rrt Exp $
+ *
+ * (c) The GHC Team 2001
+ *
+ * Haskell-usable version of errno
+ *
+ * ---------------------------------------------------------------------------*/
+
+#ifndef GHCERRNO_H
+#define GHCERRNO_H
+
+int *ghcErrno(void);
+
+#endif
/*
* (c) The GHC Team 2001
*
- * $Id: tcSetAttr.c,v 1.1 2001/01/16 14:06:14 simonmar Exp $
+ * $Id: tcSetAttr.c,v 1.2 2001/01/26 17:51:40 rrt Exp $
*
* A wrapper around tcsetattr() which works for a background process.
*/
#include <unistd.h>
#endif
+#ifndef mingw32_TARGET_OS
/* tcsetattr() when invoked by a background process causes the process
* to be sent SIGTTOU regardless of whether the process has TOSTOP set
* in its terminal flags (try it...). This function provides a
return res;
}
+#else
+#define tcSetAttr(f,o,t) tcsetattr((f),(o),(t))
+#endif