summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-09 19:22:46 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-09 19:22:46 +0000
commita5a6796bd372b58d4d32de71502d4a39a46b9262 (patch)
tree821aa79b566264d2230a33cbc2f5a710e437606e /lib
parent0188acdcfce04c0703247f836bb4238c1d8611c3 (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.c17
-rw-r--r--lib/libc/sys/Lint_setjmp.c19
-rw-r--r--lib/libc/sys/Lint_siglongjmp.c11
-rw-r--r--lib/libc/sys/Lint_sigsetjmp.c12
-rw-r--r--lib/libc/sys/Makefile.inc10
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.