OpenBSD/src IYxe3H8usr.bin/rsync sender.c uploader.c

   sync with kristaps up to Sun Feb 17 2019

   339cf5998c0c022623cd68de50722b6c14543952 Push "error trail" further into code.

   baf58ce5fe1bc6ce431b3b0ac8264b83ae8c7d02 Document all arguments.  Add
     common -av usage.  Remove bits about not supporting anything but
     files/dirs.

   821a811a8c80e52fb56b241fc65a16cae1b4fb2c Disambiguate as prodded by deraadt@

   6c4475b8f226e9031ec0ec1b3f14f7d347132c87 Add -h to usage string

   4d344ae6156873b44c95de0c1ed629e637c2d7ab Clarify error message
     language, use service name instead of port, specify that the socket is
     SOCK_STREAM.  From deraadt@.  Tweaked for lowercase messages.

   f3ec049e76257fc96bcdc872f1d3b967b98f3eb6 In consideration to benno@'s
     comments, let the mktemp functions propogate an errno handled by the
     caller.  Also keep the original line lengths.  While in mktemp.c, make
     some defines into an enum.

   e116c2bd00e634b56e4276120135915ceaa31cf2 Put the FSM of the sender
     into its own function.  Put dry_run ack and end of phase ack into the
     send buffer too, further reducing the possibility of deadlock.

   c7745aa4c7394ca89d841f8ee76782256d694340 Make the sender write loop be
     fully non-blocking.  This frees us of deadlocking the protocol because
     the sender will always be able to pull down data.

   93c7b4843e80aeac2ec6ae6ffc395df4deaf4a31 Remove "yoda" notation to be
     more in tune with OpenBSD.  Most found by deraadt@.
VersionDeltaFile
1.14+203-173usr.bin/rsync/sender.c
1.15+105-71usr.bin/rsync/uploader.c
1.5+78-47usr.bin/rsync/mktemp.c
1.28+55-45usr.bin/rsync/main.c
1.11+7-16usr.bin/rsync/blocks.c
1.4+11-11usr.bin/rsync/log.c
1.19+12-6usr.bin/rsync/extern.h
1.16+8-8usr.bin/rsync/socket.c
1.6+8-8usr.bin/rsync/server.c
1.6+5-5usr.bin/rsync/child.c
1.8+5-5usr.bin/rsync/client.c
1.15+5-5usr.bin/rsync/downloader.c
1.18+3-3usr.bin/rsync/receiver.c
1.9+3-3usr.bin/rsync/rsync.5
1.5+0-6usr.bin/rsync/TODO.md
1.10+2-3usr.bin/rsync/io.c
1.3+1-1usr.bin/rsync/rsyncd.5
+511-41617 files

UnifiedSplitRaw