} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
retVal = -1;
- found = -1;
}
if((status = ca_pend_io(TIMEOUT)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
}
if((status = ca_clear_channel(chan)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
free(pPVName);
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
retVal = -1;
- found = -1;
}
if((status = ca_pend_io(TIMEOUT)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
}
if((status = ca_clear_channel(chan)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
free(pPVName);
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
retVal = -1;
- found = -1;
}
if((status = ca_pend_io(TIMEOUT)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
}
if((status = ca_clear_channel(chan)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
free(pPVName);
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
retVal = -1;
- found = -1;
}
if((status = ca_pend_io(TIMEOUT)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
}
if((status = ca_clear_channel(chan)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
free(pPVName);
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
retVal = -1;
- found = -1;
}
if((status = ca_pend_io(TIMEOUT)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
}
if((status = ca_clear_channel(chan)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
free(pPVName);
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
retVal = -1;
- found = -1;
}
if((status = ca_pend_io(TIMEOUT)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
} else if (status != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
}
if((status = ca_clear_channel(chan)) != ECA_NORMAL) {
Param_strerror((Param *) my, ca_message(status));
- retVal = -1;
}
free(pPVName);
} else {
Param_strerror((Param *) result->my, ca_message(args.status));
*(result->rows) = 0;
- *(result->retVal) = -1;
}
}
} else {
Param_strerror((Param *) result->my, ca_message(args.status));
*(result->rows) = 0;
- *(result->retVal) = -1;
}
}
*(result->size) = args.count;
if(args.type == DBR_LONG && args.status == ECA_NORMAL) {
-#if 0
- FILE *reference;
-#endif
- fprintf(stderr, "Seems to be the right type of data.\n");
- fprintf(stderr, "%d blocks of each %d bytes length read.\n", *(result->size), sizeof(dbr_long_t));
-#if 0
- reference = fopen("xx", "w+b");
- fwrite(buffer, sizeof(dbr_long_t), *(result->size), reference);
- fclose(reference);
-#endif
fwrite(buffer, sizeof(dbr_long_t), *(result->size), *result->val);
rewind(*result->val);
} else {
Param_strerror((Param *) result->my, ca_message(args.status));
*(result->size) = 0;
- *(result->retVal) = -1;
}
}