summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/Lint_setjmp.c
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-09-09 19:22:45 +0000
committerotto <otto@openbsd.org>2007-09-09 19:22:45 +0000
commit8ae11ad961e8d1402838e7984c33dae358d81cae (patch)
treedeaa47b76bf712e3b7ca14ab52f20bfe8d1d89da /lib/libc/sys/Lint_setjmp.c
parentSilence erroneous "environ used, but not defined" lint warning by (diff)
downloadwireguard-openbsd-8ae11ad961e8d1402838e7984c33dae358d81cae.tar.xz
wireguard-openbsd-8ae11ad961e8d1402838e7984c33dae358d81cae.zip
Add lint stubs for the longjmp family of functions which are defined in
assembly on all platforms. ok deraadt@
Diffstat (limited to 'lib/libc/sys/Lint_setjmp.c')
-rw-r--r--lib/libc/sys/Lint_setjmp.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libc/sys/Lint_setjmp.c b/lib/libc/sys/Lint_setjmp.c
new file mode 100644
index 00000000000..a65e121f20d
--- /dev/null
+++ b/lib/libc/sys/Lint_setjmp.c
@@ -0,0 +1,19 @@
+/* $OpenBSD: Lint_setjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */
+
+/* Public domain, Otto Moerbeek, 2007 */
+
+#include <setjmp.h>
+
+/*ARGSUSED*/
+int
+setjmp(jmp_buf env)
+{
+ return 0;
+}
+
+/*ARGSUSED*/
+int
+_setjmp(jmp_buf env)
+{
+ return 0;
+}