home *** CD-ROM | disk | FTP | other *** search
- /*************************************************************************
- ** ^FILE: exit_codes.h - define exit codes used by the parseargs library
- **
- ** ^DESCRIPTION:
- ** When we call exit(3C), we want to use a value that is appropriate
- ** for the operating system that we are on. Here are the values
- ** that we need to define:
- **
- ** exit_NORMAL -- no errors everything is fine
- ** exit_USAGE -- no errors but we didnt parse the command-line
- ** because we say an argUsage argument
- ** exit_SYNTAX -- a syntax error occurred
- ** exit_SYSTEM -- a system error occurred
- **
- ** ^HISTORY:
- ** 04/13/92 Brad Appleton <brad@ssd.csd.harris.com> Created
- ***^^********************************************************************/
-
- #ifndef exit_NORMAL
-
- #ifdef vms
- # include <ssdef.h>
- # define exit_NORMAL SS$_NORMAL
- # define exit_USAGE SS$_NOTMODIFIED
- # define exit_SYNTAX SS$_BADPARAM
- # define exit_SYSTEM SS$_CANCEL
- #else
- # define exit_NORMAL 0
- # define exit_USAGE 1
- # define exit_SYNTAX 2
- # define exit_SYSTEM 127
- #endif
-
- #endif
-