if ((port = DART_PORT(dev)) > 1) { printf("dartclose: inavalid device dev(%d, %d)\n", major(dev), minor(dev));
port = DART_PORT(dev); if (dart_cd.cd_ndevs == 0 || port > NDARTPORTS)
dartclose (dev, flag, mode, p)	dev_t dev;	int flag;	int mode;	struct proc *p;{	struct tty *tp;	struct dart_info *dart;	struct dartsoftc *sc;	int port;	if ((port = DART_PORT(dev)) > 1) {		printf("dartclose: inavalid device dev(%d, %d)\n", major(dev), minor(dev)); 		return (ENODEV);	}	sc = (struct dartsoftc *) dart_cd.cd_devs[0];	dart = &sc->sc_dart[port];	tp = dart->tty;	(*linesw[tp->t_line].l_close)(tp, flag);	ttyclose(tp);		return 0;}