Lines Matching defs:idx
120 int handleCnt, idx;
148 for (idx = 0; idx < handleCnt; idx++) {
149 channelList [idx].channelIdObj = handleObjv [idx];
150 channelList [idx].channel =
152 handleObjv [idx],
154 if (channelList [idx].channel == NULL)
158 if (TclXOSGetSelectFnum (interp, channelList [idx].channel,
160 &channelList [idx].readFd) != TCL_OK)
162 FD_SET (channelList [idx].readFd, fileSetPtr);
163 if ((int)channelList [idx].readFd > *maxFileIdPtr)
164 *maxFileIdPtr = (int)channelList [idx].readFd;
166 channelList [idx].readFd = -1;
170 if (TclXOSGetSelectFnum (interp, channelList [idx].channel,
172 &channelList [idx].writeFd) != TCL_OK)
174 FD_SET (channelList [idx].writeFd, fileSetPtr);
175 if ((int)channelList [idx].writeFd > *maxFileIdPtr)
176 *maxFileIdPtr = (int)channelList [idx].writeFd;
178 channelList [idx].writeFd = -1;
214 int idx, found = FALSE;
218 for (idx = 0; idx < fileDescCnt; idx++) {
219 if (Tcl_InputBuffered (channelList [idx].channel)) {
220 FD_SET (channelList [idx].readFd, fileDescSetPtr);
249 int idx, handleCnt;
253 for (idx = 0; idx < fileDescCnt; idx++) {
254 if (((channelList [idx].readFd >= 0) &&
255 FD_ISSET (channelList [idx].readFd, fileDescSetPtr)) ||
256 ((channelList [idx].writeFd >= 0) &&
257 FD_ISSET (channelList [idx].writeFd, fileDescSetPtr))) {
259 channelList [idx].channelIdObj);
290 int idx;
308 for (idx = 0; idx < 3; idx++) {
309 FD_ZERO (&fdSets [idx]);
310 descCnts [idx] = 0;
311 descLists [idx] = NULL;
317 for (idx = 0; (idx < 3) && (idx < objc - 1); idx++) {
318 descCnts [idx] = ParseSelectFileList (interp,
319 chanAccess [idx],
320 objv [idx + 1],
321 &fdSets [idx],
322 &descLists [idx],
324 if (descCnts [idx] < 0)
377 for (idx = 0; idx < descCnts [0]; idx++) {
378 if (FD_ISSET (descLists [0] [idx].readFd, &readPendingFDSet))
379 FD_SET (descLists [0] [idx].readFd, &(fdSets [0]));
388 for (idx = 0; idx < 3; idx++) {
389 handleSetList [idx] =
390 ReturnSelectedFileList (&fdSets [idx],
391 descCnts [idx],
392 descLists [idx]);
400 for (idx = 0; idx < 3; idx++) {
401 if (descLists [idx] != NULL)
402 ckfree ((char *) descLists [idx]);