Lines Matching full:netlinkfd
46 rtc->netlinkfd = socket (AF_NETLINK, SOCK_RAW, NETLINK_ROUTE);
47 if (rtc->netlinkfd < 0)
52 if (bind (rtc->netlinkfd, (struct sockaddr *) &sa, sizeof (sa)) < 0)
55 close (rtc->netlinkfd);
58 if (fcntl (rtc->netlinkfd, F_SETFL, O_NONBLOCK) < 0)
61 close (rtc->netlinkfd);
79 if ( (ret = read (rtc->netlinkfd, buf, sizeof (buf))) < 0)
99 while (read (rtc->netlinkfd, buf, sizeof (buf)) > 0)
123 FD_SET (rtc->netlinkfd, &fds);
124 while (select (rtc->netlinkfd + 1, &fds, NULL, NULL, rp) >= 0)
127 FD_SET (rtc->netlinkfd, &fds);
142 close (rtc->netlinkfd);