master
gcc 2.8.X.X fixed this bug, back to a sane Makefile.
Implement the conv=fsync feature which does an fsync(2) after the final write to output. GNU dd also has this. It is useful for write performance measurement or guaranteed writes to reliable storage. OK kn@ tedu@ deraadt@
Nuke a bunch of whitespace nits seen while '%q' hunting.
The "old" conversions are not mandated by any standard and are underspecified. The man page offers little guidance as to their use. Remove them and spare people the (likely poor) decision to use them. ok deraadt jmc millert
replace the "write a floppy image" example with a more up to date one; input/ok deraadt jca
refactor the signal handlers for clarity, inverting the situation: the signal handler was calling a big function which is shared between multiple contexts -- that hides the rule that this big function has signal safe requirements (which it fails). now, the signal handler contains all the code, and everyone else calls the signal handler function as a regular function, from their (normal) contexts. the signal handler context is the most strict, so this pattern is better. ok florian
Rewrite bytes/sec calculation using fixed point math.