2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Emit one character via raw IO
10 /*****i***********************************************************************
13 #include <proto/exec.h>
15 AROS_LH1(void, RawPutChar
,
18 AROS_LHA(UBYTE
, chr
, D0
),
21 struct ExecBase
*, SysBase
, 86, Exec
)
24 Emits a single character.
27 chr - The character to emit
33 This function is for very low level debugging only.
40 RawIOInit(), RawPutChar(), RawMayGetChar()
46 *****************************************************************************/
50 /* Don't write 0 bytes */
53 /* Write char to stderr */
54 write (STDERR_FILENO
, &chr
, 1);
56 /* Make sure it makes it to the user. Slow but save.
57 On Linux this gives an error (stderr is already unbuffered) */
58 #if !(defined(__linux__) || defined(__FreeBSD__))
59 fsync (STDERR_FILENO
);