Lines Matching refs:p_device
346 if ((fd = open(pmptr->p_device, O_RDONLY|O_NONBLOCK|O_NOCTTY)) < 0) { in set_softcar()
347 log("open (%s) failed: %s", pmptr->p_device, strerror(errno)); in set_softcar()
352 log("set soft-carrier (%s) failed: %s", pmptr->p_device, in set_softcar()
378 revokedevaccess(pmptr->p_device, 0, 0, 0); in open_device()
380 if ((fd = open(pmptr->p_device, O_RDWR)) == -1) in open_device()
381 fatal("open (%s) failed: %s", pmptr->p_device, in open_device()
394 } else if ((fd = open(pmptr->p_device, O_RDWR|O_NONBLOCK)) in open_device()
396 log("open (%s) failed: %s", pmptr->p_device, in open_device()
433 pmptr->p_device); in open_device()
467 if ((tmpfd = open(pmptr->p_device, O_RDWR|O_NONBLOCK)) == -1) { in open_device()
468 log("open (%s) failed: %s", pmptr->p_device, in open_device()
478 debug("open_device (%s), fd = %d", pmptr->p_device, fd); in open_device()
491 if (push_linedisc(fd, pmptr->p_modules, pmptr->p_device) in open_device()
505 (void) di_devperm_logout((const char *)pmptr->p_device); in open_device()
685 strcmp(pmptr->p_device, "/dev/console") != 0) in get_speed()