| 1 |
|
| 2 | #ifndef TIMEOUT_H
|
| 3 | #define TIMEOUT_H
|
| 4 |
|
| 5 | enum {
|
| 6 |
|
| 7 | TIMEOUT = 10
|
| 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 | int timeout_usleep(useconds_t usec);
|
| 15 |
|
| 16 | #endif
|