On Sat Feb 27, 2021 at 12:58 PM EST, Aleksa Sarai wrote: > Maybe a mkdirat2(2) (which takes a flags argument -- sigh) that can be > told to return a handle to the new directory would be a nicer API. That seems appropriate. Hear hear on the sigh. > Changing the semantics of open scares me a fair bit -- you could > probably change openat2(2) since it's not as widely used yet. Seems agreeable, at least for a start.