Add fdprintf().  Remove reread() and rewrite() which handle -EINTR, which
shouldn't be a problem if we register signal handlers with sigaction(SA_RESTART)
Straighten out count and len (I generally consistently use "count" for the
current progress and "len" for the total, but this time I got them backwards
for some reason and don't want to confuse myself in future.)
diff --git a/toys.h b/toys.h
index 27647c9..403388e 100644
--- a/toys.h
+++ b/toys.h
@@ -6,6 +6,8 @@
  * Licensed under GPL version 2, see file LICENSE in this tarball for details.
  */
 
+#include "lib/portability.h"
+
 #include <ctype.h>
 #include <errno.h>
 #include <fcntl.h>
@@ -26,7 +28,6 @@
 #include <unistd.h>
 
 #include "lib/lib.h"
-#include "lib/portability.h"
 #include "gen_config.h"
 #include "toys/toylist.h"