Commit Graph

553 Commits

Author SHA1 Message Date
sin
9297082b96 add tput to TODO 2015-02-25 22:04:40 +00:00
Hiltjo Posthuma
9455f51dd8 mount: use libutil/concat instead of custom catfile
this trivializes the code some more
2015-02-22 11:34:37 +00:00
sin
a518580165 Sync concat() from sbase 2015-02-22 11:08:57 +00:00
Hiltjo Posthuma
43327506b6 mount: support "noauto" in /etc/fstab 2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
710081b07a mount: change mounted() check
- use getmntent_r instead of getmntent: because getmntent was nested it
  overwrote the previous internal mntent structure.
- check mounted() first, if not try to mount: this also makes sure filesystems
  were not mounted multiple times (like tmpfs) and errno is not overwritten in
  mounted(). For this reason also mount() errno EBUSY can't be used (tested).
2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
a248370eb6 mount: catfile: return 0 or -1 2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
314f2a77f0 last: spaces to tabs 2015-02-20 15:36:33 +00:00
Hiltjo Posthuma
faa6fe28e2 swapon, swapoff: show usage with -a device
... and small cleanup.
2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
7e394bd70f code-style: cleanup
- move main() at the bottom.
- put global variables at the top.
- improve usage() lines (consistent with man page).
2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
1c7b96de55 dmesg: fix usage and code-style 2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
4855f188c1 fsfreeze: fix usage line, either -f or -u 2015-02-06 15:16:24 +00:00
Hiltjo Posthuma
96c15e765b vtallow, who: usage using argv0 2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
c7f472f468 dd: code-style, linewrap 2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
f0cfd58e93 chvt: usage using argv0 2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
a46944add9 dd.1: fix 2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
363ac46766 Makefile: make man pages with ubase VERSION 2015-02-06 15:16:23 +00:00
Hiltjo Posthuma
544779a7b8 doc: convert man pages to mandoc, fix some typos in the process 2015-02-06 15:16:23 +00:00
Eon S. Jeon
6253da55c1 support llvm-ar
llvm-ar doesn't understand flags prefixed with dashes.
2015-02-03 11:56:06 +00:00
sin
8fe02392ed dd: Only sync once 2015-02-02 22:32:56 +00:00
sin
1c2006fd2c Add Risto to LICENSE 2015-01-26 19:26:22 +00:00
Risto Salminen
ab4f93cf47 Fix df hanging when statvfs() fails.
Now df prints out an appropriate error message when statvfs() fails
instead of just hanging. Also make df return 1 when statvfs() fails.
2015-01-26 19:26:22 +00:00
sin
f701698297 Don't do a blocking open in ttytostr() 2015-01-16 16:20:16 +00:00
sin
a7a561ef00 Handle cleanup properly in ttytostr() 2015-01-16 16:10:38 +00:00
sin
8a95422ff1 Check if the ttymaj/ttymin match is actually a tty 2015-01-16 16:10:37 +00:00
sin
a5c30abf8f Use TTY_NAME_MAX instead of PATH_MAX 2015-01-16 15:55:07 +00:00
sin
d76319f838 Properly match (ttymaj, ttymin) pairs to tty names in /dev
For the common case where we have pts/ or tty do it straight
away.  Otherwise traverse /dev for a match.  This fixes ps(1) when
it is executed over a serial terminal with tty names like ttyAMA0.
2015-01-16 15:55:07 +00:00
sin
2a0deb7600 Update LICENSE 2014-12-31 22:02:29 +00:00
sin
084d375a7d Update LICENSE file just like for sbase 2014-12-23 18:10:54 +00:00
sin
42db5e13d0 Rename to unlock/lock as opposed to enable/disable 2014-12-05 19:06:40 +00:00
sin
b0b8579eb3 Add vtallow.1 2014-12-05 15:41:13 +00:00
sin
4269d523e2 Add vtallow(1) to enable or disable VT switch 2014-12-05 15:16:07 +00:00
sin
74c0abb6a2 Use -D_XOPEN_SOURCE=700 2014-11-30 14:12:52 +00:00
sin
cee1a0170d watch: If period is negative default to 0.1s 2014-11-30 14:08:42 +00:00
sin
703e18185c Update watch(1) to handle more accurate intervals 2014-11-30 14:05:44 +00:00
sin
4cb108f557 No need for dmesg_show() to have an fd 2014-11-30 13:28:26 +00:00
sin
10d6bf2f4d Stop using *_FILENO 2014-11-30 13:12:33 +00:00
sin
2d45a04b92 Check if 0, 1, 2 are valid tty file descriptors 2014-11-30 13:05:24 +00:00
sin
6da76775cb Rework tty setup in getty(8) 2014-11-30 13:00:43 +00:00
sin
facc3a871f Turn enumeration into #defines 2014-11-30 12:34:26 +00:00
sin
7819662024 Break out libs into LDLIBS 2014-11-30 12:31:22 +00:00
sin
0c008b65ee Bring in the sbase Makefile updates to ubase 2014-11-30 12:18:54 +00:00
sin
ae7aafc127 Rename util/ to libutil/ 2014-11-29 21:46:47 +00:00
sin
d81c43ee3f Remove tools from README 2014-11-29 21:46:42 +00:00
sin
d2a7d5aeca Don't initialize unneeded variables in swaplabel(8) 2014-11-29 21:32:53 +00:00
Jan Tatje
aed9e3f6fa Add swaplabel(8) 2014-11-29 21:22:56 +00:00
sin
fd6f44d7bf No bool 2014-11-24 11:30:08 +00:00
sin
154381a0c7 Sync up util/*.c from sbase 2014-11-17 16:04:35 +00:00
sin
6e3c035db8 Properly signal failure if command fails in ubase-box
Similar fix as the one provided by emg for sbase.
2014-11-10 23:40:00 +00:00
sin
8ddf33f492 Update TODO style 2014-11-07 20:40:09 +00:00
sin
3dedd9bf8c Add last(1) manpage to TODO 2014-11-07 11:41:30 +00:00