(fd, mask, proc, clientData)
| 471 | * from the Tk main loop. In a non-Tk environment, a |
| 472 | * Tcp_FileHandler structure is created to describe the file, and |
| 473 | * this structure is linked to a chain of such structures |
| 474 | * processed by the server main loop. |
| 475 | */ |
| 476 | |
| 477 | void |
| 478 | simpleCreateFileHandler (fd, mask, proc, clientData) |
| 479 | int fd; |
| 480 | int mask; |
| 481 | Tk_FileProc * proc; |
| 482 | ClientData clientData; |
| 483 | { |
| 484 | Tk_CreateFileHandler (fd, mask, (Tk_FileProc *) proc, clientData); |
| 485 | |
| 486 | /* It is possible that we have a file handler scheduled for deletion. |
| 487 | * This deletion has to be cancelled if we've requested creation of |
| 488 | * another one. |
| 489 | */ |
| 490 | |
| 491 | Tk_CancelIdleCall ((Tk_IdleProc *) simpleDeleteFileHandler2, |
| 492 | (ClientData) fd); |
no test coverage detected