Mike Hearn mike@navi.cx writes:
Right, but why not always use syscalls and never glibc? I think that is what Vincent was getting at. I think you did say that it was a general principle to always use libc when possible but I don't remember if you explained why.
There are many reasons, for instance it works on all CPUs, it can take advantage of various glibc improvements (like faster syscalls) or bug fixes, it supports linker tricks like LD_PRELOAD, if someday FreeBSD adopts the epoll interface it will work there as well, etc.