Lines Matching defs:fd
298 * HOST_BROADCAST then we ask a tli fd to tell us what
2499 int fd;
2512 if ((fd = open(devpath, O_RDONLY)) < 0) {
2515 while ((retv = ioctl(fd, cmd, arg)) == -1) {
2519 (void) close(fd);
2901 int fd;
2907 fd = open(tp->nc_device, O_RDONLY);
2908 if (fd < 0) {
2913 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0)
2918 (void) close(fd);
2925 (void) close(fd);
2934 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) {
2939 (void) close(fd);
2949 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifreq) < 0) {
2960 if (ioctl(fd, SIOCGIFBRDADDR, (char *)&ifreq) < 0) {
2985 if (ioctl(fd, SIOCGIFDSTADDR, (char *)&ifreq) < 0)
3000 (void) close(fd);