delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/05/14/08:45:59

X-Spam-Check-By: sourceware.org
Message-ID: <46485A5F.6070705@byu.net>
Date: Mon, 14 May 2007 06:47:27 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.10) Gecko/20070221 Thunderbird/1.5.0.10 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: missing functions
References: <loom DOT 20070502T004544-728 AT post DOT gmane DOT org> <20070514121228 DOT GC12259 AT calimero DOT vinschen DOT de> <4648549E DOT 40203 AT byu DOT net> <20070514122516 DOT GA7880 AT ednor DOT casa DOT cgf DOT cx>
In-Reply-To: <20070514122516.GA7880@ednor.casa.cgf.cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Christopher Faylor on 5/14/2007 6:25 AM:
> Why do we need to export *vdprintf_r at all?  Does some standard define it?

Does cygwin care about providing reentrant versions of functions?  There
is precedent for doing this: as an example, cygwin.din already exports
asprintf_r.  The *_r versions let the user provide a struct _reent*
argument and manage the reentrancy themselves rather than relying on the
automatic _REENT (aka _impure_ptr) reentrancy provided by cygwin.
Furthermore, /usr/include/stdio.h already declares these functions as an
underscore variant, so right now, you can link when using _asprintf_r.

But I agree that no standard requires these reentrant variants, and that a
user relying on _asprintf_r from /usr/include/stdio.h is already
non-portable, so omitting these variants from cygwin.din does not bother me.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGSFpf84KuGfSFAYARAjPRAKCneWZH+m8FSjTyvt+vGuFEMZzoFQCdEXfs
/37upuKPeZm5idVYMgJENuo=
=L1DP
-----END PGP SIGNATURE-----

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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