| 53 | } |
| 54 | |
| 55 | void |
| 56 | timespec_sub(const struct timespec *a, const struct timespec *b, struct timespec *result) |
| 57 | { |
| 58 | result->tv_sec = a->tv_sec - b->tv_sec; |
| 59 | result->tv_nsec = a->tv_nsec - b->tv_nsec; |
| 60 | |
| 61 | if (result->tv_nsec < 0) |
| 62 | { |
| 63 | result->tv_sec -= 1; |
| 64 | result->tv_nsec += 1000000000L; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | int |
| 69 | dir_exists(char *path) |
no outgoing calls
no test coverage detected
searching dependent graphs…