This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: putc_unlocked in stdio.h but not in libs (1.3.11-3)
- From: "Conrad Scott" <Conrad dot Scott at dsl dot pipex dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 3 Jul 2002 16:03:24 +0100
- Subject: Re: putc_unlocked in stdio.h but not in libs (1.3.11-3)
- References: <3D23052F.3020407@perathoner.de>
"Marcello Perathoner" <marcello@perathoner.de> wrote:
> According to the FAQ putc_unlocked is not implemented
> and you don't find it in the libraries.
> But it is present in the stdio.h header.
The level of synchronicity on this issue is starting to get me
suspicious.
Taking up Corinna's point from yesterday, none of the unexported
functions from <stdio.h> are SUSv3 functions, they're all BSD-isms.
Then again, they are all just wrappers that call other (already
exported) functions, so size isn't much of an issue and you don't get
any extra funcionality.
A more important point I've tripped over is that cygwin doesn't seem
to provide implementations of the flockfile etc. functions used by
stdio to lock the FILE objects, and so the current version is not
thread-safe. Is that true? says I in some pain, having just gone
through cygserver replacing all <iostream.h> calls with <stdio.h>
calls to avoid a thread-safety problem in the C++ library :-(
Just for the record, the list of unexported functions from <stdio.h>
is currently:
getc_unlocked
getchar_unlocked
putc_unlocked
putchar_unlocked
setbuffer
setlinebuf
// Conrad
--
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/