2 * (c) The GRASP/AQUA Project, Glasgow University, 1998
4 * $Id: writeError.c,v 1.6 2001/05/18 16:54:07 simonmar Exp $
6 * hPutStr Runtime Support
10 Writing out error messages. This is done outside Haskell
11 (i.e., no use of the IO implementation is made), since it
12 might be in an unstable state (e.g., hClose stderr >> error "foo")
14 (A secondary reason is that ``error'' is used by the IO
15 implementation in one or two places.)
24 addrOf_ErrorHdrHook(void)
30 writeErrString__ (HsAddr msg_hdr, HsAddr msg, HsInt len)
36 resetNonBlockingFd(2);
38 /* Print error msg header */
40 ((void (*)(int))msg_hdr)(2/*stderr*/);
43 while ( (count = write(2,p,len)) < len) {
44 if (errno != EINTR ) {