Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2005 15:14:39 +1100
From:      Andrew MacIntyre <andymac@bullseye.apana.org.au>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Looking for ANSI/VT100 code replacement.
Message-ID:  <4290072F.1000101@bullseye.apana.org.au>
In-Reply-To: <20050521220935.GA884@skatecity>
References:  <20050520224726.GA7951@skatecity>	<20050520230845.GC51092@dan.emsphone.com> <20050521015105.GA9063@skatecity>	<20050521080723.GN2129@cirb503493.alcatel.com.au>	<20050521145807.GA51141@skatecity>	<20050521204719.GO2129@cirb503493.alcatel.com.au> <20050521220935.GA884@skatecity>

next in thread | previous in thread | raw e-mail | index | archive | help
alexander wrote:
> However burncd being a C app uses fprintf. Can I replace
> the functionality of fprintf under x86asm by using only syscalls?

fprintf(3) is most likely doing buffered I/O in the burncd case, which
for a tty defaults to line buffered.

Your code is doing unbuffered I/O, which might explain some of the
discrepancies you see.

Doing your own output buffering in assembly shouldn't be any big deal
that I can see.

-------------------------------------------------------------------------
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac@bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac@pcug.org.au             (alt) |        Belconnen ACT 2616
Web:    http://www.andymac.org/               |        Australia



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4290072F.1000101>