Commit Graph

10 Commits

Author SHA1 Message Date
sin
8ab8a4cad0 Staticise copy_splice() 2014-06-04 20:50:43 +01:00
sin
ba3366646a Use %1023s as opposed to %1023c
Using %1023c doesn't work with musl.
2014-06-04 15:36:18 +01:00
sin
e2c6ab9a76 Simplify print_stat() 2014-06-04 13:53:10 +01:00
sin
9c7d08773f Fallback to pagesize transfers in dd(1) 2014-06-04 13:39:08 +01:00
sin
a4e8cf6664 Use the macros from inttypes.h to properly print uint64_t 2014-06-04 13:22:54 +01:00
sin
6ea2b1aa53 Use estrtoul() in dd(1)
Allow specifications in hex and octal as well.
2014-06-04 13:13:00 +01:00
sin
144a893268 Ensure a proper exit code
If copy() fails at least print stats.
2014-06-04 13:06:46 +01:00
sin
7fa098ace6 Use eprintf() wherever possible, add -h to options 2014-06-04 13:04:45 +01:00
sin
5c66e30060 Nuke a harmless warning 2014-06-04 12:19:46 +01:00
sin
207ba019fd Add initial version of dd(1).
This code was written by Sebastian Krahmer and you can find
the original version at https://github.com/stealth/odd.git.

Permission has been granted to release this code under MIT/X
for ubase.  It has been simplified by sin@2f30.org.

Thanks Sebastian!
2014-06-04 11:47:38 +01:00