Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
main.h File Reference

Miscellaneous declarations. More...

Go to the source code of this file.

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 set_exit_no_warn (void)
 

Detailed Description

Miscellaneous declarations.

Enumeration Type Documentation

◆ exit_status_type

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

Enumerator
E_SUCCESS 
E_ERROR 
E_WARNING 

Function Documentation

◆ set_exit_no_warn()

void set_exit_no_warn ( void )
extern

Use E_SUCCESS instead of E_WARNING if something worth a warning occurs but nothing worth an error has occurred. This is called when –no-warn is specified.

◆ set_exit_status()

void set_exit_status ( enum exit_status_type new_status)
extern

Sets the exit status after a warning or error has occurred. If new_status is E_WARNING and the old exit status was already E_ERROR, the exit status is not changed.