OSI/FTAM Programming Guide

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide528612-001
5-33
Reading a File: C Programming Example
1164 {
1165 /***************************************************************/
1166 /* Retrieve the action result and diagnostic messages for the */
1167 /* P-abort. */
1168 /***************************************************************/
1169
1170 error = FTM_P_ABORT_IND_ ( cepi
1171 , (long *) &action_result
1172 , (int *) &diag );
1173 if ( error != ZAPS_ERR_OK )
1174 {
1175 printf ( "FTM_P_ABORT_IND_ FAILED\n" );
1176 check_error ();
1177 }
1178
1179 if ( action_result == ZFTM_VAL_ACTION_FAILURE )
1180 {
1181 printf ( "FTM_P_ABORT_IND_ RECEIVED\n" );
1182 check_action ();
1183 }
1184
1185 }
1186 else
1187 if ( event == ZFTM_VAL_EVT_UABORT_IND )
1188 {
1189 /***************************************************************/
1190 /* Retrieve the action result and diagnostic messages for the */
1191 /* U-abort. */
1192 /***************************************************************/
1193
1194 error = FTM_U_ABORT_IND_ ( cepi
1195 , (long *) &action_result
1196 , (int *) &diag );
1197 if ( error != ZAPS_ERR_OK )
1198 {
1199 printf ( "FTM_U_ABORT_IND_ FAILED\n" );
1200 check_error ();
1201 }
1202