Commit Graph

947 Commits

Author SHA1 Message Date
Jakob Kramer
4769b47dd7 Use size_t for number of lines in linebuf
.nlines and .capacity are used as array indices and
should therefore be of type size_t.
2015-01-31 22:49:43 +00:00
sin
0934e7f6ed Add .Os sbase and sed replace to .Os sbase $(VERSION) in make install 2015-01-31 19:37:03 +00:00
Jakob Kramer
572ad27110 sort: support sorting decimal numbers correctly
sorry not to have used strtold from the beginning
2015-01-31 19:19:55 +00:00
Hiltjo Posthuma
0e01a2db9b ln: usage, just use %s 2015-01-31 15:23:59 +01:00
Hiltjo Posthuma
6579919fec grep: getline returns signed (ssize_t) 2015-01-31 15:19:42 +01:00
Hiltjo Posthuma
f769c2402f fix mandoc warnings
- sort references in SEE ALSO section to section number, name.
- cols.1: proper order of sections.
- wrap lines to max 79 column length.
2015-01-31 14:43:27 +01:00
Hiltjo Posthuma
4a920a5960 remove sbase-VERSION from man page, fix sponge.1 date 2015-01-31 14:20:02 +01:00
Hiltjo Posthuma
3253f2eec3 split.1: convert to mandoc
... and fix usage line, when -l or -b is specified the argument is required,
not optional.
2015-01-31 14:07:13 +01:00
Hiltjo Posthuma
67e374bcba tar.1: convert to mandoc
- simplify usage line.
- add new flags (-m, -j and -z).
- fix typos.
2015-01-31 14:05:23 +01:00
Hiltjo Posthuma
6c2f9615ac uuencode.1, uudecode.1: convert to mandoc 2015-01-31 00:25:28 +01:00
Hiltjo Posthuma
89881a4e4c unexpand.1: convert to mandoc 2015-01-31 00:20:29 +01:00
Hiltjo Posthuma
658b5989d3 sponge.1: convert to mandoc 2015-01-31 00:16:25 +01:00
Hiltjo Posthuma
4e7cbbee28 sort.1: convert to mandoc 2015-01-30 23:49:13 +01:00
Hiltjo Posthuma
f2eb5d3b2d readlink.1: convert to mandoc 2015-01-30 23:34:36 +01:00
Hiltjo Posthuma
08904c0308 mktemp.1: convert to mandoc 2015-01-30 23:29:09 +01:00
Hiltjo Posthuma
0ac41ca998 printenv.1: convert to mandoc 2015-01-30 23:25:12 +01:00
Hiltjo Posthuma
073a5726c7 setsid.1: convert to mandoc 2015-01-30 23:10:09 +01:00
Hiltjo Posthuma
1e4fd252be *sum.1: convert to mandoc
... and fix order of sections, add OPTIONS section with a list describing the
flags.
2015-01-30 23:08:25 +01:00
Hiltjo Posthuma
a576a74635 test.1: convert to mandoc and some fixes
- sort flags.
- fix 2 typos.
2015-01-30 22:52:01 +01:00
Hiltjo Posthuma
b3c5b206e7 seq.1: convert to mandoc 2015-01-30 22:39:41 +01:00
Hiltjo Posthuma
1c93b03a85 hostname.1: convert to mandoc 2015-01-30 22:15:57 +01:00
Hiltjo Posthuma
1466021305 du.1: convert to mandoc 2015-01-30 22:13:37 +01:00
Hiltjo Posthuma
987152a7d7 cp.1: convert to mandoc, add mv(1) to SEE ALSO 2015-01-30 22:07:17 +01:00
Hiltjo Posthuma
481ed596ff sync.1: convert to mandoc 2015-01-30 21:56:25 +01:00
Hiltjo Posthuma
9d12daf179 mandoc: convert uname.1, uniq.1 and xargs.1 2015-01-30 21:51:23 +01:00
Hiltjo Posthuma
a7e0f6b4f1 tail.1: fix list 2015-01-30 21:49:32 +01:00
Hiltjo Posthuma
57a19e3b86 add some mandoc pages and fix some warnings
- add .Os, it is mandatory.
- don't redeclare .Nm when it's not needed.
- fix some warnings (checked with mandoc -Tlint).
- remove some leftover old stuff.
2015-01-30 21:21:50 +01:00
sin
8c177d8d83 fold: Be consistent and use size_t 2015-01-30 16:47:36 +00:00
sin
c7f2848a35 seq: Use INT_MIN as opposed to -INT_MAX 2015-01-30 16:47:00 +00:00
sin
b66c44b24e ARGNUMF() only works on base 10 as it uses strtonum underneath 2015-01-30 16:45:44 +00:00
FRIGN
fd562481f3 Convert estrto{l, ul} to estrtonum
Enough with this insanity!
2015-01-30 16:52:44 +01:00
FRIGN
8c359daee3 Convert cal(1) to strtonum 2015-01-30 16:01:37 +01:00
sin
7a0c2669fb Remember to include limits.h for UINT_MAX 2015-01-30 14:02:59 +00:00
sin
48cc842aa9 Use estrtonum in sleep(1) 2015-01-30 14:01:45 +00:00
sin
ab149deebe Use errstr as filled by strtonum() because it is more informative 2015-01-30 13:59:43 +00: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
e8cb7f5ef0 sleep: Allow sleeping for 136 years 2015-01-30 13:24:55 +00:00
sin
b90ca482a0 Add estrtoul() 2015-01-30 13:24:41 +00:00
sin
e077e0c00a sleep(3) cannot handle ulong so don't fool people 2015-01-30 13:14:22 +00:00
FRIGN
329936053b Add mandoc-manpage for sleep(1) and refactor the code a bit
and mark it as finished in README.
2015-01-30 13:41:36 +01:00
FRIGN
dc7f392339 Add mandoc-manpage for rmdir(1)
and mark it as finished in README.
2015-01-30 13:30:03 +01:00
sin
737d23092a Staticise mv_status 2015-01-30 11:48:33 +00:00
FRIGN
e60885699c Fix return values in rm(1) and mv(1)
by setting rm_status to 1 if removing 1 file in the list fails.
Extend this to mv_status in mv(1).
2015-01-30 12:45:54 +01:00
FRIGN
a9c7d16cde Properly report return value in rmdir(1) 2015-01-30 12:43:55 +01:00
FRIGN
ae0df49f24 Add p-flag to rmdir(1) 2015-01-30 12:21:26 +01:00
FRIGN
97ad252d5d Add mandoc-manpage for rm(1)
and mark it as finished in README.
2015-01-30 11:34:05 +01:00
FRIGN
3728bd9305 Fix niceness-range in nice.1 2015-01-29 23:59:39 +01:00
FRIGN
0d32a8963f Mark renice(1) as finished in README 2015-01-29 23:58:44 +01:00