Searched refs:devd_pipe (Results 1 – 4 of 4) sorted by relevance
/freebsd/lib/libusb/ |
H A D | libusb10_hotplug.c | 93 if ((ctx->devd_pipe = socket(PF_LOCAL, SOCK_SEQPACKET|SOCK_NONBLOCK, 0)) < 0) in devd_init() 98 if (connect(ctx->devd_pipe, (struct sockaddr *)&devd_addr, in devd_init() 100 close(ctx->devd_pipe); in devd_init() 101 ctx->devd_pipe = -1; in devd_init() 150 len = read(ctx->devd_pipe, buf, sizeof(buf)); in verify_event_validity() 230 pfd.fd = ctx->devd_pipe; in libusb_hotplug_scan() 259 if (ctx->devd_pipe != -1) in libusb_hotplug_scan() 260 close(ctx->devd_pipe); in libusb_hotplug_scan() 278 close(ctx->devd_pipe); in libusb_hotplug_scan()
|
H A D | libusb10.h | 101 int devd_pipe; member
|
H A D | libusb10.c | 207 ctx->devd_pipe = -1; in libusb_init_context() 331 close(ctx->devd_pipe); in libusb_exit() 332 ctx->devd_pipe = -1; in libusb_exit()
|
/freebsd/usr.sbin/powerd/ |
H A D | powerd.c | 137 static int devd_pipe = -1; variable 388 rlen = read(devd_pipe, buf, sizeof(buf)); 494 if ((devd_pipe = socket(PF_LOCAL, SOCK_STREAM|SOCK_NONBLOCK, 0)) < 0) { 502 if (connect(devd_pipe, (struct sockaddr *)&devd_addr, 506 close(devd_pipe); 507 devd_pipe = -1; 511 return (devd_pipe); 518 close(devd_pipe); 519 devd_pipe = -1; 771 if (devd_pipe > [all...] |