Reorganized declarations to accommodate both ANSI and POSIX. We still
authorDonn Seeley <donn@ucbvax.Berkeley.EDU>
Sat, 23 Feb 1991 00:05:57 +0000 (16:05 -0800)
committerDonn Seeley <donn@ucbvax.Berkeley.EDU>
Sat, 23 Feb 1991 00:05:57 +0000 (16:05 -0800)
don't have implementations of sigsetjmp() and siglongjmp().

SCCS-vsn: include/setjmp.h 5.4

usr/src/include/setjmp.h

index 1db72ad..d2c2f13 100644 (file)
 #define _JBLEN 10
 #endif
 
 #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];
  */
 typedef int sigjmp_buf[_JBLEN + 1];
+#endif /* not ANSI */
 
 
-#ifndef _POSIX_SOURCE
 typedef int jmp_buf[_JBLEN];
 typedef int jmp_buf[_JBLEN];
-#endif
 
 #include <sys/cdefs.h>
 
 __BEGIN_DECLS
 
 #include <sys/cdefs.h>
 
 __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_ */
 __END_DECLS
 
 #endif /* !_SETJMP_H_ */