Lines Matching refs:opendevice
52 static int opendevice __P((char *, int));
154 if (opendevice(ipfname, 1) >= 0)
187 static int opendevice(ipfdev, check) in opendevice() function
227 if ((opendevice(ipfname, 1) != -2) && in get_flags()
239 if (opendevice(ipfname, 0) != -2)
254 (void) opendevice(ipfname, 1);
318 if (opendevice(ipfname, 1) != -2 &&
389 if (opendevice(IPSTATE_NAME, 1) == -2)
419 if (opendevice(IPL_AUTH, 1) == -1)
440 if (opendevice(ipfname, 1) == -2)
470 if (opendevice(ipfname, 1) != -2 && ioctl(fd, SIOCSWAPA, &in) == -1) in swapactive()
481 if (opendevice(ipfname, 1) != -2 && ioctl(fd, SIOCFRSYN, &frsyn) == -1) in ipf_frsync()
493 if (opendevice(ipfname, 1) != -2) { in zerostats()