OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-126
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
778 attr_names.zprivateuse = ZAPS_VAL_FALSE;
779
780 /*******************************************************************/
781 /* Initialize parameters for the to FTM_OPEN_REQ_ procedure call. */
782 /*******************************************************************/
783
784 /*******************************************************************/
785 /* Set up the processing mode to perform a read action on the file.*/
786 /*******************************************************************/
787
788 process_mode.zread = ZAPS_VAL_TRUE;
789 process_mode.zinsert = ZAPS_VAL_FALSE;
790 process_mode.zreplace = ZAPS_VAL_FALSE;
791 process_mode.zextend = ZAPS_VAL_FALSE;
792 process_mode.zerase = ZAPS_VAL_FALSE;
793
794
795 /*******************************************************************/
796 /* Initialize the threshold for the begin-group request to */
797 /* indicate that all three services (select, read-attributes, */
798 /* and open) must be successful for the group to succeed. */
799 /*******************************************************************/
800
801 threshold = 3;
802
803 status = FTM_BEGIN_GROUP_REQ_ ( src_cepi
804 , threshold );
805
806 check_status ( src_cepi );
807
808 status = FTM_SELECT_REQ_ ( src_cepi
809 , (int *) &src_file
810 , (int *) &requested_access
811 , (int *) &access_passwords
812 , (int *) &account );
813 check_status ( src_cepi );
814
815 status = FTM_READ_ATTRIB_REQ_ ( src_cepi
816 , (int *) &attr_names );