OSI/FTAM Programming Guide
NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Guide—528612-001
5-4
Reading a File: C Programming Example
33 /* */
34 /*********************************************************************/
35
36 #pragma XMEM
37 #pragma NOLIST
38 #include <stdioh>
39 #include <stdlibh>
40 #include <stringh>
41 #include <talh>
42 #include <errnoh>
43 #include <fcntlh>
44 #include <memoryh>
45
46 /*********************************************************************/
47 /* Source in */
48 /* - APS and FTAM structure definitions and literals */
49 /* - External function declarations for FTAM, APS, and Guardian */
50 /*********************************************************************/
51
52 #include "zapsc" /* APS DDL */
53 #include "zftmc" /* FTAM DDL */
54 #include "cextdecs ( FTM_INITIALIZE_REQ_ \
55 , FTM_INITIALIZE_CNF_ \
56 , FTM_BEGIN_GROUP_REQ_ \
57 , FTM_SELECT_REQ_ \
58 , FTM_SELECT_CNF_ \
59 , FTM_OPEN_REQ_ \
60 , FTM_OPEN_CNF_ \
61 , FTM_END_GROUP_REQ_ \
62 , FTM_CLOSE_REQ_ \
63 , FTM_CLOSE_CNF_ \
64 , FTM_DESELECT_REQ_ \
65 , FTM_DESELECT_CNF_ \
66 , FTM_READ_REQ_ \
67 , FTM_DATA_IND_ \
68 , FTM_DATA_END_IND_ \
69 , FTM_TRANSFER_END_REQ_ \
70 , FTM_TRANSFER_END_CNF_ \
71 , FTM_TERMINATE_REQ_ \