On 09/07/2018 04:53 PM, Bruno Haible wrote:
Implemented as follows. The prototype is as in [3], except that I dropped the suffix '_np', because - Functions with suffix '_np' are in the system's namespace, that is, there is no requirement that different systems implement them with the same semantics or same prototype. - Gnulib has fewer backward compatibility requirements, in case we need to change the prototype in order to conform to some future POSIX standard.
Did you also read my POSIX request (which also drops _np)? http://austingroupbugs.net/view.php?id=1208
There, I argue that we also need posix_spawn_file_actions_addfchdir(), in part because it lets us get the same power as openat() in determining how relative file names are resolved in relation to an fd.
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org