API Guide
2-384 API Functions 601355 Rev A
VSE_ERR_SIGNAL - A select system call was interrupted by a signal.VSE_ERR_TIMEOUT - The VolServ API timed out waiting for status from VolServ.
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_select
4*
5 * PURPOSE:
6 * This function tests the VS_Select
loop.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN vst_select ( void )
14 #else
15 VST_BOOLEAN vst_select ()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 int errcode;
20
21 errcode = VS_Select();
22 switch (errcode)
23 {
24 case VSE_ERR_NONE:
25 printf(“*** No Error --
Successful Operation ***\n“);
26 rc = VSE_TRUE;
27 break;
28 case VSE_ERR_TIMEOUT:
29 printf(“*** Select Timed Out
***\n”);
30 break;