diff options
author | 2007-09-09 19:22:45 +0000 | |
---|---|---|
committer | 2007-09-09 19:22:45 +0000 | |
commit | 8ae11ad961e8d1402838e7984c33dae358d81cae (patch) | |
tree | deaa47b76bf712e3b7ca14ab52f20bfe8d1d89da /lib/libc/sys/Lint_setjmp.c | |
parent | Silence erroneous "environ used, but not defined" lint warning by (diff) | |
download | wireguard-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.c | 19 |
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; +} |