src/xz/main.h File Reference

Miscellanous declarations. More...

Enumerations

enum  exit_status_type { E_SUCCESS = 0, E_ERROR = 1, E_WARNING = 2 }
 

Possible exit status values. These are the same as used by gzip and bzip2.

More...

Functions

void set_exit_status (enum exit_status_type new_status)
void my_exit (enum exit_status_type status) lzma_attribute((noreturn))

Detailed Description

Miscellanous declarations.


Enumeration Type Documentation

Possible exit status values. These are the same as used by gzip and bzip2.


Function Documentation

void set_exit_status ( enum exit_status_type  new_status  ) 

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.

References exit_status.

void my_exit ( enum exit_status_type  status  ) 

Exits the program using the given status. This takes care of closing stdin, stdout, and stderr and catches possible errors. If we had got 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.

References message(), signals_exit(), and V_ERROR.

Referenced by message_help(), and message_version().


Generated on Tue Oct 6 14:02:23 2009 for XZ Utils by  doxygen 1.6.1