Hi, How is it that the ps utility maps the tty_nr from /proc/PID/stat field to the tty name? Is there a way to do this mapping using C code and only system calls (2)? Or, given a PID, how do I find the tty name associated with this process without ps, only with C code and system calls (2)? Or how ps does it? Cheers -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list