• Home
  • Raw
  • Download

Lines Matching refs:pipe_fds

121 		if (lsp->pipe_fds[n][!!(n == 0)]) {  in lws_spawn_piped_destroy()
122 CloseHandle(lsp->pipe_fds[n][n == 0]); in lws_spawn_piped_destroy()
123 lsp->pipe_fds[n][n == 0] = NULL; in lws_spawn_piped_destroy()
268 if (wsi && lsp->pipe_fds[LWS_STDOUT][0] != NULL) { in windows_pipe_poll_hack()
269 if (!PeekNamedPipe(lsp->pipe_fds[LWS_STDOUT][0], &c, 1, &br, in windows_pipe_poll_hack()
274 lsp->pipe_fds[LWS_STDOUT][0] = NULL; in windows_pipe_poll_hack()
286 lsp->pipe_fds[LWS_STDIN][1] = NULL; in windows_pipe_poll_hack()
307 if (wsi1 && lsp->pipe_fds[LWS_STDERR][0]) { in windows_pipe_poll_hack()
308 if (!PeekNamedPipe(lsp->pipe_fds[LWS_STDERR][0], &c, 1, &br, in windows_pipe_poll_hack()
319 lsp->pipe_fds[LWS_STDERR][0] = NULL; in windows_pipe_poll_hack()
376 lsp->pipe_fds[n][0] = NULL; in lws_spawn_piped()
377 lsp->pipe_fds[n][1] = NULL; in lws_spawn_piped()
390 if (!CreatePipe(&lsp->pipe_fds[n][0], &lsp->pipe_fds[n][1], in lws_spawn_piped()
396 SetNamedPipeHandleState(lsp->pipe_fds[1][0], &waitmode, NULL, NULL); in lws_spawn_piped()
397 SetNamedPipeHandleState(lsp->pipe_fds[2][0], &waitmode, NULL, NULL); in lws_spawn_piped()
401 if (!SetHandleInformation(&lsp->pipe_fds[n][!n], in lws_spawn_piped()
426 lsp->stdwsi[n]->desc.filefd = lsp->pipe_fds[n][!n]; in lws_spawn_piped()
431 lsp->pipe_fds[n][!!(n == 0)], in lws_spawn_piped()
432 lsp->pipe_fds[n][!(n == 0)]); in lws_spawn_piped()
438 lsp->stdwsi[n]->desc.filefd = lsp->pipe_fds[n][!!(n == 0)]; in lws_spawn_piped()
439 if (fcntl(lsp->pipe_fds[n][!!(n == 0)], F_SETFL, O_NONBLOCK) < 0) { in lws_spawn_piped()
491 si.hStdInput = lsp->pipe_fds[LWS_STDIN][0]; in lws_spawn_piped()
492 si.hStdOutput = lsp->pipe_fds[LWS_STDOUT][1]; in lws_spawn_piped()
493 si.hStdError = lsp->pipe_fds[LWS_STDERR][1]; in lws_spawn_piped()
514 CloseHandle(lsp->pipe_fds[n][n != 0]); in lws_spawn_piped()
541 if (lsp->pipe_fds[n][0] >= 0) in lws_spawn_piped()
542 CloseHandle(lsp->pipe_fds[n][0]); in lws_spawn_piped()
543 if (lsp->pipe_fds[n][1] >= 0) in lws_spawn_piped()
544 CloseHandle(lsp->pipe_fds[n][1]); in lws_spawn_piped()