Lines Matching refs:ifd
575 int ifd, x; in sys_init() local
627 ifd = open(PPP_DEV_NAME, O_RDWR, 0); in sys_init()
628 if (ifd < 0) in sys_init()
632 strioctl(ifd, PPPIO_DEBUG, &x, sizeof(int), 0); in sys_init()
638 close(ifd); in sys_init()
648 if (ioctl(ifd, I_PUSH, IP_MOD_NAME) < 0) { in sys_init()
649 close(ifd); in sys_init()
660 if (sifppa(ifd, ifunit) < 0) { in sys_init()
661 close (ifd); in sys_init()
675 close(ifd); in sys_init()
686 close(ifd); in sys_init()
692 ipmuxid = ioctl(ipfd, I_PLINK, ifd); in sys_init()
693 close(ifd); in sys_init()
722 if (dlpi_attach(ifd, ifunit) < 0 || in sys_init()
723 dlpi_get_reply(ifd, &reply.prim, DL_OK_ACK, sizeof(reply)) < 0) { in sys_init()
724 close(ifd); in sys_init()
728 ipmuxid = ioctl(ipfd, I_LINK, ifd); in sys_init()
729 close(ifd); in sys_init()