Home
last modified time | relevance | path

Searched refs:ps_ctl (Results 1 – 3 of 3) sorted by relevance

/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Dprivsep-control.c132 fd = control_new(ctx, ctx->ps_ctl->psp_work_fd, fd_flags); in ps_ctl_dispatch()
169 len = read(ctx->ps_ctl->psp_work_fd, buf, sizeof(buf)); in ps_ctl_recv()
177 __func__, ctx->ps_ctl->psp_work_fd, len); in ps_ctl_recv()
236 psp = ctx->ps_ctl = ps_newprocess(ctx, &id); in ps_ctl_start()
277 return ps_stopprocess(ctx->ps_ctl); in ps_ctl_stop()
288 return ps_sendcmd(ctx, ctx->ps_ctl->psp_fd, PS_CTL, in ps_ctl_sendargs()
298 return ps_sendcmd(ctx, ctx->ps_ctl->psp_fd, PS_CTL_EOF, 0, NULL, 0); in ps_ctl_sendeof()
H A Dprivsep.c164 if (ctx->ps_ctl == NULL || ctx->ps_ctl->psp_pid != getpid()) { in ps_dropprivs()
699 if (ctx->ps_ctl != NULL) { in ps_stop()
797 if (ctx->ps_ctl == psp) in ps_freeprocess()
798 ctx->ps_ctl = NULL; in ps_freeprocess()
814 else if (ctx->ps_ctl != NULL) in ps_free()
815 ppsp = ctx->ps_ctl; in ps_free()
H A Ddhcpcd.h200 struct ps_process *ps_ctl; member