| 395 | } |
| 396 | |
| 397 | int |
| 398 | pipe_named_ctor(struct pipe **ppipe, struct thread *td) |
| 399 | { |
| 400 | struct pipepair *pp; |
| 401 | int error; |
| 402 | |
| 403 | error = pipe_paircreate(td, &pp); |
| 404 | if (error != 0) |
| 405 | return (error); |
| 406 | pp->pp_rpipe.pipe_type |= PIPE_TYPE_NAMED; |
| 407 | *ppipe = &pp->pp_rpipe; |
| 408 | return (0); |
| 409 | } |
| 410 | |
| 411 | void |
| 412 | pipe_dtor(struct pipe *dpipe) |
nothing calls this directly
no test coverage detected