]> granicus.if.org Git - procps-ng/commit
library: add abbreviated TTY_NUMBER to that <pids> API
authorJim Warner <james.warner@comcast.net>
Wed, 30 Sep 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 5 Oct 2015 10:39:37 +0000 (21:39 +1100)
commit042cfa71e7cbe9c2f020b29474d31ee48d270cac
treeb1b50daa38b480a7b2515f953353ad1a98036502
parentd66000588a476fbd08bbc4c2ab1880eeeb5e67b1
library: add abbreviated TTY_NUMBER to that <pids> API

While not documented in the man page, ps allows 'tty4'
as a valid output specifier complimenting 'tty8' & its
derivatives. So, in order to eliminate a dev_to_name()
call in the ps program the library will now offer this
abbreviated tty version (consisting of a number only).

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/pids.c
proc/pids.h