vsp 119 sys/time.h #define timespecadd(tsp, usp, vsp) \ vsp 121 sys/time.h (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ vsp 122 sys/time.h (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \ vsp 123 sys/time.h if ((vsp)->tv_nsec >= 1000000000L) { \ vsp 124 sys/time.h (vsp)->tv_sec++; \ vsp 125 sys/time.h (vsp)->tv_nsec -= 1000000000L; \ vsp 128 sys/time.h #define timespecsub(tsp, usp, vsp) \ vsp 130 sys/time.h (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ vsp 131 sys/time.h (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ vsp 132 sys/time.h if ((vsp)->tv_nsec < 0) { \ vsp 133 sys/time.h (vsp)->tv_sec--; \ vsp 134 sys/time.h (vsp)->tv_nsec += 1000000000L; \