delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/03/11:02:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <02b501c222a2$c8b9c7a0$6132bc3e@BABEL>
From: "Conrad Scott" <Conrad DOT Scott AT dsl DOT pipex DOT com>
To: <cygwin AT cygwin DOT com>
References: <3D23052F DOT 3020407 AT perathoner DOT de>
Subject: Re: putc_unlocked in stdio.h but not in libs (1.3.11-3)
Date: Wed, 3 Jul 2002 16:03:24 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

"Marcello Perathoner" <marcello AT perathoner DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019