def _get_ttyname_bsd(self):
        import FreeBSD.devdb
        [major, minor] = map(int, self.ctty.split(","))
        if major < 0:
            return "?"
        db = FreeBSD.devdb.open()
        try:
            name = db.get_char(major, minor)
        except:
            name = "?"
        db.close()
        return name
dataset/ETHPy150Open kdart/pycopia/core/pycopia/OS/FreeBSD/procfs.py/ProcStat._get_ttyname_bsd/original