Lines Matching refs:handle
75 HANDLE handle; in uv_disable_stdio_inheritance() local
79 handle = GetStdHandle(STD_INPUT_HANDLE); in uv_disable_stdio_inheritance()
80 if (handle != NULL && handle != INVALID_HANDLE_VALUE) in uv_disable_stdio_inheritance()
81 SetHandleInformation(handle, HANDLE_FLAG_INHERIT, 0); in uv_disable_stdio_inheritance()
83 handle = GetStdHandle(STD_OUTPUT_HANDLE); in uv_disable_stdio_inheritance()
84 if (handle != NULL && handle != INVALID_HANDLE_VALUE) in uv_disable_stdio_inheritance()
85 SetHandleInformation(handle, HANDLE_FLAG_INHERIT, 0); in uv_disable_stdio_inheritance()
87 handle = GetStdHandle(STD_ERROR_HANDLE); in uv_disable_stdio_inheritance()
88 if (handle != NULL && handle != INVALID_HANDLE_VALUE) in uv_disable_stdio_inheritance()
89 SetHandleInformation(handle, HANDLE_FLAG_INHERIT, 0); in uv_disable_stdio_inheritance()
98 static int uv__duplicate_handle(uv_loop_t* loop, HANDLE handle, HANDLE* dup) { in uv__duplicate_handle() argument
107 if (handle == INVALID_HANDLE_VALUE || in uv__duplicate_handle()
108 handle == NULL || in uv__duplicate_handle()
109 handle == (HANDLE) -2) { in uv__duplicate_handle()
117 handle, in uv__duplicate_handle()
132 HANDLE handle; in uv__duplicate_fd() local
139 handle = uv__get_osfhandle(fd); in uv__duplicate_fd()
140 return uv__duplicate_handle(loop, handle, dup); in uv__duplicate_fd()
146 HANDLE handle; in uv__create_nul_handle() local
153 handle = CreateFileW(L"NUL", in uv__create_nul_handle()
160 if (handle == INVALID_HANDLE_VALUE) { in uv__create_nul_handle()
164 *handle_ptr = handle; in uv__create_nul_handle()
314 stream_handle = ((uv_tty_t*) stream)->handle; in uv__stdio_create()
318 stream_handle = ((uv_pipe_t*) stream)->handle; in uv__stdio_create()
363 HANDLE handle = uv__stdio_handle(buffer, i); in uv__stdio_destroy() local
364 if (handle != INVALID_HANDLE_VALUE) { in uv__stdio_destroy()
365 CloseHandle(handle); in uv__stdio_destroy()
378 HANDLE handle = uv__stdio_handle(buffer, i); in uv__stdio_noinherit() local
379 if (handle != INVALID_HANDLE_VALUE) { in uv__stdio_noinherit()
380 SetHandleInformation(handle, HANDLE_FLAG_INHERIT, 0); in uv__stdio_noinherit()
416 HANDLE handle; in uv__stdio_handle() local
417 memcpy(&handle, CHILD_STDIO_HANDLE(buffer, fd), sizeof(HANDLE)); in uv__stdio_handle()
418 return handle; in uv__stdio_handle()