xref: /netbsd-src/external/bsd/pdisk/dist/errors.h (revision 48a628ae0434c4247b560ad8f2eb1dc06d0dd070)
19428323dSchristos //
29428323dSchristos // errors.h - error & help routines
39428323dSchristos //
49428323dSchristos // Written by Eryk Vershen
59428323dSchristos //
69428323dSchristos 
79428323dSchristos /*
89428323dSchristos  * Copyright 1996 by Apple Computer, Inc.
99428323dSchristos  *              All Rights Reserved
109428323dSchristos  *
119428323dSchristos  * Permission to use, copy, modify, and distribute this software and
129428323dSchristos  * its documentation for any purpose and without fee is hereby granted,
139428323dSchristos  * provided that the above copyright notice appears in all copies and
149428323dSchristos  * that both the copyright notice and this permission notice appear in
159428323dSchristos  * supporting documentation.
169428323dSchristos  *
179428323dSchristos  * APPLE COMPUTER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
189428323dSchristos  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
199428323dSchristos  * FOR A PARTICULAR PURPOSE.
209428323dSchristos  *
219428323dSchristos  * IN NO EVENT SHALL APPLE COMPUTER BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
229428323dSchristos  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
239428323dSchristos  * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
249428323dSchristos  * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
259428323dSchristos  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
269428323dSchristos  */
279428323dSchristos 
289428323dSchristos #ifndef __errors__
299428323dSchristos #define __errors__
309428323dSchristos 
319428323dSchristos 
329428323dSchristos //
339428323dSchristos // Defines
349428323dSchristos //
359428323dSchristos 
369428323dSchristos 
379428323dSchristos //
389428323dSchristos // Types
399428323dSchristos //
409428323dSchristos 
419428323dSchristos 
429428323dSchristos //
439428323dSchristos // Global Constants
449428323dSchristos //
459428323dSchristos 
469428323dSchristos 
479428323dSchristos //
489428323dSchristos // Global Variables
499428323dSchristos //
509428323dSchristos extern int hflag;
519428323dSchristos 
529428323dSchristos 
539428323dSchristos //
549428323dSchristos // Forward declarations
559428323dSchristos //
56*48a628aeSchristos void do_help(void);
579428323dSchristos void init_program_name(char **argv);
58*48a628aeSchristos void error(int value, const char *fmt, ...) __printflike(2, 3);
59*48a628aeSchristos void fatal(int value, const char *fmt, ...) __dead __printflike(2, 3);
60*48a628aeSchristos void usage(const char *kind);
619428323dSchristos 
629428323dSchristos #endif /* __errors__ */
63