On Sun, 11 Nov 2012, Emmanuel Dreyfus wrote:
Taylor R Campbell <campbell+netbsd-tech-kern%mumble.net@localhost> wrote:I know this is a bike shed, and I'm sorry to be the one to bring it up, but can we use the names chmodat, chownat, &c., for our native system calls, and just use libc aliases or _BLAH_SOURCE nonsense or something for the ridiculous `f' prefix on fchmodat, fchownat, &c.?What is the goal? You want to write userland code using chmodat() instead of fchmodat()?
I want the names to follow a clear and easily-documented pattern. Takes a name Takes a fd, not a name Takes a name and an "at" fd (prepend "f") (append "at") ------------ ---------------------- --------------------------- open - (fopen is different) openat link - linkat unlink - unlinkat rename - renameat chdir fchdir chdirat mkdir fmkdir mkdirat mkfifo fmkfifo mkfifoat utimens futimens utimensat chmod fchmod chmodat (not fchmodat) chown fchown chownat (not fchownat) stat fstat statat (not fstatat) access - accessat (not faccessat) However, I also want the inconsistent POSIX names to be provided. I don't know a good way of satisfying both goals. --apb (Alan Barrett)