As long as we're adding all those features, why not support the openat2 flags too? Perhaps this should be implemented in Gnulib first, so that people can gain experience with the API.