HomeSort by: relevance | last modified time | path
    Searched defs:ttname (Results 1 - 2 of 2) sorted by relevancy

  /src/bin/ps/
ps.c 152 ttyname2dev(const char *ttname, int *xflg, int *what)
159 if (strcmp(ttname, "?") == 0) {
163 if (strcmp(ttname, "-") == 0)
166 if (strcmp(ttname, "co") == 0)
168 else if (strncmp(ttname, "pts/", 4) == 0 ||
169 strncmp(ttname, "tty", 3) == 0) {
171 sizeof(pathbuf), "%s%s", _PATH_DEV, ttname);
173 } else if (*ttname != '/') {
175 sizeof(pathbuf), "%s%s", _PATH_TTY, ttname);
178 ttypath = ttname;
213 char *ttname; local in function:main
    [all...]
print.c 738 const char *ttname; local in function:tname
743 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL) {
754 fmtlen = strlen(ttname) + noctty;
759 (void)printf("%-*s-", v->width - 1, ttname);
761 (void)printf("%-*s", v->width, ttname);
772 const char *ttname; local in function:longtname
776 if (dev == NODEV || (ttname = devname(dev, S_IFCHR)) == NULL) {
783 strprintorsetwidth(v, ttname, mode);

Completed in 13 milliseconds