125783Smckusick /* 225783Smckusick * Copyright (c) 1980 Regents of the University of California. 334437Sbostic * All rights reserved. 434437Sbostic * 542626Sbostic * %sccs.include.redist.c% 625783Smckusick */ 725783Smckusick 826682Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*46597Sdonn static char sccsid[] = "@(#)setjmperr.c 5.8 (Berkeley) 02/23/91"; 1034437Sbostic #endif /* LIBC_SCCS and not lint */ 1125783Smckusick 1225783Smckusick /* 1325783Smckusick * This routine is called from longjmp() when an error occurs. 1425783Smckusick * Programs that wish to exit gracefully from this error may 1525783Smckusick * write their own versions. 1625783Smckusick * If this routine returns, the program is aborted. 1725783Smckusick */ 1834437Sbostic 19*46597Sdonn #include <setjmp.h> 2045646Sbostic #include <unistd.h> 2142392Sbostic 22*46597Sdonn void 2325783Smckusick longjmperror() 2425783Smckusick { 2545646Sbostic #define ERRMSG "longjmp botch.\n" 2645646Sbostic (void)write(STDERR_FILENO, ERRMSG, sizeof(ERRMSG) - 1); 2725783Smckusick } 28