delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/01/17:41:20

X-Spam-Check-By: sourceware.org
Message-ID: <46B0FDEB.401BFCA0@dessent.net>
Date: Wed, 01 Aug 2007 14:40:59 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: printf
References: <C6EEDB0EB45A56439F73B1D23E39694A3DED30 AT USORL02P702 DOT ww007 DOT siemens DOT net> <46B0C457 DOT 4A512ECF AT dessent DOT net> <C6EEDB0EB45A56439F73B1D23E39694A3DEDBC AT USORL02P702 DOT ww007 DOT siemens DOT net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
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

"Frederich, Eric P21322" wrote:

> Do vfprintf statements compiled on Cygwin go through libiberty which
> then calls fprintf, or is there another vfprintf in whatever C library
> I'm linking against (either Cygwin's or Microsoft's)?

No, you're getting confused by libiberty.  It is used internally *in*
gcc as a portability aide for gcc itself.  When you call printf in a
Cygwin program, the implementation is in cygwin1.dll, and Cygwin
implements this internally via newlib.  Look at the Cygwin source (which
includes the newlib source) if you want to see how it's implemented, not
the gcc source.

Brian

--
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