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?
--
Emmanuel Dreyfus
ma...@netbsd.org
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de
But that does not answer the original question: it is sane to
ifdef _NETBSD_SOURCE a partial implementation of linkat(), while the
full thing is not yet ready.
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
dhol...@netbsd.org
> But that does not answer the original question: it is sane to
> ifdef _NETBSD_SOURCE a partial implementation of linkat(), while the
> full thing is not yet ready.
I can answer to myself: through config.h -> float.h -> whatever,
_NETBSD_SOURCE gets defined in
/usr/src-20110608/external/gpl2/xcvs/dist/lib/chdir-long.c
--
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz