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: <8AC36D3167EED41184C800508BD9540501674181@apollo.adtech-inc.com> From: "Ching, Jimen" To: "'cygwin AT cygwin DOT com'" Subject: Re: missing prototypes Date: Mon, 17 Sep 2001 10:11:41 -1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" On Sat, 15 Sep 2001 00:51:02 -0400, Christopher Faylor wrote: >On Fri, Sep 14, 2001 at 05:39:18PM -1000, Ching, Jimen wrote: >>Could someone please add these prototypes to the specified headers? >> >>process.h: int getpid(void) >>io.h: int access(const char *path, int amode); > >Both of those functions are declared in unistd.h. Yes. But if I use -mwin32, should I be including this file? The reason I requested the above is because I am trying to port an application to cygwin from Borland. Everything works ok except that the source code is compiled as C++ and a missing prototype in C++ is an error. Well, the missing prototype is not the cause, but no prototype means types are incorrectly converted, which causes the error. --jc -- jching AT adtech-inc DOT com Adtech, Inc. (808) 734-3300 -- 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/