]> git.saurik.com Git - apple/libc.git/blob - ppc/gen/setjmperr.c
Libc-391.2.3.tar.gz
[apple/libc.git] / ppc / gen / setjmperr.c
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /*
24 * Copyright (c) 1980 Regents of the University of California.
25 * All rights reserved. The Berkeley software License Agreement
26 * specifies the terms and conditions for redistribution.
27 */
28
29 #include <sys/types.h>
30 #include <unistd.h>
31
32 #if defined(LIBC_SCCS) && !defined(lint)
33 static char sccsid[] = "@(#)setjmperr.c 5.2 (Berkeley) 3/9/86";
34 #endif LIBC_SCCS and not lint
35
36 #define ERRMSG "longjmp botch\n"
37
38 /*
39 * This routine is called from longjmp() when an error occurs.
40 * Programs that wish to exit gracefully from this error may
41 * write their own versions.
42 * If this routine returns, the program is aborted.
43 */
44 void
45 longjmperror(void)
46 {
47 write(2, ERRMSG, sizeof(ERRMSG));
48 }