OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-130
Example 2 in C—Moving a File Between Two
Remote Systems (in Wait Mode)
934
935 /*Security group */
936 initial_attr.zaccesscntrlattrispresent = ZAPS_VAL_PRESENT;
937
938 /*******************************************************************/
939 /* Set the next two attributes to allow write and change- */
940 /* attribute capabilities during the move. The procedure */
941 /* applies the original attributes that were read from the */
942 /* source file to the destination file after the move is */
943 /* complete. */
944 /*******************************************************************/
945
946 initial_attr.zaccesscntrlattr.zid = ZFTM_VAL_ATTR_ISPRESENT;
947 initial_attr.zaccesscntrlattr.zaccesscntrl.zactionlist.zreplace
948 = ZAPS_VAL_TRUE;
949 initial_attr.zaccesscntrlattr.zaccesscntrl.zactionlist.zread
950 = ZAPS_VAL_TRUE;
951 initial_attr.zaccesscntrlattr.zaccesscntrl.zactionlist.zinsert
952 = ZAPS_VAL_TRUE;
953 initial_attr.zaccesscntrlattr.zaccesscntrl.zactionlist.zerase
954 = ZAPS_VAL_TRUE;
955 initial_attr.zaccesscntrlattr.zaccesscntrl.zactionlist.zdelete
956 = ZAPS_VAL_TRUE;
957 initial_attr.zaccesscntrlattr.zaccesscntrl.zactionlist.zchngattr
958 = ZAPS_VAL_TRUE;
959 initial_attr.zaccesscntrlattr.zaccesscntrl.zconcurrencyispresent
960 = ZAPS_VAL_ABSENT;
961 initial_attr.zaccesscntrlattr.zaccesscntrl.zidentityispresent
962 = ZAPS_VAL_ABSENT;
963 initial_attr.zaccesscntrlattr.zaccesscntrl.zpasswdsispresent
964 = ZAPS_VAL_ABSENT;
965 initial_attr.zaccesscntrlattr.zaccesscntrl.zlocationispresent
966 = ZAPS_VAL_ABSENT;
967 initial_attr.zlegalqualifispresent = ZAPS_VAL_ABSENT;
968
969 /*******************************************************************/
970 /* Specify that the application is to delete the named file if it */
971 /* exists and create a new file using the attributes specified in */
972 /* the initial_attr parameter. */