Looking for ANSI/VT100 code replacement.

Andrew MacIntyre andymac at bullseye.apana.org.au
Sun May 22 06:07:25 GMT 2005


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 at bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac at pcug.org.au             (alt) |        Belconnen ACT 2616
Web:    http://www.andymac.org/               |        Australia


More information about the freebsd-hackers mailing list