xref: /csrg-svn/lib/libc/gen/setjmperr.c (revision 34437)
125783Smckusick /*
225783Smckusick  * Copyright (c) 1980 Regents of the University of California.
3*34437Sbostic  * All rights reserved.
4*34437Sbostic  *
5*34437Sbostic  * Redistribution and use in source and binary forms are permitted
6*34437Sbostic  * provided that this notice is preserved and that due credit is given
7*34437Sbostic  * to the University of California at Berkeley. The name of the University
8*34437Sbostic  * may not be used to endorse or promote products derived from this
9*34437Sbostic  * software without specific written prior permission. This software
10*34437Sbostic  * is provided ``as is'' without express or implied warranty.
1125783Smckusick  */
1225783Smckusick 
1326682Sdonn #if defined(LIBC_SCCS) && !defined(lint)
14*34437Sbostic static char sccsid[] = "@(#)setjmperr.c	5.3 (Berkeley) 05/23/88";
15*34437Sbostic #endif /* LIBC_SCCS and not lint */
1625783Smckusick 
1725783Smckusick /*
1825783Smckusick  * This routine is called from longjmp() when an error occurs.
1925783Smckusick  * Programs that wish to exit gracefully from this error may
2025783Smckusick  * write their own versions.
2125783Smckusick  * If this routine returns, the program is aborted.
2225783Smckusick  */
23*34437Sbostic 
2425783Smckusick longjmperror()
2525783Smckusick {
26*34437Sbostic #define	ERRMSG	"longjmp botch\n"
27*34437Sbostic 	write(2, ERRMSG, sizeof(ERRMSG) - 1);
2825783Smckusick }
29