xref: /netbsd/external/bsd/pdisk/dist/errors.h (revision 6f993757)
13e227d10Schristos //
23e227d10Schristos // errors.h - error & help routines
33e227d10Schristos //
43e227d10Schristos // Written by Eryk Vershen
53e227d10Schristos //
63e227d10Schristos 
73e227d10Schristos /*
83e227d10Schristos  * Copyright 1996 by Apple Computer, Inc.
93e227d10Schristos  *              All Rights Reserved
103e227d10Schristos  *
113e227d10Schristos  * Permission to use, copy, modify, and distribute this software and
123e227d10Schristos  * its documentation for any purpose and without fee is hereby granted,
133e227d10Schristos  * provided that the above copyright notice appears in all copies and
143e227d10Schristos  * that both the copyright notice and this permission notice appear in
153e227d10Schristos  * supporting documentation.
163e227d10Schristos  *
173e227d10Schristos  * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
183e227d10Schristos  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
193e227d10Schristos  * FOR A PARTICULAR PURPOSE.
203e227d10Schristos  *
213e227d10Schristos  * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
223e227d10Schristos  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
233e227d10Schristos  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
243e227d10Schristos  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
253e227d10Schristos  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
263e227d10Schristos  */
273e227d10Schristos 
283e227d10Schristos #ifndef __errors__
293e227d10Schristos #define __errors__
303e227d10Schristos 
313e227d10Schristos 
323e227d10Schristos //
333e227d10Schristos // Defines
343e227d10Schristos //
353e227d10Schristos 
363e227d10Schristos 
373e227d10Schristos //
383e227d10Schristos // Types
393e227d10Schristos //
403e227d10Schristos 
413e227d10Schristos 
423e227d10Schristos //
433e227d10Schristos // Global Constants
443e227d10Schristos //
453e227d10Schristos 
463e227d10Schristos 
473e227d10Schristos //
483e227d10Schristos // Global Variables
493e227d10Schristos //
503e227d10Schristos extern int hflag;
513e227d10Schristos 
523e227d10Schristos 
533e227d10Schristos //
543e227d10Schristos // Forward declarations
553e227d10Schristos //
56*6f993757Schristos void do_help(void);
573e227d10Schristos void init_program_name(char **argv);
58*6f993757Schristos void error(int value, const char *fmt, ...) __printflike(2, 3);
59*6f993757Schristos void fatal(int value, const char *fmt, ...) __dead __printflike(2, 3);
60*6f993757Schristos void usage(const char *kind);
613e227d10Schristos 
623e227d10Schristos #endif /* __errors__ */
63