Commit Graph

165 Commits

Author SHA1 Message Date
sin
4a97e0b526 List libutil.a first to be a bit more clear 2014-11-17 10:50:45 +00:00
sin
1b0d2c1ab3 Make clean more verbose 2014-11-17 10:39:02 +00:00
sin
e1c044e298 Do not append CPPFLAGS to CFLAGS 2014-11-17 10:38:37 +00:00
sin
2fd6e769dd Rename util.a to libutil.a 2014-11-17 10:37:07 +00:00
sin
9a9d6bb0dc Make build process more verbose 2014-11-17 10:36:39 +00:00
Hiltjo Posthuma
ce90cc57d4 util: add eregcomp: show descriptive error message on regcomp error 2014-11-16 14:36:41 +00:00
sin
67fcc79046 Use queue.h in grep(1) 2014-11-16 12:39:15 +00:00
sin
2982d88533 Import ealloc.c from ubase 2014-11-14 18:10:05 +00:00
sin
3de142ba70 Delete dist when cleaning 2014-11-14 14:41:05 +00:00
sin
300eedc50a Add README and TODO to dist target 2014-11-14 11:58:42 +00:00
sin
ee55fbe9e9 Just make $(HDR) a prereq for $(OBJ)
The result is always correct but it might do redundant builds.
Not really an issue as sbase builds very fast.  The alternative is
to track the header deps manually but this is already incomplete and
unlikely to be kept up to date.
2014-11-13 18:28:18 +00:00
sin
2c7516c716 Sort HDR in Makefile 2014-11-13 18:21:19 +00:00
Evan Gates
5cf965ffbf return exit status of command in sbase-box 2014-11-08 13:50:55 +00:00
Hiltjo Posthuma
b6b8fe9591 separate humansize into a util function
also show 1 decimal of human size string like: 4M -> 4.4M
2014-10-18 23:56:51 +01:00
Brandon Mulcahy
7a73da6864 Add logname(1) 2014-10-17 15:36:27 +01:00
Markus Teich
314885836c Add link(1) 2014-10-17 15:36:16 +01:00
sin
c0b9a8533f Import csplit(1) from OpenBSD
Modified slightly to conform to the sbase style.
2014-10-16 12:22:36 +01:00
sin
d1a1c42eb3 Update only the modified objects in util.a 2014-10-16 11:33:05 +01:00
sin
a6793ced1b Another EXIT_SUCCESS nuked 2014-10-02 23:49:19 +01:00
sin
a48b850d3f Import col(1) from OpenBSD with minor modifications
Remove getopt, use arg.h.
2014-09-29 19:52:31 +01:00
sin
618aecd2ec Import expr(1) from OpenBSD
Cleanup + manpage to be done.
2014-09-29 13:44:49 +01:00
sin
fe41494ed3 Import printf(1) from OpenBSD 2014-09-28 15:12:15 +01:00
Tuukka Kataja
8b87d0098a Add unexpand(1) 2014-06-09 17:00:13 +01:00
Hiltjo Posthuma
2ab2d2ee3b remove afgets
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-06-01 18:03:20 +01:00
Hiltjo Posthuma
d12e953f18 add agetline, separate estrtod to util
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-06-01 18:01:45 +01:00
Hiltjo Posthuma
560340341f make parsemode() generic
use for uudecode and chmod

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-09 15:40:32 +01:00
sin
bc0de5e7e5 Rename mc(1) to cols(1)
There is an obvious name collision with the popular file manager
midnight commander.
2014-03-12 14:47:38 +00:00
sin
17338bfbb8 id(1) is not portable - move it to ubase 2014-02-27 14:30:21 +00:00
sin
386aa62b94 Remove who(1) from sbase
It now lives in ubase.
2014-02-14 15:08:52 +00:00
dsp
7008d751b2 Initial commit of the uudecode tool and man page
Currently it operates only on regular files and does not
support Base64.
2014-02-02 20:50:31 +00:00
sin
aab53ef197 Add uuencode(1) 2014-01-31 15:29:11 +00:00
sin
f4609e2836 Remove stat(1) from sbase as it is not portable
This utility uses major()/minor() and they are not portable.
It belongs in ubase.
2014-01-30 16:26:40 +00:00
sin
fb12183c52 Add strlcpy()/strlcat()
Refactor recurse() routine in preparation to moving tar(1) over
to use it instead of the ftw() interface.
2014-01-30 14:55:05 +00:00
sin
43057f3a39 Remove mknod(1) from sbase
mknod(1) is not POSIX and it is not portable so it should be
in ubase instead of sbase.
2014-01-28 16:53:53 +00:00
Silvan Jegen
38f429a3d2 Add the tr program including man page 2014-01-20 11:22:28 +00:00
sin
4bdf9a9658 Add initial version of xargs(1) 2014-01-04 00:04:05 +00:00
sin
34f7a688cb Add barebones mktemp(1) 2013-11-13 11:06:55 +00:00
sin
09fcbfc338 Add primitive du(1)
Defaults to a 512-byte blocksize.
2013-10-16 18:18:02 +01:00
sin
cabbf6141e Allow sbase-box to be called as sbase-box tool args... 2013-10-08 23:32:29 +01:00
Truls Becken
576a5ce55e Add cut(1) 2013-10-08 20:41:32 +01:00
sin
bf17657544 Remove chvt(1) from sbase as it is not portable
chvt(1) has been moved to ubase.
2013-10-07 16:43:48 +01:00
sin
ddec3259aa Add setsid(1) by arg 2013-10-05 14:58:55 +01:00
sin
7be94fd3c8 Add hostname(1) 2013-10-05 14:58:55 +01:00
sin
d0c87f6d3e Add stat(1) 2013-10-05 14:58:55 +01:00
sin
0ed2a55003 Add strings(1) 2013-10-05 14:58:55 +01:00
sin
cd592c9f23 Add initial support for id(1) 2013-10-05 14:58:55 +01:00
sin
36afa1e169 Replace VERSION in manpages with the actual version 2013-10-05 13:51:45 +01:00
sin
87cde4bcb2 Print the available targets for sbase-box 2013-10-05 13:51:45 +01:00
sin
9e5718282a Add sha512sum(1) 2013-08-04 11:00:34 -04:00
sin
4da54928e7 Add sha256sum(1) 2013-07-20 13:20:16 -04:00
David Galos
0fcb939408 Compatibility with OpenBSD. Thanks, Steve Dee! 2013-07-18 15:28:08 -04:00
David Galos
2c75eb98d9 Adding tar. 2013-07-18 11:15:35 -04:00
sin
9ac01f59be Add crypt.[ch] and update md5sum and sha1sum
Factor out the code from md5sum and sha1sum into a util function.

Use FILE * instead of a file descriptor.  This will make it a bit
easier/more consistent when we implement support for the -c option.
2013-07-18 09:51:17 -04:00
stateless
eec1b415d5 Add sha1sum
No support for -c at the moment.
2013-07-05 17:31:43 -04:00
stateless
50054a652c Add md5sum
No support for -c at the moment.
2013-07-05 17:29:43 -04:00
David Galos
1fbe4e95ed Adding mknod(1) 2013-07-03 02:02:36 -04:00
David Galos
eadefcf0f8 Adding sponge(1). Thanks, Jakob Kramer. 2013-07-02 13:24:35 -04:00
Jesse Ogle
0f523ec9c6 Added cal and updated Makefile
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-19 21:13:28 +02:00
stateless
e28c17c7cc Add expand(1)
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-19 20:01:10 +02:00
stateless
12116cccc4 Add comm
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-19 20:00:10 +02:00
stateless
f66b47bc6f Add readlink
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-16 07:46:01 +02:00
Lorenzo Cogotti
75c97de593 Various fixes, add renice command.
This commit adds the renice command and its man page,
it also introduces some fixes:
* Makes nice command more solid, it also makes it respect POSIX return values.
* Fixes estrtol, which produced a misleading error on out of range errors.
* Fixes chgrp.1 NAME section.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-14 19:01:04 +02:00
Christoph Lohmann
9df408f8c6 Adding who, chroot, env and split.
Thanks "Galos, David" <galosd83@students.rowan.edu>!
2013-06-14 18:55:25 +02:00
Christoph Lohmann
2c162042b1 Adding some utilities.
Thanks "Galos, David" <galosd83@students.rowan.edu>!
2013-05-30 21:29:56 +02:00
Christoph Lohmann
c9aac796c8 Fixing the ARG macros and adding nice.
Thanks "Galos, David" <galosd83@students.rowan.edu>!
2013-05-29 20:52:39 +02:00
Lorenzo Cogotti
c451683c3f Added POSIX paste(1) command implementation.
This commit adds a simple implementation of the POSIX
standard paste(1) command, and its man page.
TODO and Makefile have been updated accordingly.

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-05-04 07:48:21 +02:00
Robert Ransom
85efaad43b uniq: Initial commit 2012-05-21 23:24:28 +00:00
Robert Ransom
19e8c45158 mc: Initial commit 2012-05-21 22:05:09 +00:00
Robert Ransom
a6308d52be Makefile: Correct list of .o files depending on text.h 2012-05-21 21:12:11 +00:00
Robert Ransom
07b702d9a1 sort: Librarify getlines() 2012-05-21 21:09:38 +00:00
Robert Ransom
c77ea0210b Make Makefile possibly POSIX-conformant
FreeBSD make still refuses to handle the ".o:" 'single-suffix inference rule'.
2012-05-16 12:14:02 +00:00
Connor Lane Smith
146cca114e new ARGBEGIN & usage() function 2012-05-14 21:28:41 +01:00
Christoph Lohmann
120d817920 Adding the yes(1) command. 2012-04-23 16:27:40 +02:00
Christoph Lohmann
f75d7a47ff Adding ARGBEGIN for basename. 2012-04-23 15:50:47 +02:00
Christoph Lohmann
dbe8e73237 I'm sorry for my unprofessional behaviour. 2012-04-16 21:48:50 +02:00
Christoph Lohmann
29ce2560a7 Fixes and checks for seq. Thanks David Galos! 2012-04-16 21:46:59 +02:00
Christoph Lohmann
e8d6e30106 Adding seq command. 2012-04-10 17:33:19 +02:00
William Haddon
cec53d14b1 implement cp and mv and improve rm 2012-01-30 22:41:33 +00:00
Connor Lane Smith
cb291cc394 add test.c (thanks Random832) 2011-11-08 19:35:38 +01:00
Connor Lane Smith
33de3bffdb apathmax 2011-06-25 17:26:44 +01:00
Connor Lane Smith
914ad7b733 ranlib util.a (thanks pancake) 2011-06-20 18:37:39 +01:00
Connor Lane Smith
f24772dcbb add nohup 2011-06-18 06:41:28 +01:00
Connor Lane Smith
e54eb9f4bc simpler make 2011-06-16 21:20:17 +01:00
Connor Lane Smith
a85348c33b cleanup make 2011-06-16 01:57:01 +01:00
Connor Lane Smith
6d62efb57a make sbase-box 2011-06-16 01:53:33 +01:00
Connor Lane Smith
954106050f rename estrtol 2011-06-10 14:55:01 +01:00
Connor Lane Smith
7c251bcd4f refactor strnum 2011-06-10 05:41:40 +01:00
Connor Lane Smith
6be3e82218 add cksum 2011-06-10 04:14:05 +01:00
Connor Lane Smith
5156758e21 kill -l 2011-06-10 02:56:13 +01:00
Connor Lane Smith
e180a91172 add kill, thanks rob 2011-06-10 02:29:10 +01:00
Connor Lane Smith
188d8ff93a add cmp, thanks stateless 2011-06-10 01:55:12 +01:00
Connor Lane Smith
ff97891dad add fold 2011-06-08 21:30:33 +01:00
Connor Lane Smith
515f8cd35f install: all 2011-06-08 16:26:05 +01:00
Connor Lane Smith
1e4a4e460d make (un)install 2011-06-08 11:37:00 +01:00
Connor Lane Smith
59e09c9963 reformat makefile 2011-06-03 05:38:40 +01:00
Connor Lane Smith
894b42a885 add tty 2011-06-02 21:15:35 +01:00
Connor Lane Smith
92baf1a5c9 add uname, thanks hiltjo 2011-06-02 20:32:05 +01:00
Connor Lane Smith
9f9ea07e6c add sort 2011-06-02 13:03:34 +01:00
Connor Lane Smith
726973dcd5 glibc hates stripping 2011-06-01 21:31:22 +01:00
Connor Lane Smith
430b453c4d add nl 2011-05-29 21:30:44 +01:00