OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-108
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
76
77 #pragma nolist
78 #include <stdioh>
79 #include <stdlibh>
80 #include <stringh>
81 #include <talh>
82
83 /***********************************************************************/
84 /* Include */
85 /* - APS and FTM structure definitions and literals */
86 /* - External function declarations for FTM, APS, and Guardian */
87 /***********************************************************************/
88
89 #include "zapsc" /* APS DDL */
90 #include "zftmc" /* FTM DDL */
91 #include "cextdecs ( FTM_INITIALIZE_REQ_ \
92 , FTM_INITIALIZE_CNF_ \
93 , FTM_OPEN_REQ_ \
94 , FTM_OPEN_CNF_ \
95 , FTM_SELECT_REQ_ \
96 , FTM_SELECT_CNF_ \
97 , FTM_DESELECT_REQ_ \
98 , FTM_DESELECT_CNF_ \
99 , FTM_DELETE_REQ_ \
100 , FTM_DELETE_CNF_ \
101 , FTM_CREATE_REQ_ \
102 , FTM_CREATE_CNF_ \
103 , FTM_CLOSE_REQ_ \
104 , FTM_CLOSE_CNF_ \
105 , FTM_BEGIN_GROUP_REQ_ \
106 , FTM_END_GROUP_REQ_ \
107 , FTM_READ_ATTRIB_REQ_ \
108 , FTM_READ_ATTRIB_CNF_ \
109 , FTM_CHANGE_ATTRIB_REQ_ \
110 , FTM_CHANGE_ATTRIB_CNF_ \
111 , FTM_WRITE_REQ_ \
112 , FTM_READ_REQ_ \
113 , FTM_DATA_IND_ \
114 , FTM_DATA_REQ_ \