timeout.h 301 B

123456789101112131415
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef TIMEOUT_H
  3. #define TIMEOUT_H
  4. enum {
  5. /* Default timeout */
  6. TIMEOUT = 10 /* seconds */
  7. };
  8. void sigalrm(int signo);
  9. void timeout_begin(unsigned int seconds);
  10. void timeout_check(const char *operation);
  11. void timeout_end(void);
  12. #endif /* TIMEOUT_H */