Lines Matching refs:device_fd
37 static ssize_t wait_bc(int device_fd, int secs);
68 int device_fd; /* AppSocket */ in main() local
299 if ((addr = httpAddrConnect(addrlist, &device_fd)) == NULL) in main()
302 device_fd = -1; in main()
388 tbytes += write(device_fd, buffer, (size_t)bytes); in main()
400 …if ((bytes = backendRunLoop(print_fd, device_fd, snmp_fd, &(addrlist->addr), 1, 0, backendNetworkS… in main()
419 shutdown(device_fd, 1); in main()
421 while (wait_bc(device_fd, 90) > 0); in main()
437 close(device_fd); in main()
457 wait_bc(int device_fd, /* I - Socket */ in wait_bc() argument
474 FD_SET(device_fd, &input); in wait_bc()
476 if (select(device_fd + 1, &input, NULL, NULL, &timeout) > 0) in wait_bc()
482 if ((bytes = read(device_fd, buffer, sizeof(buffer))) > 0) in wait_bc()