FTAM/9000 Programmer's Guide
Chapter 10 413
Example Programs
Common Code Example
/*
**
** clo_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_close parameters.
**
** PARAMETERS:
** Outputs:
** return_event_name : gets signalled when the event completes
** default: SYNCHRONOUS
** input_dcb : input_dcb is NULL
** inout_dcb : contains return_code field
*/
void
clo_parm_in(return_event_name, input_dcb, inout_dcb)
Local_event_name *return_event_name;
char **input_dcb;
struct Ft_close_out_dcb **inout_dcb;
{
/*
** Initialize the parameters with all valid values.
*/
*return_event_name = 2;
*input_dcb = NULL;
*inout_dcb = NULL;
}
/*
**
** cre_parm_in
**
** DESCRIPTION:
** This routine assigns valid values to the ft_create parameters.
**
** PARAMETERS:
** Outputs:
** filename : name of file to create
** contents_type : type of document
** requested_access : type of file access
** file_status : state of the file
** return_event_name : gets signalled when the event completes
** default: SYNCHRONOUS
** input_dcb : contains ft_create input information
** inout_dcb : contains return_code field
*/
void
cre_parm_in(filename, contents_type, requested_access, file_status,
return_event_name, input_dcb, inout_dcb)
Ft_filename *filename;
struct Ft_contents_type *contents_type;
Ft_file_actions *requested_access;
enum Ft_file_status *file_status;
Local_event_name *return_event_name;
struct Ft_create_in_dcb **input_dcb;
struct Ft_create_out_dcb **inout_dcb;
{