diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-09 19:22:46 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2007-09-09 19:22:46 +0000 |
commit | a5a6796bd372b58d4d32de71502d4a39a46b9262 (patch) | |
tree | 821aa79b566264d2230a33cbc2f5a710e437606e /lib | |
parent | 0188acdcfce04c0703247f836bb4238c1d8611c3 (diff) |
Add lint stubs for the longjmp family of functions which are defined in
assembly on all platforms. ok deraadt@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/Lint_longjmp.c | 17 | ||||
-rw-r--r-- | lib/libc/sys/Lint_setjmp.c | 19 | ||||
-rw-r--r-- | lib/libc/sys/Lint_siglongjmp.c | 11 | ||||
-rw-r--r-- | lib/libc/sys/Lint_sigsetjmp.c | 12 | ||||
-rw-r--r-- | lib/libc/sys/Makefile.inc | 10 |
5 files changed, 66 insertions, 3 deletions
diff --git a/lib/libc/sys/Lint_longjmp.c b/lib/libc/sys/Lint_longjmp.c new file mode 100644 index 00000000000..4b3b1b864f6 --- /dev/null +++ b/lib/libc/sys/Lint_longjmp.c @@ -0,0 +1,17 @@ +/* $OpenBSD: Lint_longjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */ + +/* Public domain, Otto Moerbeek, 2007 */ + +#include <setjmp.h> + +/*ARGSUSED*/ +void +longjmp(jmp_buf env, int val) +{ +} + +/*ARGSUSED*/ +void +_longjmp(jmp_buf env, int val) +{ +} 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; +} diff --git a/lib/libc/sys/Lint_siglongjmp.c b/lib/libc/sys/Lint_siglongjmp.c new file mode 100644 index 00000000000..efb56bf9876 --- /dev/null +++ b/lib/libc/sys/Lint_siglongjmp.c @@ -0,0 +1,11 @@ +/* $OpenBSD: Lint_siglongjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */ + +/* Public domain, Otto Moerbeek, 2007 */ + +#include <setjmp.h> + +/*ARGSUSED*/ +void +siglongjmp(sigjmp_buf env, int val) +{ +} diff --git a/lib/libc/sys/Lint_sigsetjmp.c b/lib/libc/sys/Lint_sigsetjmp.c new file mode 100644 index 00000000000..cd38e37eb20 --- /dev/null +++ b/lib/libc/sys/Lint_sigsetjmp.c @@ -0,0 +1,12 @@ +/* $OpenBSD: Lint_sigsetjmp.c,v 1.1 2007/09/09 19:22:45 otto Exp $ */ + +/* Public domain, Otto Moerbeek, 2007 */ + +#include <setjmp.h> + +/*ARGSUSED*/ +int +sigsetjmp(sigjmp_buf env, int savemask) +{ + return 0; +} diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index 6e114fb3065..7ab4b7a35a6 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.81 2007/09/09 18:46:34 otto Exp $ +# $OpenBSD: Makefile.inc,v 1.82 2007/09/09 19:22:45 otto Exp $ # $NetBSD: Makefile.inc,v 1.35 1995/10/16 23:49:07 jtc Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/17/93 @@ -13,11 +13,15 @@ SRCS+= Ovfork.S brk.S cerror.S exect.S fork.S rfork.S \ LSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ Lint_rfork.c Lint_sbrk.c \ Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ - Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c + Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c \ + Lint_setjmp.c Lint_longjmp.c \ + Lint_sigsetjmp.c Lint_siglongjmp.c DPSRCS+= Lint_Ovfork.c Lint_brk.c Lint_exect.c Lint_fork.c \ Lint_sbrk.c \ Lint_sigpending.c Lint_sigprocmask.c Lint_sigreturn.c \ - Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c + Lint_sigsuspend.c Lint_syscall.c Lint_crt.c Lint_environ.c \ + Lint_setjmp.c Lint_longjmp.c \ + Lint_sigsetjmp.c Lint_siglongjmp.c # glue to provide compatibility between GCC 1.X and 2.X and for compat # with old syscall interfaces. |