Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Fri, 2 Nov 2001 21:39:22 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: pthread: thread switching bug? Message-ID: <20011102213922.J31918@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.21i On Sat, Nov 03, 2001 at 12:50:06AM +0100, Heribert Dahms wrote: >Hi Rob, > >I'd expect write() to be atomic, if "small" enough, but not print() or >fprintf()! > >I once more cite APUE >(Richard W. Steven's Advanced Programming in the UNIX Environment), >chapter 10.6 Reentrant Functions: >"Most implementations of the standard I/O library >use global data structures in a nonreentrant way" That is not true of newlib, AFAIK. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/