summaryrefslogtreecommitdiffstats
path: root/tools/testing/vsock/timeout.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/vsock/timeout.h')
-rw-r--r--tools/testing/vsock/timeout.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/vsock/timeout.h b/tools/testing/vsock/timeout.h
new file mode 100644
index 000000000..77db9ce98
--- /dev/null
+++ b/tools/testing/vsock/timeout.h
@@ -0,0 +1,14 @@
+#ifndef TIMEOUT_H
+#define TIMEOUT_H
+
+enum {
+ /* Default timeout */
+ TIMEOUT = 10 /* seconds */
+};
+
+void sigalrm(int signo);
+void timeout_begin(unsigned int seconds);
+void timeout_check(const char *operation);
+void timeout_end(void);
+
+#endif /* TIMEOUT_H */