/***************************************************************************** copyright (c) Al Grabauskas, 1989 this #include file gives definitions of codes used by runtime library routines when they call the exit() function, so that user exit traps can determine exactly what it was that caused the exit routine to be called. exit() itself, in addition to other changes to it, will always store the code it was passed in the global character variable Uexcode. since the exit code is a character (not an integer), it is sign extended by the compiler, and becomes, in effect negative at values of 128 or greater. please note this artifact of the language. 0 represents a "non-exception" condition by default (this fits in with the usage of the error flag by exit() when running in a zcpr environment, the codes 128-255 are reserved for "system" routines, and 1-127 are for whatever use you desire to put them to. the values in the range 128-255 will be used from 255 down, so that if it turns out that relatively few values are needed for system codes, the user code space can be extended contiguously. as you can see, there are currently very few of them. -*****************************************************************************/ #define ConAbort 255 /* user abort thru Uconin() function */ /* in csyslib.c */ #define PolAbort 254 /* user abort thru poll() function */ /* poll() not used in clib routines */ #define RdirFail 253 /* failed to open redirected file */ /* in csyslib.c */ #define MemErr 252 /* memory failure in clib avail() */ /* function. this is an obsolete */ /* function used with the old */ /* memory scheme with smallalc.h */ /* this is also returned if xfree() */ /* detects an attempt to free memory */ /* to an unintialized block */ #define NoError 0 /* standard, successful exit */ /* end sysexits.h ************************************************************/