Commit Graph

13 Commits

Author SHA1 Message Date
FRIGN
b6669b5f19 Refactor chvt(1)
1) Properly implement arg.h.
2) Use estrtonum instead of estrtol.
3) Check close().
4) Small fixes.
5) Update manpage.
2015-09-07 11:47:10 +01:00
Hiltjo Posthuma
f0cfd58e93 chvt: usage using argv0 2015-02-06 15:16:23 +00:00
sin
6f7f387352 Stop using EXIT_{SUCCESS,FAILURE} 2014-10-02 23:47:39 +01:00
sin
29bc0ce130 No need to skip stdin in chvt(1) 2014-06-30 19:18:49 +01:00
sin
86060b535c Fix includes across all tools 2014-06-30 19:04:47 +01:00
sin
55dbbb7b3f Use estrtol() instead of atoi()
Some more stylistic fixes.
2014-06-30 16:57:22 +01:00
sin
1392fce27a Don't prefix error messages with the program name
Do not escape error codes/error messages for no reason.
2014-04-11 23:47:28 +01:00
Hiltjo Posthuma
c5f17bd3dc remove some signed / unsigned type warnings
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-02-14 14:11:37 +00:00
sin
c0ae036bd2 Be consistent and use *argv[] 2013-10-07 20:41:30 +01:00
s-p-k
e340e1373e exit with EXIT_SUCCESS/EXIT_FAILURE 2013-10-07 19:15:00 +01:00
sin
ee5eccba1c Staticise table 2013-08-31 17:42:14 +01:00
sin
bb10563c7a Make ubase compile with musl-gcc 2013-08-19 16:34:18 +01:00
David Galos
641c7e79f3 Add chvt(1)
This is essentially cherry-picked from sbase with slight
modifications as we can now assume that it will be running on
Linux.
2013-08-15 16:50:51 +01:00