delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/05/16/12:54:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 16 May 2001 12:46:53 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: __STRICT_ANSI__
Message-ID: <20010516124653.J16057@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <NHEELHJHHFKPMAEAFMFCOEEICFAA DOT huntharo AT msu DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <NHEELHJHHFKPMAEAFMFCOEEICFAA.huntharo@msu.edu>; from huntharo@msu.edu on Wed, May 16, 2001 at 09:38:04AM -0400

This is a question for the newlib mailing list.  That's where these
headers come from.

cgf

On Wed, May 16, 2001 at 09:38:04AM -0400, Harold Hunt wrote:
>I can't seem to understand the conditional prototyping of some functions in
>Cygwin's headers.
>
>When compiling Cygwin/XFree86, which uses -ansi, which in turn defines
>__STRICT_ANSI__, we get warnings about references to undefined functions.
>
>Below I have included the simplified prototyping of each offending function;
>I have removed other functions declared within the same #ifndef scope for
>simplicity.
>
>It looks to me like __STRICT_ANSI__ might not be being used correctly.  Any
>ideas?
>
>Harold
>
>Cygwin's stdio.h:
>#ifndef __STRICT_ANSI__
>#ifndef _REENT_ONLY
>FILE *	_EXFUN(fdopen, (int, const char *));
>#endif
>int	_EXFUN(fileno, (FILE *));
>int	_EXFUN(pclose, (FILE *));
>FILE *  _EXFUN(popen, (const char *, const char *));
>#endif
>
>GNU/Linux stdio.h:
>#ifdef __USE_POSIX
>extern FILE *fdopen (int __fd, __const char *__modes) __THROW;
>#endif
>
>#ifdef __USE_POSIX
>extern int fileno (FILE *__stream) __THROW;
>#endif
>
>#if defined __USE_POSIX2
>extern FILE *popen (__const char *__command, __const char *__modes) __THROW;
>extern int pclose (FILE *__stream) __THROW;
>#endif
>
>
>Cygwin's stdlib.h:
>#ifndef __STRICT_ANSI__
>#ifndef _REENT_ONLY
>int     _EXFUN(mkstemp,(char *));
>char *  _EXFUN(mktemp,(char *));
>#endif
>#endif
>
>GNU/Linux stdlib.h:
>#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
>extern int mkstemp (char *__template) __THROW;
>#endif
>
>
>--
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
cgf AT cygnus DOT com                        Red Hat, Inc.
http://sources.redhat.com/            http://www.redhat.com/

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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