summaryrefslogtreecommitdiffstats
path: root/term-utils/Makemodule.am
Commit message (Collapse)AuthorAgeFilesLines
* mesg: avoid 'ttyname failed: Success' messageKarel Zak2019-05-271-0/+1
| | | | | | | | | | | | | The ttyname(3) can fail to access /dev/ path, and that will cause function to fail without setting errno value with result of rather confusing error message. Lets start setting stdin permission via /proc when this happens as a go-around, with hope kernel following symlink does not fail. Ok, noted, that hopes of symlink follow working are pretty slim. Based on patch from Sami Kerola <kerolasa@iki.fi>. Reference: https://github.com/lxc/lxd/issues/1724 Signed-off-by: Karel Zak <kzak@redhat.com>
* reset: remove script from the packageSami Kerola2017-07-151-6/+0Star
| | | | | | | This script requires ncurses to work, and the ncurses provides reset so there should not be need to keep this script hanging around. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: use -lm for scriptreplay if necessaryKarel Zak2017-01-181-1/+1
| | | | | | Reported-by: Bert van Hall <bert.vanhall@avionic-design.de> Addresses: https://github.com/karelzak/util-linux/pull/397 Signed-off-by: Karel Zak <kzak@redhat.com>
* write: stop removing and adding /dev/ in front of tty stringSami Kerola2016-07-041-0/+1
| | | | | | | | | | | Add both path and tty name representations of tty's to control structure, that point to same string beginning from different depths. This way there is no need to removing and adding /dev/ in front of tty string all the time. Secondly this change makes it possible to use of get_terminal_name() from ttyutils.c. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* scriptreplay: avoid re-implementing strtod_or_err()Sami Kerola2016-05-051-0/+1
| | | | | | And use isnan() to detect NaN. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* reset: deprecate the script, and remove reset.033cSami Kerola2015-06-291-1/+0Star
| | | | | | | | | Most distributions probably ship reset from ncurses, which means util-linux reset(1) is unlikely to be in use anywhere. Assuming the previous being true it is almost unimaginable anyone one would be using the alternative script, so remove it and mark the script deprecated. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: use REALTIME_LIBS for scriptKarel Zak2015-06-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* script: use gettime_monotonic() to get timing file timestampsSami Kerola2015-06-081-2/+2
| | | | | | | | This moves the previous time to script control structure, and does timeval calculation with timersub() that is more appropriate than making a timeval to a double. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* script: replace strftime() workaround with CFLAGS = -Wno-format-y2kSami Kerola2015-06-081-0/+1
| | | | | | | | Nowadays, gcc(1) provides the -Wno-format-y2k option to prevent the warning, so that the above workaround is no longer required. Reference: http://man7.org/linux/man-pages/man3/strftime.3.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: check script options work as expectedSami Kerola2015-06-061-0/+5
| | | | | | | Options --flush and --timing remain unchecked, as I do not have an idea how to check them reliably. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: use -lutil for BSD onlyKarel Zak2014-09-171-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* agetty: fixing FTBFS on !linux (Debian util-linux 2.20.1-1.2)Christoph Egger2014-09-171-0/+1
| | | | | | | Handle vc flags missing on FreeBSD Fix tty creation on kFreeBSD taking patch from 2.19 Addresses-Debian-Bug: #650185
* build-sys: add BUILD_{SCRIPT,SCRIPTREPLAY}Karel Zak2014-05-211-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setterm: use string utils to numeric parsingSami Kerola2014-05-191-1/+1
| | | | | | | Check the input numbers are numbers, which makes also the code shorter, and user experience better as half invalid imputs will error. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: use tinfo *or* ncurses for more(1), ul(1) and setterm(1)Karel Zak2013-10-041-2/+9
| | | | | | | | | | | | * it seems that we don't have to link the utils with ncurses, tinfo is enough. This change saves one unnecessary dependence. * libtinfo is also distributed with pkg-config files, so we can use PKG_CHECK_MODULES() as a primary source for LIBS and CFLAGS. * add TINFO_CFLAGS (although it's probably always empty) Signed-off-by: Karel Zak <kzak@redhat.com>
* clean up term lib handlingMike Frysinger2013-09-301-5/+2Star
| | | | | | | | | | | | | | | | | The ncurses package has been providing pkg-config files for a while now. So let's start using them to get the proper linker & compiler flags. It can make a difference when ncurses is configured in a way that requires extra link time flags but util-linux doesn't provide them, or when the headers live in a weird place and util-linux can't find them. Since the NCURSES_LIBS is always defined for the Makefile, there's no need to gate on the HAVE_NCURSES conditional. When it's disabled, the var will simply be empty. With a minor tweak to how tinfo is handled, we can do the same thing -- we just always use TINFO_LIBS in the Makefile's. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* build-sys: add --disable-settermKarel Zak2013-04-261-4/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: always use default $(LDADD)Karel Zak2012-07-091-5/+5
| | | | | | | | The global variable $(LDADD) is always used if program_LDADD is not specified. Let's use $LDADD everywhere to avoid exceptions for people who need to specify global $LDADD. Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert lib/ to libcommon.laKarel Zak2012-06-261-8/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: convert term-utils/ to moduleKarel Zak2012-06-261-0/+99
Signed-off-by: Karel Zak <kzak@redhat.com>