* Implementation of error(3), prints an error message and exits. */
| 305 | * Implementation of error(3), prints an error message and exits. |
| 306 | */ |
| 307 | void t_error(int status, int errnum, const char *format, ...) |
| 308 | { |
| 309 | va_list args; |
| 310 | va_start(args, format); |
| 311 | |
| 312 | vfprintf(stderr, format, args); |
| 313 | if (errnum) |
| 314 | fprintf(stderr, ": %s", strerror(errnum)); |
| 315 | |
| 316 | fprintf(stderr, "\n"); |
| 317 | va_end(args); |
| 318 | exit(status); |
| 319 | } |
| 320 | |
| 321 | unsigned long long mtime_since(const struct timeval *s, const struct timeval *e) |
| 322 | { |
no outgoing calls