Lines Matching refs:ioctl
60 #include <sys/ioctl.h>
2515 while ((retv = ioctl(fd, cmd, arg)) == -1) {
2586 "ioctl (get interface configuration): %m");
2619 "ioctl (get interface flags): %m");
2628 "ioctl (get interface netmask): %m");
2913 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0)
2931 * Ideally, this ioctl should also tell me, how many bytes were
2934 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) {
2936 "broadcast: ioctl (get interface configuration): %m");
2949 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifreq) < 0) {
2951 "ioctl (get interface flags): %m");
2960 if (ioctl(fd, SIOCGIFBRDADDR, (char *)&ifreq) < 0) {
2985 if (ioctl(fd, SIOCGIFDSTADDR, (char *)&ifreq) < 0)