3
3
* <marineau@genie.uottawa.ca>
4
4
* <Holger.Veit@gmd.de>
6
* Permission is hereby granted, free of charge, to any person obtaining a
7
* copy of this software and associated documentation files (the "Software"),
8
* to deal in the Software without restriction, including without limitation
9
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
* and/or sell copies of the Software, and to permit persons to whom the
6
* Permission is hereby granted, free of charge, to any person obtaining a
7
* copy of this software and associated documentation files (the "Software"),
8
* to deal in the Software without restriction, including without limitation
9
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
* and/or sell copies of the Software, and to permit persons to whom the
11
11
* Software is furnished to do so, subject to the following conditions:
13
13
* The above copyright notice and this permission notice shall be included in
14
14
* all copies or substantial portions of the Software.
16
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
* HOLGER VEIT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
21
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
* HOLGER VEIT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
21
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
* Except as contained in this notice, the name of Sebastien Marineau or Holger Veit
25
* shall not be used in advertising or otherwise to promote the sale, use or other
24
* Except as contained in this notice, the name of Sebastien Marineau or Holger Veit
25
* shall not be used in advertising or otherwise to promote the sale, use or other
26
26
* dealings in this Software without prior written authorization from Holger Veit or
27
27
* Sebastien Marineau.
132
132
int np,ns, i,ready_handles,n;
135
sd.have_read=FALSE; sd.have_write=FALSE;
135
sd.have_read=FALSE; sd.have_write=FALSE;
136
136
sd.socket_nread=0; sd.socket_nwrite=0; sd.socket_ntotal=0;
137
137
sd.max_fds=31; ready_handles=0; any_ready=FALSE;
138
138
sd.pipe_ntotal=0; sd.pipe_have_write=FALSE;
396
396
rc = DosResetEventSem(hPipeSem,&ulPostCount);
397
rc = DosQueryNPipeSemState((HSEM) hPipeSem, (PPIPESEMSTATE)&pipeSemState,
397
rc = DosQueryNPipeSemState((HSEM) hPipeSem, (PPIPESEMSTATE)&pipeSemState,
398
398
sizeof(pipeSemState));
399
399
if(rc) fprintf(stderr,"SELECT: rc from QueryNPipeSem: %d\n",rc);