Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <20010516233855.29403.qmail@web6405.mail.yahoo.com> Date: Thu, 17 May 2001 09:38:55 +1000 (EST) From: =?iso-8859-1?q?Danny=20Smith?= Subject: Re: __STRICT_ANSI__ To: cygwin In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit --- 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? > None of the functions you list are in the ANSI standard. If you want ANSI portable code, don't use them. __STRICT_ANSI__ is doing its job correctly, thank you very much. Danny > 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 > _____________________________________________________________________________ http://messenger.yahoo.com.au - Yahoo! Messenger - Voice chat, mail alerts, stock quotes and favourite news and lots more! -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple