Lines Matching refs:fsPtr

256     FileState *fsPtr = (FileState *) instanceData;
261 if (fsPtr->inFile != NULL) {
262 fd = (int) Tcl_GetFileInfo(fsPtr->inFile, NULL);
274 if (fsPtr->outFile != NULL) {
275 fd = (int) Tcl_GetFileInfo(fsPtr->outFile, NULL);
289 if (fsPtr->inFile != NULL) {
290 fd = (int) Tcl_GetFileInfo(fsPtr->inFile, NULL);
300 if (fsPtr->outFile != NULL) {
301 fd = (int) Tcl_GetFileInfo(fsPtr->outFile, NULL);
343 FileState *fsPtr = (FileState *) instanceData;
349 fd = (int) Tcl_GetFileInfo(fsPtr->inFile, NULL);
393 FileState *fsPtr = (FileState *) instanceData;
398 fd = (int) Tcl_GetFileInfo(fsPtr->outFile, NULL);
430 FileState *fsPtr = (FileState *) instanceData;
433 if (fsPtr->inFile != NULL) {
439 if (fsPtr->inFile == fsPtr->outFile) {
440 fsPtr->outFile = NULL;
442 fd = (int) Tcl_GetFileInfo(fsPtr->inFile, NULL);
443 Tcl_FreeFile(fsPtr->inFile);
451 if (fsPtr->outFile != NULL) {
452 fd = (int) Tcl_GetFileInfo(fsPtr->outFile, NULL);
453 Tcl_FreeFile(fsPtr->outFile);
461 ckfree((char *) fsPtr);
497 FileState *fsPtr = (FileState *) instanceData;
502 if (fsPtr->inFile != (Tcl_File) NULL) {
503 fd = (int) Tcl_GetFileInfo(fsPtr->inFile, NULL);
504 } else if (fsPtr->outFile != (Tcl_File) NULL) {
505 fd = (int) Tcl_GetFileInfo(fsPtr->outFile, NULL);
543 FileState *fsPtr = (FileState *) instanceData;
545 if ((mask & TCL_READABLE) && (fsPtr->inFile != (Tcl_File) NULL)) {
546 Tcl_WatchFile(fsPtr->inFile, TCL_READABLE);
548 if ((mask & TCL_WRITABLE) && (fsPtr->outFile != (Tcl_File) NULL)) {
549 Tcl_WatchFile(fsPtr->outFile, TCL_WRITABLE);
553 if (fsPtr->inFile != (Tcl_File) NULL) {
554 Tcl_WatchFile(fsPtr->inFile, TCL_EXCEPTION);
556 if (fsPtr->outFile != (Tcl_File) NULL) {
557 Tcl_WatchFile(fsPtr->outFile, TCL_EXCEPTION);
588 FileState *fsPtr = (FileState *) instanceData;
591 if ((mask & TCL_READABLE) && (fsPtr->inFile != (Tcl_File) NULL)) {
592 present |= Tcl_FileReady(fsPtr->inFile, TCL_READABLE);
594 if ((mask & TCL_WRITABLE) && (fsPtr->outFile != (Tcl_File) NULL)) {
595 present |= Tcl_FileReady(fsPtr->outFile, TCL_WRITABLE);
598 if (fsPtr->inFile != (Tcl_File) NULL) {
599 present |= Tcl_FileReady(fsPtr->inFile, TCL_EXCEPTION);
601 if (fsPtr->outFile != (Tcl_File) NULL) {
602 present |= Tcl_FileReady(fsPtr->outFile, TCL_EXCEPTION);
631 FileState *fsPtr = (FileState *) instanceData;
634 return fsPtr->inFile;
637 return fsPtr->outFile;
808 FileState *fsPtr;
854 fsPtr = (FileState *) ckalloc((unsigned) sizeof(FileState));
855 fsPtr->inFile = pipePtr->errorFile;
856 fsPtr->outFile = (Tcl_File) NULL;
858 (ClientData) fsPtr, TCL_READABLE);
1125 FileState *fsPtr;
1183 fsPtr = (FileState *) ckalloc((unsigned) sizeof(FileState));
1185 fsPtr->inFile = file;
1187 fsPtr->inFile = (Tcl_File) NULL;
1190 fsPtr->outFile = file;
1192 fsPtr->outFile = (Tcl_File) NULL;
1195 (ClientData) fsPtr, channelPermissions);
1255 FileState *fsPtr;
1294 fsPtr = (FileState *) ckalloc((unsigned) sizeof(FileState));
1295 fsPtr->inFile = inFile;
1296 fsPtr->outFile = outFile;
1299 (ClientData) fsPtr, mode);