1 /* 2 * Copyright (c) 1980 Regents of the University of California. 3 * All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #if defined(LIBC_SCCS) && !defined(lint) 9 static char sccsid[] = "@(#)setjmperr.c 5.6 (Berkeley) 06/01/90"; 10 #endif /* LIBC_SCCS and not lint */ 11 12 /* 13 * This routine is called from longjmp() when an error occurs. 14 * Programs that wish to exit gracefully from this error may 15 * write their own versions. 16 * If this routine returns, the program is aborted. 17 */ 18 19 #include <stdio.h> 20 21 longjmperror() 22 { 23 #define ERRMSG "longjmp botch\n" 24 write(fileno(stderr), ERRMSG, sizeof(ERRMSG) - 1); 25 } 26