]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/ttyutils: introduce get_terminal_stdfd()
authorKarel Zak <kzak@redhat.com>
Mon, 27 May 2019 10:49:12 +0000 (12:49 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 27 May 2019 10:49:12 +0000 (12:49 +0200)
commita6d9d23b5f9e3c1d421c1f32a3f1dffe8452cb74
treedfcba7aa547a7adeb25cce9ce4ab85a0e28458b6
parentebd13d3fc53189ab620da51eae2dfc6b19db786c
lib/ttyutils: introduce get_terminal_stdfd()

Let's use separate function to detect what is the current terminal.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/pathnames.h
include/ttyutils.h
lib/ttyutils.c