| /openbsd/src/usr.sbin/rad/ |
| D | engine.c | 72 static struct imsgev *iev_frontend; variable 164 imsgbuf_clear(&iev_frontend->ibuf); in engine_shutdown() 165 close(iev_frontend->ibuf.fd); in engine_shutdown() 171 free(iev_frontend); in engine_shutdown() 181 return (imsg_compose_event(iev_frontend, type, 0, pid, -1, in engine_imsg_compose_frontend() 309 if (iev_frontend) in engine_dispatch_main() 317 iev_frontend = malloc(sizeof(struct imsgev)); in engine_dispatch_main() 318 if (iev_frontend == NULL) in engine_dispatch_main() 321 if (imsgbuf_init(&iev_frontend->ibuf, fd) == -1) in engine_dispatch_main() 323 iev_frontend->handler = engine_dispatch_frontend; in engine_dispatch_main() [all …]
|
| D | rad.c | 78 static struct imsgev *iev_frontend; variable 240 if ((iev_frontend = malloc(sizeof(struct imsgev))) == NULL || in main() 243 if (imsgbuf_init(&iev_frontend->ibuf, pipe_main2frontend[0]) == -1) in main() 245 imsgbuf_allow_fdpass(&iev_frontend->ibuf); in main() 246 iev_frontend->handler = main_dispatch_frontend; in main() 253 iev_frontend->events = EV_READ; in main() 254 event_set(&iev_frontend->ev, iev_frontend->ibuf.fd, in main() 255 iev_frontend->events, iev_frontend->handler, iev_frontend); in main() 256 event_add(&iev_frontend->ev, NULL); in main() 263 if (main_imsg_send_ipc_sockets(&iev_frontend->ibuf, &iev_engine->ibuf)) in main() [all …]
|
| /openbsd/src/sbin/unwind/ |
| D | unwind.c | 79 static struct imsgev *iev_frontend; variable 239 if ((iev_frontend = malloc(sizeof(struct imsgev))) == NULL || in main() 242 if (imsgbuf_init(&iev_frontend->ibuf, pipe_main2frontend[0]) == -1) in main() 244 imsgbuf_allow_fdpass(&iev_frontend->ibuf); in main() 245 iev_frontend->handler = main_dispatch_frontend; in main() 252 iev_frontend->events = EV_READ; in main() 253 event_set(&iev_frontend->ev, iev_frontend->ibuf.fd, in main() 254 iev_frontend->events, iev_frontend->handler, iev_frontend); in main() 255 event_add(&iev_frontend->ev, NULL); in main() 262 if (main_imsg_send_ipc_sockets(&iev_frontend->ibuf, in main() [all …]
|
| D | resolver.c | 211 static struct imsgev *iev_frontend; variable 458 imsgbuf_clear(&iev_frontend->ibuf); in resolver_shutdown() 459 close(iev_frontend->ibuf.fd); in resolver_shutdown() 465 free(iev_frontend); in resolver_shutdown() 482 return (imsg_compose_event(iev_frontend, type, 0, pid, -1, in resolver_imsg_compose_frontend() 664 if (iev_frontend) in resolver_dispatch_main() 672 iev_frontend = malloc(sizeof(struct imsgev)); in resolver_dispatch_main() 673 if (iev_frontend == NULL) in resolver_dispatch_main() 676 if (imsgbuf_init(&iev_frontend->ibuf, fd) == -1) in resolver_dispatch_main() 678 iev_frontend->handler = resolver_dispatch_frontend; in resolver_dispatch_main() [all …]
|
| /openbsd/src/sbin/slaacd/ |
| D | slaacd.c | 85 static struct imsgev *iev_frontend; variable 230 if ((iev_frontend = malloc(sizeof(struct imsgev))) == NULL || in main() 233 if (imsgbuf_init(&iev_frontend->ibuf, pipe_main2frontend[0]) == -1) in main() 235 imsgbuf_allow_fdpass(&iev_frontend->ibuf); in main() 236 iev_frontend->handler = main_dispatch_frontend; in main() 243 iev_frontend->events = EV_READ; in main() 244 event_set(&iev_frontend->ev, iev_frontend->ibuf.fd, in main() 245 iev_frontend->events, iev_frontend->handler, iev_frontend); in main() 246 event_add(&iev_frontend->ev, NULL); in main() 253 if (main_imsg_send_ipc_sockets(&iev_frontend->ibuf, &iev_engine->ibuf)) in main() [all …]
|
| D | engine.c | 304 static struct imsgev *iev_frontend; variable 421 imsgbuf_clear(&iev_frontend->ibuf); in engine_shutdown() 422 close(iev_frontend->ibuf.fd); in engine_shutdown() 426 free(iev_frontend); in engine_shutdown() 437 return (imsg_compose_event(iev_frontend, type, 0, pid, -1, in engine_imsg_compose_frontend() 666 if (iev_frontend) in engine_dispatch_main() 674 iev_frontend = malloc(sizeof(struct imsgev)); in engine_dispatch_main() 675 if (iev_frontend == NULL) in engine_dispatch_main() 678 if (imsgbuf_init(&iev_frontend->ibuf, fd) == -1) in engine_dispatch_main() 680 iev_frontend->handler = engine_dispatch_frontend; in engine_dispatch_main() [all …]
|
| /openbsd/src/sbin/dhcpleased/ |
| D | dhcpleased.c | 95 static struct imsgev *iev_frontend; variable 273 if ((iev_frontend = malloc(sizeof(struct imsgev))) == NULL || in main() 276 if (imsgbuf_init(&iev_frontend->ibuf, pipe_main2frontend[0]) == -1) in main() 278 imsgbuf_allow_fdpass(&iev_frontend->ibuf); in main() 279 iev_frontend->handler = main_dispatch_frontend; in main() 286 iev_frontend->events = EV_READ; in main() 287 event_set(&iev_frontend->ev, iev_frontend->ibuf.fd, in main() 288 iev_frontend->events, iev_frontend->handler, iev_frontend); in main() 289 event_add(&iev_frontend->ev, NULL); in main() 296 if (main_imsg_send_ipc_sockets(&iev_frontend->ibuf, &iev_engine->ibuf)) in main() [all …]
|
| D | engine.c | 159 static struct imsgev *iev_frontend; variable 251 imsgbuf_clear(&iev_frontend->ibuf); in engine_shutdown() 252 close(iev_frontend->ibuf.fd); in engine_shutdown() 256 free(iev_frontend); in engine_shutdown() 267 return (imsg_compose_event(iev_frontend, type, 0, pid, -1, in engine_imsg_compose_frontend() 439 if (iev_frontend) in engine_dispatch_main() 447 iev_frontend = malloc(sizeof(struct imsgev)); in engine_dispatch_main() 448 if (iev_frontend == NULL) in engine_dispatch_main() 451 if (imsgbuf_init(&iev_frontend->ibuf, fd) == -1) in engine_dispatch_main() 453 iev_frontend->handler = engine_dispatch_frontend; in engine_dispatch_main() [all …]
|