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.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/testing/vsock/timeout.h b/tools/testing/vsock/timeout.h
new file mode 100644
index 000000000..ecb7c840e
--- /dev/null
+++ b/tools/testing/vsock/timeout.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+#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 */