FTAM/9000 Programmer's Guide
416 Chapter 10
Example Programs
Common Code Example
/*
**
** rea_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_read parameters.
**
**
** PARAMETERS:
** Outputs:
** fadu_identity : FADU identifier
** access_context : file structure
** return_event_name : gets signalled when the event completes
** default: SYNCHRONOUS
** input_dcb : input_dcb is NULL
** inout_dcb : contains return_code field
**
*/
void
rea_parm_in(fadu_identity, access_context, return_event_name, input_dcb,
inout_dcb)
struct Ft_fadu_identity *fadu_identity;
enum Ft_access_context *access_context;
Local_event_name *return_event_name;
char **input_dcb;
struct Ft_read_out_dcb **inout_dcb;
{
/*
** Initialize the parameters with valid values.
*/
fadu_ident_in(fadu_identity);
*access_context = FT_UNSTRUCTURED_ALL_DATA_UNITS;
*return_event_name = SYNCHRONOUS;
*input_dcb = NULL;
*inout_dcb = NULL;
}
/*
**
** wri_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_write parameters.
**
** PARAMETERS:
** Outputs:
** fadu_identity : FADU identifier
** fadu_operation : type of write to perform
** return_event_name : gets signalled when the event completes
** default: SYNCHRONOUS
** input_dcb : input_dcb is NULL
** inout_dcb : contains return_code field
**
*/
void
wri_parm_in(fadu_identity, fadu_operation, return_event_name, input_dcb,
inout_dcb)