diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-05 09:12:57 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-02-05 09:12:57 +0200 |
commit | 75905a9afc0ee89954ede7d08af70d1148bf0fd9 (patch) | |
tree | fc562f9890c63c4fa7087537941165393155af14 /src/xz/main.h | |
parent | Another utime() fix. (diff) | |
download | xz-75905a9afc0ee89954ede7d08af70d1148bf0fd9.tar.xz |
Various code cleanups the the xz command line tool.
It now builds with MinGW.
Diffstat (limited to '')
-rw-r--r-- | src/xz/main.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/xz/main.h b/src/xz/main.h index 1e369425..2d6419ad 100644 --- a/src/xz/main.h +++ b/src/xz/main.h @@ -17,9 +17,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#ifndef MAIN_H -#define MAIN_H - /// Possible exit status values. These are the same as used by gzip and bzip2. enum exit_status_type { E_SUCCESS = 0, @@ -28,22 +25,6 @@ enum exit_status_type { }; -/// If this is true, we will clean up the possibly incomplete output file, -/// return to main() as soon as practical. That is, the code needs to poll -/// this variable in various places. -extern volatile sig_atomic_t user_abort; - - -/// Block the signals which don't have SA_RESTART and which would just set -/// user_abort to true. This is handy when we don't want to handle EINTR -/// and don't want SA_RESTART either. -extern void signals_block(void); - - -/// Unblock the signals blocked by signals_block(). -extern void signals_unblock(void); - - /// Sets the exit status after a warning or error has occurred. If new_status /// is EX_WARNING and the old exit status was already EX_ERROR, the exit /// status is not changed. @@ -55,6 +36,3 @@ extern void set_exit_status(enum exit_status_type new_status); /// a signal, this function will raise it so that to the parent process it /// appears that we were killed by the signal sent by the user. extern void my_exit(enum exit_status_type status) lzma_attribute((noreturn)); - - -#endif |