some preliminaries for vdso clock support
authorRich Felker <dalias@aerifal.cx>
Sun, 24 Jul 2011 03:45:33 +0000 (23:45 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 24 Jul 2011 03:45:33 +0000 (23:45 -0400)
commite3eb49321c85e43fcc6842f3f57ee097b32555e4
tree126e8f35f23c92fdb7ff8f805c7d59b662c8b7ae
parentc0fe5b9da9f98b83262717c0090817f1fbb3d8a0
some preliminaries for vdso clock support

these changes also make it so clock_gettime(CLOCK_REALTIME, &ts) works
even on pre-2.6 kernels, emulated via the gettimeofday syscall. there
is no cost for the fallback check, as it falls under the error case
that already must be checked for storing the error code in errno, but
which would normally be hidden inside __syscall_ret.
src/time/clock_gettime.c
src/time/gettimeofday.c
src/time/time.c