Deleted Added
full compact
error.h (17987) error.h (18018)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)error.h 8.2 (Berkeley) 5/4/95
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)error.h 8.2 (Berkeley) 5/4/95
37 * $Id: error.h,v 1.2 1994/09/24 02:57:28 davidg Exp $
37 * $Id: error.h,v 1.3 1996/09/01 10:19:55 peter Exp $
38 */
39
40/*
41 * Types of operations (passed to the errmsg routine).
42 */
43
44#define E_OPEN 01 /* opening a file */
45#define E_CREAT 02 /* creating a file */

--- 39 unchanged lines hidden (view full) ---

85#define INTOFF suppressint++
86#define INTON { if (--suppressint == 0 && intpending) onint(); }
87#define FORCEINTON {suppressint = 0; if (intpending) onint();}
88#define CLEAR_PENDING_INT intpending = 0
89#define int_pending() intpending
90
91void exraise __P((int));
92void onint __P((void));
38 */
39
40/*
41 * Types of operations (passed to the errmsg routine).
42 */
43
44#define E_OPEN 01 /* opening a file */
45#define E_CREAT 02 /* creating a file */

--- 39 unchanged lines hidden (view full) ---

85#define INTOFF suppressint++
86#define INTON { if (--suppressint == 0 && intpending) onint(); }
87#define FORCEINTON {suppressint = 0; if (intpending) onint();}
88#define CLEAR_PENDING_INT intpending = 0
89#define int_pending() intpending
90
91void exraise __P((int));
92void onint __P((void));
93void error2 __P((char *, char *));
94void error __P((char *, ...));
95char *errmsg __P((int, int));
96
97
98/*
99 * BSD setjmp saves the signal mask, which violates ANSI C and takes time,
100 * so we use _setjmp instead.
101 */
102
103#ifdef BSD
104#define setjmp(jmploc) _setjmp(jmploc)
105#define longjmp(jmploc, val) _longjmp(jmploc, val)
106#endif
93void error __P((char *, ...));
94char *errmsg __P((int, int));
95
96
97/*
98 * BSD setjmp saves the signal mask, which violates ANSI C and takes time,
99 * so we use _setjmp instead.
100 */
101
102#ifdef BSD
103#define setjmp(jmploc) _setjmp(jmploc)
104#define longjmp(jmploc, val) _longjmp(jmploc, val)
105#endif