^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef TIMEOUT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define TIMEOUT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) enum {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) /* Default timeout */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) TIMEOUT = 10 /* seconds */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) void sigalrm(int signo);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) void timeout_begin(unsigned int seconds);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) void timeout_check(const char *operation);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void timeout_end(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #endif /* TIMEOUT_H */