Definition | #include <stxit.h> void cstxit(struct stxitp stxitpar);
| ||||||||||||||||||||||
Parameters | struct stxitp stxitpar Structure in which the information required for the definition of an STXIT routine is to be specified. The structure is defined in <stxit.h> for ANSI-C as follows struct stxitp
{
addr bufadr; /* Address of the message for the program */
/* (OPINT) */
err_set retcode; /* Return code */
struct cont contp; /* Address of the STXIT routines */
struct nest nestp; /* Max. nesting level */
struct stx stxp; /* Control of the cstxit call */
struct diag diagp; /* Diagnostic control */
struct type typep; /* Parameter transfer mode */
};
struct cont /* Address of the STXIT routine for */
{ /* the particular event class */
void (*prchk) (struct stxcontp stxcontpar);
void (*timer) (struct stxcontp stxcontpar);
void (*opint) (struct stxcontp stxcontpar);
void (*error) (struct stxcontp stxcontpar);
void (*runout) (struct stxcontp stxcontpar);
void (*brkpt) (struct stxcontp stxcontpar);
void (*abend) (struct stxcontp stxcontpar);
void (*pterm) (struct stxcontp stxcontpar);
void (*rtimer) (struct stxcontp stxcontpar);
};
struct nest /* Max. nesting level for the */
{ /* particular event class */
char prchk;
char timer;
char opint;
char error;
char runout;
char brkpt;
char abend;
char pterm;
char rtimer;
char filler;
};
struct stx /* Control of the cstxit call for */
{ /* the particular event class */
stx_set prchk;
stx_set timer;
stx_set opint;
stx_set error;
stx_set runout;
stx_set brkpt;
stx_set abend;
stx_set pterm;
stx_set rtimer;
stx_set filler;
};
struct diag /* Diagnostic control for */
{ /* the particular event class */
diag_set prchk;
diag_set timer;
diag_set opint;
diag_set error;
diag_set runout;
diag_set brkpt;
diag_set abend;
diag_set pterm;
diag_set rtimer;
diag_set filler;
};
struct type /* Parameter transfer mode for */
{ /* the particular event class */
type_set prchk;
type_set timer;
type_set opint;
type_set error;
type_set runout;
type_set brkpt;
type_set abend;
type_set pterm;
type_set rtimer;
type_set filler;
};
#define stx_set char
#define old_stx 0
#define new_stx 4
#define del_stx 8
#define diag_set char
#define ful_diag 0
#define min_diag 4
#define no_diag 8
#define err_set char
#define no_err 0
#define par_err 4
#define stx_err 8
#define mem_err 12
#define type_set char
#define par_opt 0
#define par_std 4
Control of the cstxit call: This data is used to control the execution of the
Diagnostic control:
Parameter transfer mode:
Return code:
| ||||||||||||||||||||||
Notes | You must supply the parameter structure To standardize initialization, a prototype ( For event class INTR, you must supply the address ( | ||||||||||||||||||||||
See also | alarm, cenaco, raise, signal, sleep |