part of [bin/1500] - from Peter Svensson <petersv@df.lth.se> - as
a side effect.
* ensure ty: is set when -d is used (from [bin/1500])
* only ask for bad144 support for SMD disks (from [bin/1500])
* add prototypes, and ensure structures are initialised correctly
* fix up prior conversion of gets() to fgets(); the former removes
trailing \n, the latter leaves it.
* check return value of fgets() so that EOF won't infinatly loop
* fix a couple of man page typos