On Wed, 3 Jul 2024 at 11:14, Christian Brauner <brauner@xxxxxxxxxx> wrote: > > In any case, which one of these does a new architecture have to add for > reasonable backward compatibility: > > fstat() > fstat64() > fstatat64() > > lstat() > lstat64() > > stat() > stat64() > statx() > > newstat() > newlstat() > newfstat() > newfstatat() Well, I do think that a *new* architecture should indeed add all of those, but make the 'struct stat' for all of them be the same. So then if people do the system call rewriting thing - or just do the manual system call thing with syscall(__NR_xyz, ...) it is all available, but it ends up being all the same code. Wouldn't that be lovely? Of course, I also happen to think that "new architecture" and "32-bit" is just crazy to begin with, so honestly, I don't even care. 32-bit architectures aren't really relevant for any new development, and I think we should just codify that. And on 64-bit architectures, the standard 'stat' works fine. Linus