FTAM/9000 Programmer's Guide
280 Chapter 7
Managing and Accessing HP FTAM/9000 Files
Gaining Access to FTAM Files
ft_open() (LLCS)
#include %</opt/ftam/include/map.h>
#include %</opt/ftam/include/mapftam.h>
Return_code
ft_open (connection_id, processing_mode, contents_type,
return_event_name, input_dcb, inout_dcb)
Connection_id connection_id;
Ft_processing_mode processing_mode;
struct Ft_contents_type contents_type;
Local_event_name return_event_name;
struct Ft_open_in_dcb *input_dcb;
struct Ft_open_out_dcb **inout_dcb;
Use ft_open() after selecting or creating a file to access operations.
• Invoke ft_open() in the File Selection regime to move to the File Open
regime.
• During ft_connect(), you must negotiate the FT_FU_READ or
FT_FU_WRITE functional_units to use ft_open().
• The input_dcb->concurrency_control parameters must be the same or
more restrictive than the input_dcb->concurrency_control
parameters set on ft_create() and ft_select().
• If the file you are opening has access control, the following conditions
exist:
• The processing_mode parameter must be a subset of the values
stored in action_list field in the access_control_element
corresponding to the initiator_id used to establish the connection.
• The HP-UX implementation of FTAM does not use the
file_passwords parameter. Other implementations might.
Ft_open_in_dcb
struct Ft_open_in_dcb {
struct Ft_concurrency_control *concurrency_control;
};