1 ///////////////////////////////////////////////////////////////////////////////
4 /// \brief Error message printing
6 // Copyright (C) 2007 Lasse Collin
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Lesser General Public
10 // License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
18 ///////////////////////////////////////////////////////////////////////////////
42 extern exit_status_type exit_status;
44 extern verbosity_type verbosity;
46 /// Like GNU's program_invocation_name but portable
49 /// Once this is non-zero, all threads must shutdown and clean up incomplete
50 /// output files from the disk.
51 extern volatile sig_atomic_t user_abort;
54 extern const char * str_strm_error(lzma_ret code);
56 extern void errmsg(verbosity_type v, const char *fmt, ...)
57 lzma_attribute((format(printf, 2, 3)));
59 extern void set_exit_status(exit_status_type new_status);
61 extern void my_exit(int status) lzma_attribute((noreturn));
63 extern void out_of_memory(void);
65 extern void internal_error(void);