1 /* $NetBSD: panic.c,v 1.12 2007/07/18 01:06:08 lukem Exp $ */
4 * panic.c - terminate fast in case of error
5 * Copyright (c) 1993 by Thomas Koenig
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. The name of the author(s) may not be used to endorse or promote
13 * products derived from this software without specific prior written
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 /* File scope variables */
47 static char rcsid
[] = "$OpenBSD: panic.c,v 1.4 1997/03/01 23:40:09 millert Exp $";
49 __RCSID("$NetBSD: panic.c,v 1.12 2007/07/18 01:06:08 lukem Exp $");
53 /* Global functions */
61 * Something fatal has happened, print error message and exit.
68 errx(EXIT_FAILURE
, "%s", a
);
77 * Some operating system error; print error message and exit.
93 /* Print usage and exit. */
95 "usage: at [-bdlmrVv] [-f file] [-q queue] -t [[CC]YY]MMDDhhmm[.SS]\n"
96 " at [-bdlmrVv] [-f file] [-q queue] time\n"
97 " at [-V] -c job [job ...]\n"
98 " atq [-Vv] [-q queue]\n"
99 " atrm [-V] job [job ...]\n"
100 " batch [-mVv] [-f file] [-q queue] [-t [[CC]YY]MMDDhhmm[.SS]]\n"
101 " batch [-mVv] [-f file] [-q queue] [time]\n");