OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-39
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1052
1053
1054 /*******************************************************************/
1055 /* Issue the file-open request. */
1056 /*******************************************************************/
1057
1058 status = FTM_FILE_OPEN_REQ_ ( cepi
1059 , (int *) &remote_file
1060 , file_status
1061 , (int *) &requested_access
1062 , /* access_passwords */
1063 , /* initial_attr */
1064 , /* create_password */
1065 , (int *) &process_mode
1066 , (int *) &contents_type
1067 , /* account */
1068 , (long) FILEOPEN_TAG );
1069
1070 check_status ();
1071
1072 } /* init_cnf_open_req */
1073
1074
1075
1076 #pragma PAGE "OPEN_CNF_WRITE_REQ"
1077 /*********************************************************************/
1078 /* */
1079 /* Name: open_cnf_write_req */
1080 /* */
1081 /* Description: This procedure is called when a file-open confirm is */
1082 /* received. It calls FTM_FILE_OPEN_CNF_ and checks */
1083 /* the error status and state result. It then calls */
1084 /* FTM_WRITE_REQ_ and returns to the calling routine. */
1085 /* */
1086 /* Input: File-select/open confirm */
1087 /* */
1088 /* Output: Write request sent to remote responder */
1089 /* */
1090 /*********************************************************************/