X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 8 Dec 2009 11:42:35 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: unlinkat, symlinkat in wrong headers Message-ID: <20091208104235.GB12303@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Dec 8 00:05, Eric Blake wrote: > Per POSIX, unlinkat should be declared in ; but cygwin only declares > it in : > > $ echo '#include ' | gcc -E - | grep unlink > int __attribute__((__cdecl__)) unlink (const char *__path ); > $ echo '#include ' | gcc -E - | grep unlink > extern int unlinkat (int, const char *, int); > > Likewise, symlinkat should be in ; but cygwin only declares it in > : That's how it's defined in the Linux man pages. Apparently I took that for granted since the declarations are actually in unistd.h, contrary to the man pages. Dunno if we should really fix that for 1.7.1, but if you can come up with a patch for newlib ASAP... Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple