Lines Matching defs:container
165 static int uv__process_init_stdio(uv_stdio_container_t* container, int fds[2]) {
171 switch (container->flags & mask) {
176 assert(container->data.stream != NULL);
177 if (container->data.stream->type != UV_NAMED_PIPE)
184 if (container->flags & UV_INHERIT_FD)
185 fd = container->data.fd;
187 fd = uv__stream_fd(container->data.stream);
202 static int uv__process_open_stream(uv_stdio_container_t* container,
207 if (!(container->flags & UV_CREATE_PIPE) || pipefds[0] < 0)
218 if (container->flags & UV_WRITABLE_PIPE)
220 if (container->flags & UV_READABLE_PIPE)
223 return uv__stream_open(container->data.stream, pipefds[0], flags);
227 static void uv__process_close_stream(uv_stdio_container_t* container) {
228 if (!(container->flags & UV_CREATE_PIPE)) return;
229 uv__stream_close(container->data.stream);