gtpc2m9h | C/C++ Language Support User's Guide |
This function suspends processing of an entry until all I/O requests associated with the ECB are complete. Error information is returned, if applicable.
Format
#include <tpfio.h> int waitc(void);
Normal Return
Integer value of zero.
Error Return
Integer value representing the value of CE1SUG (gross level error indicator byte).
Programming Considerations
Examples
The following example calls the waitc function to ensure that all outstanding I/O have completed, then issues a message and aborts if the waitc function indicates an error.
#include <tpfio.h>
·
·
·
if(waitc()) { serrc_op(SERRC_EXIT,0x1234,"ERROR SYNCHRONIZING VPH TAPE",NULL) ; }
Related Information