OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-37
Example 1 in C—Updating a Remote File (in Nowait
Mode)
974 = (long) MAX_READ_COUNT;
975 contents_type.u_zcntntstype.zdoctype.zstringsigispresent
976 = ZAPS_VAL_PRESENT;
977 contents_type.u_zcntntstype.zdoctype.zstringsig
978 = ZFTM_VAL_STRINGSIG_NOTSIG;
979 contents_type.u_zcntntstype.zdoctype.zfileattrsispresent
980 = ZAPS_VAL_ABSENT;
981
982 }
983 else
984 {
985 printf ( "Contents type list unavailable for the association\n" );
986
987 action_result = ZFTM_VAL_ACTION_FAILURE;
988
989 status = FTM_U_ABORT_REQ_ ( cepi
990 , action_result
991 , /* diagnostics */
992 , (long) ABORT_TAG );
993
994 /*****************************************************************/
995 /* If the above abort request is sent to the remote system, */
996 /* calling the main procedure sets the remote_file_update_cmplt */
997 /* flag, and the program is terminated. If the request is not */
998 /* sent out, set the flag here and return to the main procedure. */
999 /*****************************************************************/
1000
1001 if ( status != ZAPS_VAL_STATUS_OK )
1002 remote_file_update_cmplt = TRUE;
1003 return;
1004
1005 }
1006
1007
1008 /*******************************************************************/
1009 /* The following sections initialize the parameters for the */
1010 /* FTM_FILE_OPEN_REQ_ procedure. */
1011 /*******************************************************************/
1012