]> git.saurik.com Git - apple/libc.git/blob - gen.subproj/i386.subproj/setjmperr.c
Libc-166.tar.gz
[apple/libc.git] / gen.subproj / i386.subproj / setjmperr.c
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * Copyright (c) 1980 Regents of the University of California.
24 * All rights reserved.
25 *
26 * Redistribution and use in source and binary forms are permitted
27 * provided that the above copyright notice and this paragraph are
28 * duplicated in all such forms and that any documentation,
29 * advertising materials, and other materials related to such
30 * distribution and use acknowledge that the software was developed
31 * by the University of California, Berkeley. The name of the
32 * University may not be used to endorse or promote products derived
33 * from this software without specific prior written permission.
34 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
35 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
36 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
37 */
38
39 #if defined(LIBC_SCCS) && !defined(lint)
40 static char sccsid[] = "@(#)setjmperr.c 5.4 (Berkeley) 6/27/88";
41 #endif /* LIBC_SCCS and not lint */
42
43 /*
44 * This routine is called from longjmp() when an error occurs.
45 * Programs that wish to exit gracefully from this error may
46 * write their own versions.
47 * If this routine returns, the program is aborted.
48 */
49
50 void
51 longjmperror()
52 {
53 #define ERRMSG "longjmp botch\n"
54 write(2, ERRMSG, sizeof(ERRMSG) - 1);
55 }