Lines Matching defs:ttname
360 char *ttname, *str;
363 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
366 if (strncmp(ttname, "tty", 3) == 0 ||
367 strncmp(ttname, "cua", 3) == 0)
368 ttname += 3;
369 if (strncmp(ttname, "pts/", 4) == 0)
370 ttname += 4;
371 asprintf(&str, "%s%c", ttname,
382 const char *ttname;
385 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL)
386 ttname = "-";
388 return (strdup(ttname));