Lines Matching defs:lfd
61 int lfd = -1;
171 if (lfd != -1) {
172 close(lfd);
173 lfd = -1;
187 lfd = open(IPSYNC_NAME, O_RDWR);
188 if (lfd == -1) {
206 if (lfd != -1)
207 close(lfd);
230 FD_SET(lfd, &mrd);
233 if (lfd > maxfd)
234 maxfd = lfd;
235 debug(2, "nfd %d lfd %d maxfd %d\n", nfd, lfd, maxfd);
240 * work on reading lfd (only) all the time and another thread
261 if (FD_ISSET(lfd, &rd)) {
262 n1 = read(lfd, buff+inbuf, BUFFERLEN-inbuf);
495 n3 = write(lfd, buff, n2);
544 (void) ioctl(lfd, SIOCIPFFL, &n2);