OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-19
Reading a File: C Programming Example
618 if ( status != ZAPS_VAL_STATUS_OK )
619 {
620 printf ( "FTM_SELECT_REQ_ FAILED\n" );
621 check_status ();
622 }
623
624 status = FTM_OPEN_REQ_ ( cepi
625 , (int *) &process_mode
626 , /* (int *) &contents_type */ );
627 if ( status != ZAPS_VAL_STATUS_OK )
628 {
629 printf ( "FTM_OPEN_REQ_ FAILED\n" );
630 check_status ();
631 }
632
633 error = FTM_END_GROUP_REQ_ ( cepi );
634 if ( error != ZAPS_ERR_OK )
635 {
636 printf ( "FTM_END_GROUP_REQ_ FAILED\n" );
637 check_error ();
638 }
639
640 /******************************************************************/
641 /* Each request in the group returns a confirm if no errors have */
642 /* occurred. (Note that the begin-group and end-group services do */
643 /* not have confirm procedures.) */
644 /******************************************************************/
645
646 event = ZFTM_VAL_EVT_BEGINGROUP_CNF;
647 get_event ( &event );
648
649 event = ZFTM_VAL_EVT_SELECT_CNF;
650 get_event ( &event );
651 error = FTM_SELECT_CNF_ ( cepi
652 , (long *) &state_result
653 , (long *) &action_result
654 , (int *) &remote_file
655 , (int *) &diag );
656 if ( error != ZAPS_ERR_OK )