error.h (a1c7435ae31c9cd90d5ce80fa255653803fbcf40) error.h (46be34b90213ebd9037cb2c24aec0009d7f2f5c1)
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.8 1998/08/24 10:20:36 cracauer Exp $
37 * $Id: error.h,v 1.9 1998/08/24 19:15:48 cracauer 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 */
46#define E_EXEC 04 /* executing a program */
47
48
49/*
50 * We enclose jmp_buf in a structure so that we can declare pointers to
51 * jump locations. The global variable handler contains the location to
52 * jump to when an exception occurs, and the global variable exception
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 */
46#define E_EXEC 04 /* executing a program */
47
48
49/*
50 * We enclose jmp_buf in a structure so that we can declare pointers to
51 * jump locations. The global variable handler contains the location to
52 * jump to when an exception occurs, and the global variable exception
53 * contains a code identifying the exeception. To implement nested
53 * contains a code identifying the exception. To implement nested
54 * exception handlers, the user should save the value of handler on entry
55 * to an inner scope, set handler to point to a jmploc structure for the
56 * inner scope, and restore handler on exit from the scope.
57 */
58
59#include <setjmp.h>
60#include <signal.h>
61

--- 47 unchanged lines hidden ---
54 * exception handlers, the user should save the value of handler on entry
55 * to an inner scope, set handler to point to a jmploc structure for the
56 * inner scope, and restore handler on exit from the scope.
57 */
58
59#include <setjmp.h>
60#include <signal.h>
61

--- 47 unchanged lines hidden ---