Commit Graph

117 Commits

Author SHA1 Message Date
sin 986e4981df No need to name the parameters in the function decls 2013-08-29 11:14:00 +01:00
sin 6a56bdf4ca Add primitive pidof(8) 2013-08-29 11:11:26 +01:00
sin 481d4fefb0 Update TODO 2013-08-29 10:35:15 +01:00
sin bb10563c7a Make ubase compile with musl-gcc 2013-08-19 16:34:18 +01:00
sin 5c73758bba Add raw flag for dmesg 2013-08-17 17:22:30 +01:00
sin 41d82175fc Do not use a magic number for the size of the array 2013-08-17 17:20:00 +01:00
sin 42b640fa21 Rename validps() to pidfile() 2013-08-16 16:42:59 +01:00
sin e33f5bed23 Add parsestatus() 2013-08-16 16:36:52 +01:00
sin f462025156 ps(1) cleanup + comments 2013-08-16 15:59:20 +01:00
sin 3516186e4c No need to keep a tm pointer around 2013-08-16 15:53:07 +01:00
sin 9e8a7ac616 Check return value of sysinfo() 2013-08-16 15:51:37 +01:00
sin f088b12877 Divide by sysconf(_SC_CLK_TCK) instead of a fixed 100 2013-08-16 15:49:51 +01:00
sin f2285a1a35 Add -c flag for dmesg 2013-08-16 14:59:53 +01:00
sin 7f301a0825 Only parse extra things when -f is supplied 2013-08-16 14:50:01 +01:00
sin 9480f70121 Add comment for proc{euid,uid}() 2013-08-16 14:47:03 +01:00
sin e84531958e Support -f for ps(1)
Fix missing break in tty.c as well.
2013-08-16 14:41:42 +01:00
sin 74146c54a7 Add uptime(1) 2013-08-16 11:55:55 +01:00
sin 30e0acef7a Update TODO 2013-08-16 11:36:26 +01:00
sin f885062b22 Add truncate(1) 2013-08-16 11:34:52 +01:00
sin 9bbef8d06f Update TODO 2013-08-16 11:27:58 +01:00
sin 0f9fd144b7 Add fallocate(1) 2013-08-16 11:27:56 +01:00
sin 19992672a5 Opening brackets always on the next line for func defs 2013-08-16 11:15:37 +01:00
sin afe56e4cc7 Add clear(1) 2013-08-16 11:15:36 +01:00
sin c2db2d065b Add mountpoint(1) 2013-08-16 11:03:44 +01:00
sin 6fa02c77b3 Add TODO 2013-08-16 11:03:26 +01:00
sin 367d26ad07 Be consistent and staticise the function definition as well 2013-08-16 10:12:40 +01:00
sin b4a190c818 Print the available targets for ubase-box 2013-08-15 17:04:43 +01:00
sin c5182bee36 Add free(1) 2013-08-15 16:50:51 +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
sin 5df65ecfd4 Add barebones ps(1) 2013-08-15 16:50:48 +01:00
sin a4de4eb539 Add pivot_root(8) 2013-08-14 14:40:49 +01:00
sin 76614ae86b Support -C for dmesg(1) 2013-08-14 14:40:49 +01:00
sin f6cf690aa2 Fix usage lines 2013-08-14 14:40:49 +01:00
sin 97cbad7eef Remove OpenBSD support
This is becoming a nightmare.  Just support Linux.
2013-08-14 14:40:47 +01:00
sin 92c3390657 Add mount(8) 2013-08-14 13:51:50 +01:00
sin 7f7189f54f Fix vertical spacing in dmesg.c 2013-08-12 11:29:21 +01:00
sin b8d1f83437 Optimize dmesg(1) output on Linux 2013-08-12 11:26:34 +01:00
sin 6e4a0da527 Add oblique to LICENSE file 2013-08-12 11:22:42 +01:00
sin e96ee7f6d0 Fix mkswap.c usage line 2013-08-12 11:21:15 +01:00
sin f9dfa37f75 Add unshare(1)
No manpage yet.
2013-08-12 11:20:17 +01:00
sin a770b91e62 Revert "Remove comment in eprintf.c"
This is actually useful when debugging ubase.
2013-08-12 11:03:53 +01:00
sin 10356a07c1 Ensure dmesg output on Linux has a terminating newline 2013-08-12 10:24:28 +01:00
sin eaa5285d68 Rename syslog_{size,read,show} to dmesg_{size,read,show} 2013-08-12 10:18:14 +01:00
sin f4ad2b276c Add missing include in syslog.c for OpenBSD 2013-08-12 12:15:09 +03:00
sin afc831a836 Implement -L flag for stat(1) 2013-08-12 10:13:11 +01:00
sin a7dc139c35 Make stat(1) work with stdin as well.
Implement show_stat().
2013-08-12 10:08:44 +01:00
oblique 211f13ae95 Add stat(1)
No manpage yet.
2013-08-12 09:39:21 +01:00
sin 7d653dbd07 Fix vertical spacing in umount.c 2013-08-10 11:38:30 +01:00
sin 6253a46693 Fix dmesg printing on Linux 2013-08-09 20:07:32 +01:00
sin 63678c3235 Remove comment in eprintf.c
We do not prefix with the program name.
2013-08-09 15:54:44 +01:00