Syntax | #include <cont.h> void cenaco(struct enacop *enacopar); | ||||||||||||||
Description |
routine written by the user as a contingency routine. For more detailed information on contingency routines, refer to section “Contingency and STXIT routines” and the manual "Executive Macros" [10 (Related publications)]. The structure struct enacop
{
char resrv1 [7]; /* reserved for int. use */
char coname [54]; /* name of cont. routine */
char resrv2 [15]; /* reserved for int. use */
char level; /* priority of cont.rout. */
int (*econt)(); /* start adr of cont.rout. */
int comess; /* contingency message */
char coidret [4]; /* contingency identifier */
errcod secind; /* secondary indicator */
char resrv3 [2]; /* reserved for int. use */
errcod rcode1; /* return code */
};
#define errcod char
#define _norm 0 /* normterm */
#define _abnorm 4 /* abnormend */
#define _enabled 4 /* codefenabled */
#define _preven 12 /* coprevenabled */
#define _parerr 16 /* coparerror */
#define _maxexc 24 /* comaxexceed */
Some entries for the structure components can or must be supplied by the user before the call to Entries supplied by the user:
Entries supplied by
| ||||||||||||||
Notes See also | A maximum of 255 contingency routines can be defined.
|