Lines Matching defs:container
191 static int uv__process_init_stdio(uv_stdio_container_t* container, int fds[2]) {
197 switch (container->flags & mask) {
202 assert(container->data.stream != NULL);
203 if (container->data.stream->type != UV_NAMED_PIPE)
210 if (container->flags & UV_INHERIT_FD)
211 fd = container->data.fd;
213 fd = uv__stream_fd(container->data.stream);
228 static int uv__process_open_stream(uv_stdio_container_t* container,
233 if (!(container->flags & UV_CREATE_PIPE) || pipefds[0] < 0)
244 if (container->flags & UV_WRITABLE_PIPE)
246 if (container->flags & UV_READABLE_PIPE)
249 return uv__stream_open(container->data.stream, pipefds[0], flags);
253 static void uv__process_close_stream(uv_stdio_container_t* container) {
254 if (!(container->flags & UV_CREATE_PIPE)) return;
255 uv__stream_close(container->data.stream);