Commit Graph

888 Commits

Author SHA1 Message Date
David Galos
cd1526715f Opimizing tar, adding U flag 2013-07-18 15:14:53 -04:00
David Galos
c5f10c4b06 Fixing idiotic mistake in tar 2013-07-18 11:52:01 -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
David Galos
48e6870bb7 Making mkdir -p handle empty paths. Thanks, Willem van de Krol! 2013-07-11 21:43:38 -04:00
David Galos
7adf4f380a Fixing zero-bye append in readlink. Thanks, Willem van de Krol 2013-07-09 19:40:28 -04:00
David Galos
18712b2032 Converting empty for to while in sha1sum 2013-07-05 17:42:30 -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
3c5f2b2407 Simplyfing mknod. Good eye, Truls Becken. 2013-07-03 11:48:06 -04:00
David Galos
1fbe4e95ed Adding mknod(1) 2013-07-03 02:02:36 -04:00
stateless
c1c367c1bd Explicitly cast len to unsigned long for %lu 2013-07-02 14:09:36 -04:00
David Galos
60731fb6e8 actually add the .c and .1 files 2013-07-02 13:26:24 -04:00
David Galos
eadefcf0f8 Adding sponge(1). Thanks, Jakob Kramer. 2013-07-02 13:24:35 -04:00
David Galos
4c403d80c7 Removing the executable bit from 'chvt.c' 2013-07-02 12:07:12 -04:00
David Galos
563742500e Fixing seq 2013-07-01 13:25:41 -04:00
Christoph Lohmann
c94fad2ccc Who is in sbase. 2013-06-21 07:11:44 +02:00
Christoph Lohmann
82e266e880 Cal is now in sbase. 2013-06-21 07:10:54 +02:00
Christoph Lohmann
45f67c556b Another correction for the cal(1) usage. 2013-06-19 23:24:34 +02:00
Jesse Ogle
6442071c29 Updated cal usage()
Now usage matches cal.1

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-19 23:23:59 +02:00
Jesse Ogle
8fc4858a3c Bugfix for cal when columns specified as 0
cal -c 0 caused an infinite loop. now the number of columns is set to
the number of months when 0 (i.e. the calendars never wrap).

Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-19 23:23:43 +02:00
Christoph Lohmann
b10b1da57d Make date(1) compatible to GNU date(1).
We have variable first day of weeks now! My week starts on Wednesday!
2013-06-19 22:10:26 +02: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
Christoph Lohmann
7f88cf7021 Optimizing comm(1) with the second sent in patch. 2013-06-19 21:09:50 +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
7216a53a7e Remove unnecessary exit(1) in usage()
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-19 19:58:19 +02:00
stateless
f66b47bc6f Add readlink
Signed-off-by: Christoph Lohmann <20h@r-36.net>
2013-06-16 07:46:01 +02:00
Christoph Lohmann
4d38f60685 Eliminating the getopt disgrace. 2013-06-14 20:20:47 +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
c3b771d682 Seq has been implemented. 2013-06-14 18:56:22 +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
b0898c605d Adding the new C files too. 2013-06-09 15:20:55 +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
Christoph Lohmann
f648c7fa71 Fixing whitespaces. 2013-05-04 07:49:51 +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
Federico G. Benavento
e509d56bae s/getopt/ARGBEGIN/ and -r bug fix cp 2013-03-10 21:59:22 -03:00
Federico G. Benavento
5c7b7e3fa8 s/getopt/ARGBEGIN/ wc 2013-03-10 21:12:10 -03:00
Federico G. Benavento
ae3423e366 pathconf(".", _PC_PATH_MAX) doesn't work from nfs mounted filesystems on BSD systems, use "/" instead. 2013-03-10 17:48:17 -03:00
Christoph Lohmann
f8dc6883a3 Style inquistion for util and some tools. 2013-03-05 21:46:48 +01:00
Christoph Lohmann
52d39e35c2 The style inquisition on basename. 2013-03-05 21:35:55 +01:00
Connor Lane Smith
284e9f723d seq: remove unused fflag 2012-06-09 18:53:39 +01:00
Connor Lane Smith
ec6924a56e seq: set ff=unix (?!) 2012-06-09 18:53:05 +01:00
Connor Lane Smith
c68bba6867 grep: fix ARGC() 2012-06-09 18:49:02 +01:00
Connor Lane Smith
c2c5ea9c60 grep: ARGBEGIN 2012-05-31 19:38:25 +01:00
Connor Lane Smith
171ef71c74 cat: ARGBEGIN 2012-05-31 19:38:18 +01:00
Connor Lane Smith
79e2f3ec19 rm: update manpage 2012-05-25 21:56:00 +01:00
Connor Lane Smith
196e81c5fb rm: removing empty dirs is okay 2012-05-25 21:55:31 +01:00
Connor Lane Smith
20d526391d chmod, chown: remove redundant flag 2012-05-25 21:52:01 +01:00