Lines Matching defs:ttname
348 char *ttname, *str;
351 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
354 if (strncmp(ttname, "tty", 3) == 0 ||
355 strncmp(ttname, "cua", 3) == 0)
356 ttname += 3;
357 if (strncmp(ttname, "pts/", 4) == 0)
358 ttname += 4;
359 asprintf(&str, "%s%c", ttname,
370 const char *ttname;
373 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
374 ttname = "-";
376 return (strdup(ttname));