Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | #ifndef TIMEOUT_H |
3 | #define TIMEOUT_H | ||||
4 | |||||
5 | enum { | ||||
6 | /* Default timeout */ | ||||
7 | TIMEOUT = 10 /* seconds */ | ||||
8 | }; | ||||
9 | |||||
10 | void sigalrm(int signo); | ||||
11 | void timeout_begin(unsigned int seconds); | ||||
12 | void timeout_check(const char *operation); | ||||
13 | void timeout_end(void); | ||||
14 | |||||
15 | #endif /* TIMEOUT_H */ |