On Wed, Apr 11, 2012 at 10:58 AM, H. Peter Anvin <hpa@xxxxxxxxx> wrote: > > But it still has the same braindamage: one system call per loop > invocation, and we can do better. I would much rather see fdwalk() in SUS. Why would we bother to do better? System calls are cheap, and usually you actually do want to do something about the fd, so you actually want to iterate over them. I'd much rather have simple cheap interfaces than anything else. If SuS has a F_NEXT fcntl, let's just do that thing. Much simpler than doing something more complex and then just having to emulate the simple thing in user space anyway. If a standard interface exists, we should just use it. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html