Mirror of Suckless' ubase (git://git.suckless.org/ubase)
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Michael Forney 3c88778c6c umount: Fix use of uninitialized variable 4 years ago
libutil Refactor chvt(1) 8 years ago
LICENSE LICENSE: update year and bump to top 7 years ago
Makefile Add blkdiscard(8) 5 years ago
README README: explain make ubase-box-install 8 years ago
TODO Add pwdx(1) 7 years ago
arg.h arg.h: fixed argv checks order 7 years ago
blkdiscard.8 Add blkdiscard(8) 5 years ago
blkdiscard.c Add blkdiscard(8) 5 years ago
chvt.1 Refactor chvt(1) 8 years ago
chvt.c Refactor chvt(1) 8 years ago
clear.1 Refactor clear(1) 8 years ago
clear.c Remove stdlib.h from clear(1) 8 years ago
config.def.h Add last and lastb 9 years ago
config.mk Use CC for ubase-box, remove LD 8 years ago
ctrlaltdel.8 Minor newline fix in ctrlaltdel.8 8 years ago
ctrlaltdel.c Refactor ctrlaltdel(8) 8 years ago
dd.1 dd: implement conv=notrunc support 7 years ago
dd.c dd: Use sigaction(2) to obviate select(2) 6 years ago
df.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
df.c df: Don't scream if statvfs() fails 7 years ago
dmesg.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
dmesg.c dmesg: fix usage and code-style 8 years ago
eject.1 Refactor eject(1) 8 years ago
eject.c Refactor eject(1) 8 years ago
fallocate.1 Fix fallocate(1) manpage 8 years ago
fallocate.c Refactor fallocate(1) 8 years ago
free.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
free.c code-style: cleanup 8 years ago
freeramdisk.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
freeramdisk.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
fsfreeze.8 fsfreeze: make it clear the either -f or -u must be specified, not optional 7 years ago
fsfreeze.c fsfreeze: make it clear the either -f or -u must be specified, not optional 7 years ago
getty.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
getty.c code-style: cleanup 8 years ago
halt.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
halt.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
hwclock.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
hwclock.c code-style: cleanup 8 years ago
id.1 id: Implement -n 8 years ago
id.c id: Implement -n 8 years ago
insmod.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
insmod.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
killall5.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
killall5.c Fix segfault in killall5 without -o 5 years ago
last.c last: spaces to tabs 8 years ago
lastlog.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
lastlog.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
login.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
login.c code-style: cleanup 8 years ago
lsmod.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
lsmod.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
lsusb.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
lsusb.c lsusb, ps: style: put main at bottom 8 years ago
mesg.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
mesg.c Stop using *_FILENO 9 years ago
mknod.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
mknod.c code-style: cleanup 8 years ago
mkswap.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
mkswap.c Turn enumeration into #defines 9 years ago
mount.8 mount: helper support + improvements 8 years ago
mount.c mount: don't call realpath on root target 5 years ago
mountpoint.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
mountpoint.c mountpoint: -q should not print errors 8 years ago
nologin.8 Add nologin(8) 7 years ago
nologin.c nologin: Sort includes 7 years ago
pagesize.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
pagesize.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
passwd.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
passwd.c passwd: fix crashes for unencrypted passwords starting with 'x'. 4 years ago
passwd.h passwd: fix /etc/passwd support, ... 9 years ago
pidof.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
pidof.c Use SLIST instead of TAILQ for pidof(8) 8 years ago
pivot_root.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
pivot_root.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
proc.h Rename validps() to pidfile() 10 years ago
ps.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
ps.c ps: fix argv0 position in usage line 5 years ago
pwdx.1 Add pwdx(1) 7 years ago
pwdx.c pwdx: fix off-by-one bug 7 years ago
queue.h Import sys/queue.h and move over existing tools 9 years ago
readahead.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
readahead.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
reboot.h Make ubase compile with musl-gcc 10 years ago
respawn.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
respawn.c respawn: reopen the fifo at end of line, and use read-only 7 years ago
rmmod.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
rmmod.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
rtc.h Use rtc_time 9 years ago
stat.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
stat.c code-style: cleanup 8 years ago
su.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
su.c code-style: cleanup 8 years ago
swaplabel.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
swaplabel.c Don't initialize unneeded variables in swaplabel(8) 9 years ago
swapoff.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
swapoff.c swapon, swapoff: show usage with -a device 8 years ago
swapon.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
swapon.c swapon, swapoff: show usage with -a device 8 years ago
switch_root.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
switch_root.c switch_root: execv: show error string 8 years ago
sysctl.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
sysctl.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
text.h passwd: improvements 9 years ago
truncate.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
truncate.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
umount.8 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
umount.c umount: Fix use of uninitialized variable 4 years ago
unshare.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
unshare.c Stop using EXIT_{SUCCESS,FAILURE} 9 years ago
uptime.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
uptime.c uptime: Fix user/s printing (grammar error) when users == 0. 4 years ago
util.h Refactor fallocate(1) 8 years ago
vtallow.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
vtallow.c vtallow, who: usage using argv0 8 years ago
watch.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
watch.c watch: If period is negative default to 0.1s 9 years ago
who.1 doc: convert man pages to mandoc, fix some typos in the process 8 years ago
who.c vtallow, who: usage using argv0 8 years ago

README

ubase - suckless linux base utils
=================================

ubase is  a collection of  tools similar  in spirit to  util-linux but
much simpler.

The complement  of ubase  is sbase[1] which  mostly follows  POSIX and
provides all the portable tools.  Together they are intended to form a
base system similar to busybox but much smaller and suckless.

Building
--------

To  build ubase,  simply  type  make.  You  may  have  to fiddle  with
config.mk and config.h depending on your system.

You  can  also  build  ubase-box,  which  generates  a  single  binary
containing  all  the  required  tools.    You  can  then  symlink  the
individual tools to ubase-box or run: make ubase-box-install.

To run the tools for ubase-box directly use: ubase-box cmd [args]

Ideally you will  want to statically link ubase.   We highly recommend
using musl-libc[2].

ubase is known to compile with gcc, clang and tcc.

[1] http://git.suckless.org/sbase/
[2] http://www.musl-libc.org/