Lines Matching refs:p_device
359 if ((fd = open(pmptr->p_device, O_RDONLY|O_NONBLOCK|O_NOCTTY)) < 0) {
360 log("open (%s) failed: %s", pmptr->p_device, strerror(errno));
365 log("set soft-carrier (%s) failed: %s", pmptr->p_device,
392 revokedevaccess(pmptr->p_device, 0, 0, 0);
394 if ((fd = open(pmptr->p_device, O_RDWR)) == -1)
395 fatal("open (%s) failed: %s", pmptr->p_device,
408 } else if ((fd = open(pmptr->p_device, O_RDWR|O_NONBLOCK))
410 log("open (%s) failed: %s", pmptr->p_device,
446 pmptr->p_device);
480 if ((tmpfd = open(pmptr->p_device, O_RDWR|O_NONBLOCK)) == -1) {
481 log("open (%s) failed: %s", pmptr->p_device,
491 debug("open_device (%s), fd = %d", pmptr->p_device, fd);
504 if (push_linedisc(fd, pmptr->p_modules, pmptr->p_device)
518 di_devperm_logout((const char *)pmptr->p_device);