summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-05-12 02:31:36 +0000
committerRoland McGrath <roland@gnu.org>1994-05-12 02:31:36 +0000
commit5f728aaf9906d73179fbe50c3a61c66a82312f3f (patch)
tree35be9196de056614545375786f36d760735c7258 /misc
parent4ecf7ef7242e1c5502085f8b38458eea72889571 (diff)
entered into RCS
Diffstat (limited to 'misc')
-rw-r--r--misc/bsd-compat.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/bsd-compat.c b/misc/bsd-compat.c
index a03f550d7d..03c43eec57 100644
--- a/misc/bsd-compat.c
+++ b/misc/bsd-compat.c
@@ -31,9 +31,20 @@ Cambridge, MA 02139, USA. */
function_alias(getpgrp, __getpgrp, pid_t, (pid),
DEFUN(getpgrp, (pid), pid_t pid))
+/* These entry points allow for things compiled for another C library
+ that want the BSD-compatible definitions. (Of course, their jmp_buf
+ must be big enough.) */
+
#undef longjmp
#ifdef __STDC__
#define void __NORETURN void
#endif
function_alias_void(longjmp, siglongjmp, (env, val),
DEFUN(longjmp, (env, val), CONST jmp_buf env AND int val))
+
+#undef setjmp
+int
+DEFUN(setjmp, (env), jmp_buf env)
+{
+ return sigsetjmp (env, 1);
+}