2 * panic.c - terminate fast in case of error
3 * Copyright (C) 1993 Thomas Koenig
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
46 /* File scope variables */
48 static char rcsid[] = "$Id: panic.c,v 1.4 1997/03/12 19:36:05 ig25 Exp $";
50 /* External variables */
52 /* Global functions */
57 /* Something fatal has happened, print error message and exit.
59 fprintf(stderr, "%s: %s\n", namep, a);
67 perr(const char *fmt,...)
69 /* Some operating system error; print error message and exit.
75 vsprintf(buf, fmt, args);
88 /* Print usage and exit.
90 fprintf(stderr, "Usage: at [-V] [-q x] [-f file] [-m] time\n"
91 " atq [-V] [-q x] [-v]\n"
92 " atrm [-V] [-q x] job ...\n"
93 " batch [-V] [-f file] [-m]\n");