2 % (c) The GRASP/AQUA Project, Glasgow University, 1998
5 Writing out error messages. This is done outside Haskell
6 (i.e., no use of the IO implementation is made), since it
7 might be in an unstable state (e.g., hClose stderr >> error "foo")
9 (A secondary reason is that ``error'' is used by the IO
10 implementation in one or two places.)
18 writeErrString__ (msg_hdr, msg, len)
27 /* Print error msg header */
28 ((void (*)(int))msg_hdr)(2/*stderr*/);
30 while ( (count = write(2,p,len)) < len) {
31 if (errno != EINTR ) {