From 59c161d478f1df7b87f36a18a60b8be4490de572 Mon Sep 17 00:00:00 2001 From: Donn Seeley Date: Fri, 22 Feb 1991 16:05:57 -0800 Subject: [PATCH] Reorganized declarations to accommodate both ANSI and POSIX. We still don't have implementations of sigsetjmp() and siglongjmp(). SCCS-vsn: include/setjmp.h 5.4 --- usr/src/include/setjmp.h | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/usr/src/include/setjmp.h b/usr/src/include/setjmp.h index 1db72adc9a..d2c2f1353e 100644 --- a/usr/src/include/setjmp.h +++ b/usr/src/include/setjmp.h @@ -26,27 +26,34 @@ #define _JBLEN 10 #endif +#ifndef _ANSI_SOURCE /* - * sigsetjmp/siglongjmp use the first int to decide if the - * signal mask was saved or not. + * WARNING: sigsetjmp() isn't supported yet, this is a placeholder. */ typedef int sigjmp_buf[_JBLEN + 1]; +#endif /* not ANSI */ -#ifndef _POSIX_SOURCE typedef int jmp_buf[_JBLEN]; -#endif #include __BEGIN_DECLS -int sigsetjmp __P((sigjmp_buf, int)); -void siglongjmp __P((sigjmp_buf, int)); -#ifndef _POSIX_SOURCE -int setjmp __P((jmp_buf)); -int _setjmp __P((jmp_buf)); -void longjmp __P((jmp_buf, int)); -void _longjmp __P((jmp_buf, int)); -#endif +int setjmp __P((jmp_buf)); +void longjmp __P((jmp_buf, int)); + +#ifndef _ANSI_SOURCE +/* + * WARNING: sigsetjmp() isn't supported yet, this is a placeholder. + */ +int sigsetjmp __P((sigjmp_buf, int)); +void siglongjmp __P((sigjmp_buf, int)); +#endif /* not ANSI */ + +#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) +int _setjmp __P((jmp_buf)); +void _longjmp __P((jmp_buf, int)); +void longjmperror __P((void)); +#endif /* neither ANSI nor POSIX */ __END_DECLS #endif /* !_SETJMP_H_ */ -- 2.20.1