Date: Fri, 20 Sep 1996 13:58:20 -0500 (CDT) From: Paul DuBois <dubois@primate.wisc.edu> To: hsu@freefall.freebsd.org (Jeffrey Hsu) Cc: hackers@freefall.freebsd.org Subject: Re: libc_r bug Message-ID: <199609201858.NAA00906@night.primate.wisc.edu> In-Reply-To: <199609200828.BAA01366@freefall.freebsd.org> from "Jeffrey Hsu" at Sep 20, 96 01:28:29 am
next in thread | previous in thread | raw e-mail | index | archive | help
>The following program exhibits a bug in the latest version of libc_r. >If the two lines are reversed, then everything's okay. > >main() >{ > write(1, "hi", 2); > printf("hello world\n"); >} What happens, and what do you expect to happen? You're mixing stdio (buffered) and non-stdio (unbuffered) I/O. Unpredictable results will often ensue.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609201858.NAA00906>