125783Smckusick /* 2*61111Sbostic * Copyright (c) 1980, 1993 3*61111Sbostic * The Regents of the University of California. All rights reserved. 434437Sbostic * 542626Sbostic * %sccs.include.redist.c% 625783Smckusick */ 725783Smckusick 826682Sdonn #if defined(LIBC_SCCS) && !defined(lint) 9*61111Sbostic static char sccsid[] = "@(#)setjmperr.c 8.1 (Berkeley) 06/04/93"; 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 1946597Sdonn #include <setjmp.h> 2045646Sbostic #include <unistd.h> 2142392Sbostic 2246597Sdonn void longjmperror()2325783Smckusicklongjmperror() 2425783Smckusick { 2545646Sbostic #define ERRMSG "longjmp botch.\n" 2645646Sbostic (void)write(STDERR_FILENO, ERRMSG, sizeof(ERRMSG) - 1); 2725783Smckusick } 28