FRIGN
fd562481f3
Convert estrto{l, ul} to estrtonum
...
Enough with this insanity!
2015-01-30 16:52:44 +01:00
sin
e5c1f0f372
Add estrtonum() as well
2015-01-30 13:56:45 +00:00
sin
28d9b18e4c
Remember to undef strtonum in case it is provided also as a macro
2015-01-30 13:52:24 +00:00
sin
add25a464f
Add strtonum() in preparation to nuking estrtol() and friends
2015-01-30 13:48:33 +00:00
sin
b90ca482a0
Add estrtoul()
2015-01-30 13:24:41 +00:00
FRIGN
b8b9d983c8
Add unescape() to libutil
...
formerly known as resolveescapes(), it is of central use to numerous
programs.
This drops a lot of LOC.
2015-01-29 21:52:44 +01:00
sin
bc9c752df5
Import strsep() from musl libc
2015-01-25 17:48:11 +00:00
sin
ce86a05f36
Import strcasestr() from musl and remove -D_GNU_SOURCE
2014-11-20 23:46:06 +00:00
sin
cb7cbde722
Add compat.h
2014-11-17 15:46:28 +00:00
sin
bd3cf55b54
Define HOST_NAME_MAX if necessary
...
Some systems do not provide this, namely FreeBSD and NetBSD.
2014-11-17 14:50:40 +00:00
Hiltjo Posthuma
ce90cc57d4
util: add eregcomp: show descriptive error message on regcomp error
2014-11-16 14:36:41 +00:00
sin
045fc62028
Group related decls together in util.h
2014-11-14 18:13:26 +00:00
sin
2982d88533
Import ealloc.c from ubase
2014-11-14 18:10:05 +00:00
sin
49c91462b3
Undef MIN/MAX in case they are defined somewhere else
2014-11-13 16:01:34 +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
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