>Implementing nanosleep() does not require enormous resolution, >although there are complications.
well, yes. it requires that struct timespec crud as well. the interaction with signals doesn't seem to be relevant. at least it doesn't use ptrace directly!