tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: linkat(2)



On Tue, Aug 02, 2011 at 03:19:58PM +0000, Emmanuel Dreyfus wrote:
 > I am about adding linkat(2), which is defined in 
 > The Open Group Technical Standard, 2006, Extended API Set Part 2.
 > However, I am not going to implement the whole Extended API Set Part 2,
 > at least for now. This means  I am going ot have linkat(2) but not 
 > openat(2) for instance.
 > 
 > That approach breaks our own build, because 
 > external/gpl2/xcvs/dist/lib/openat.h tests for AT_FDCW, which I defined 
 > for in <fcntl.h> linkat(2). Then it ssumes it means openat(2) is available.
 > 
 > Does that mean AT_FDCW should be guarded by #ifdef _NETBSD_SOURCE 
 > until the whole Extended API Set Part 2 is implemented?

There's a preexisting patch set for *at somewhere. It got rejected in
its original form because it did horrible things instead of
interfacing semi-sanely to namei.

The necessary namei parts should be tractable nowadays; however, I
probably can't get to it before this weekend, and it'll take just as
long to explain what to do as to do it myself...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index