Date: Thu, 13 Aug 92 11:05:52 +0200 From: kunst AT prl DOT philips DOT nl (Pieter Kunst) Subject: raw standard output in GO32 with 'bcc' Reply-To: kunst AT prl DOT philips DOT nl To: djgpp AT sun DOT soe DOT clarkson DOT edu, dj AT ctron DOT com Hello DJ, When I added my own VME board page-fault handler to GO32 (1.07) and recompiled with 'bcc' (instead of 'tcc' you are using), the new GO32 made the stdout (and stderr) calls in raw mode, resulting in all carriage returns missing after each newline. I didn't have this problem with the 1.05 version. It turned out that the problem was with the newly added '_openfd' table in 'control.c'. Borland C uses an additional bit (O_TEXT in fcntl.h) to indicate that the handle belongs to a text stream. The patch to 'control.c' (added at the end of this message) also works with 'tcc'. Pieter Kunst. 'If you like warning messages, switch from tcc to bcc...' ---------------- diff -c3 starts below this line --------------------- *** control.org Thu Aug 13 10:33:50 1992 --- control.c Thu Aug 13 10:34:40 1992 *************** *** 68,74 **** extern word32 far *pd; short _openfd[255] = { ! 0x2001,0x2002,0x2002,0xa004,0xa002,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, --- 68,74 ---- extern word32 far *pd; short _openfd[255] = { ! 0x6001,0x7002,0x6002,0xa004,0xa002,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,