Hi all,

While running the libc-test test suite on a customized clang+musl build, I had trouble with some of the tests because of issues with time accuracy.
I can go in detail if needed, but the problem seemed to boil down to the time() function in musl (in src/time/time.c) using a clock_gettime syscall (without vdso) instead of using the Linux time syscall that we expected it to use. Some other libc implementations use this syscall, and indeed after switching the syscall used in time () the tests passed, seemingly because the accuracy of the clocks used matched up.
My main question is why musl's implementation doesn't use the time syscall, I'd be happy to hear if there was a special reason for this.

Thanks, Zev