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
Hiltjo Posthuma
696cbdbb68
util.h, mode_t: sys/types.h defines mode_t
...
see: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
this removes the warning with gcc (but musl didn't have this warning).
2014-06-16 23:04:43 +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
bd99b92e91
parsemode: rework
...
- for octal input: reset mode to 0.
- take umask into account.
- make '=rwx' etc work.
- we wont support crazy but valid modes like "a+rw,g=x,o=g"
- uudecode: use parsemode, mask is 0.
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
2014-04-24 11:51:33 +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
4ba6c37839
Ensure we #undef strlcat and strlcpy
...
These may be implemented as macros so #undef them and use our own
implementation.
2014-01-30 21:04:01 +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
b8edf3b4ee
Add weprintf() and replace fprintf(stderr, ...) calls
...
There is still some programs left to be updated for this.
Many of these programs would stop on the first file that they
could not open.
2013-11-13 11:41:43 +00:00
Christoph Lohmann
7f88cf7021
Optimizing comm(1) with the second sent in patch.
2013-06-19 21:09:50 +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
Connor Lane Smith
fcb8821246
revert to per-cmd usage()
2012-05-15 13:32:56 +01:00
Connor Lane Smith
146cca114e
new ARGBEGIN & usage() function
2012-05-14 21:28:41 +01:00
Connor Lane Smith
6e0f5c1409
seq: some cleanup
2012-05-10 19:20:16 +01:00
William Haddon
cec53d14b1
implement cp and mv and improve rm
2012-01-30 22:41:33 +00:00
Connor Lane Smith
9658c7cfa7
apathmax fix
2011-06-25 17:33:38 +01:00
Connor Lane Smith
33de3bffdb
apathmax
2011-06-25 17:26:44 +01:00
Connor Lane Smith
f24772dcbb
add nohup
2011-06-18 06:41:28 +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
5156758e21
kill -l
2011-06-10 02:56:13 +01:00
Connor Lane Smith
ff97891dad
add fold
2011-06-08 21:30:33 +01:00
Connor Lane Smith
6ef3d9174b
add ls; simpler pwd
2011-05-26 04:01:20 +01:00
Connor Lane Smith
da757ff7d1
add chown
2011-05-25 00:24:33 +01:00
Connor Lane Smith
fbb80983ce
add ln, util.a
2011-05-24 13:00:30 +01:00
Connor Lane Smith
8e26716a5a
initial commit
2011-05-23 02:36:34 +01:00