X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 8 Dec 2009 11:42:35 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: unlinkat, symlinkat in wrong headers
Message-ID: <20091208104235.GB12303@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <loom.20091208T005847-339@post.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20091208T005847-339@post.gmane.org>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Dec  8 00:05, Eric Blake wrote:
> Per POSIX, unlinkat should be declared in <unistd.h>; but cygwin only declares 
> it in <fcntl.h>:
> 
> $ echo '#include <unistd.h>' | gcc -E - | grep unlink
> int __attribute__((__cdecl__)) unlink (const char *__path );
> $ echo '#include <fcntl.h>' | gcc -E - | grep unlink
> extern int unlinkat (int, const char *, int);
> 
> Likewise, symlinkat should be in <unistd.h>; but cygwin only declares it in 
> <stdio.h>:

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

