On 03/18/2015 01:33 PM, Paul Eggert wrote: > It depends on what one means by "work". POSIX allows dirfd to return -1 > and set errno = ENOTSUP. If gnulib dirfd does that on MinGW, dirfd's > callers should do the right thing when that happens.
I think POSIX 2001 allowed that, but with the openat() and friends added in POSIX 2008, I think that POSIX now prohibits this implementation, and requires that dirfd work rather than giving up with ENOTSUP. At any rate, gnulib should try and strive for returning a non-negative value, even if POSIX has a loophole that would allow -1. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature