]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: log file usage refactoring
authorKarel Zak <kzak@redhat.com>
Wed, 3 Apr 2019 14:32:41 +0000 (16:32 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Oct 2019 11:11:53 +0000 (13:11 +0200)
commit596f42027d7e9ff7486abe90cf38e3f6cbd6f44c
tree37dbe5953462d6c406e62bcb21b44d9c56d6b5f6
parentb3fc2a3c33905cc6871f99334e56221478d2609c
script: log file usage refactoring

This commit does not add any new feature. It just prepare code for
future extensions only.

* introduce two new structs: script_stream and script_log
* define two streams: 'stdout' and 'stdin'
* allow associate log files (type script or timing file) with the stream
* support more log file formats

Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c