Paul Eggert wrote: > Though I am starting to have my doubts about openat2 except as a base to > implement a nicer API. The openat2 API works only as an openat > extension, whereas what tar needs is an extension that also works for > fstatat, fchmodat, mkdirat, etc.
Can we view the 'open_how' structure as the data part of an object (in the sense of object-oriented programming)? Then openat2 is one of the methods of this object, and fstatat2 fchmodat2 mkdirat2 realpath2 / canonicalize2 would be other methods on it. Or maybe can the core of openat2 — let's call it a "filename resolver algorithm" — be abstracted out in a way that openat2, fstatat2, mkdirat2, etc. make use of it? Bruno
