[libc-commits] [libc] [libc][stdio] implement rename via SYS_renameat2 (PR #86140)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Mar 21 09:17:13 PDT 2024


nickdesaulniers wrote:

https://www.kernel.org/doc/html/next/process/adding-syscalls.html#designing-the-api-planning-for-extension mentions:

> A new system call forms part of the API of the kernel, and has to be supported indefinitely. As such, it's a very good idea to explicitly discuss the interface on the kernel mailing list, and it's important to plan for future extensions of the interface.

> (The syscall table is littered with historical examples where this wasn't done, together with the corresponding follow-up system calls -- eventfd/eventfd2, dup2/dup3, inotify_init/inotify_init1, pipe/pipe2, **renameat**/**renameat2** -- so learn from the history of the kernel and plan for extensions from the start.)

(emphasis added)

https://github.com/llvm/llvm-project/pull/86140


More information about the libc-commits mailing list