Lines Matching defs:handle
220 /* handle SIGINT signal with our exit_signal_handler */
227 /* handle SIGTERM signal with our exit_signal_handler */
234 /* handle SIGBREAK signal with our exit_signal_handler */
276 HANDLE handle = NULL;
281 handle = GetStdHandle(STD_INPUT_HANDLE);
287 if(GetConsoleMode(handle, &mode)) {
288 success = ReadConsole(handle, buf, count, &rcount, NULL);
291 success = ReadFile(handle, buf, count, &rcount, NULL);
308 HANDLE handle = NULL;
313 handle = GetStdHandle(STD_OUTPUT_HANDLE);
316 handle = GetStdHandle(STD_ERROR_HANDLE);
322 if(GetConsoleMode(handle, &mode)) {
323 success = WriteConsole(handle, buf, count, &wcount, NULL);
326 success = WriteFile(handle, buf, count, &wcount, NULL);
506 * to re-create a select() function with support for other handle types.
509 * other handle types supported by WaitForMultipleObjectsEx().
518 HANDLE handle;
521 handle = (HANDLE) lpParameter;
523 if(GetConsoleMode(handle, &mode))
524 WaitForSingleObjectEx(handle, INFINITE, FALSE);
526 ReadFile(handle, NULL, 0, &mode, NULL);
536 HANDLE handle, *handles;
645 handle = handles[idx];
649 /* check if the current internal handle was triggered */
651 WaitForSingleObjectEx(handle, 0, FALSE) == WAIT_OBJECT_0) {
652 /* first handle stdin, stdout and stderr */
664 /* try to handle the event with the WINSOCK2 functions */
665 error = WSAEnumNetworkEvents(fds, handle, &wsanetevents);
697 /* remove from all descriptor sets since this handle did not trigger */