Oops.. sendfile() was not keeping track of the number bytes transferred or handling partial writes correctly.
Oops.. sendfile() was not keeping track of the number bytes transferred or handling partial writes correctly.

git-svn-id: 67fffcbec83b6fc1571abdbea1cb58cbf23a6151@5091 7fd9a85b-ad96-42d3-883c-3090e2eb8679

darknight-007/Firmware,dagar/Firmware,krbeverx/Firmware,jlecoeur/Firmware,acfloria/Firmware,PX4/Firmware,dagar/Firmware,jlecoeur/Firmware,dagar/Firmware,jlecoeur/Firmware,jlecoeur/Firmware,mje-nz/PX4-Firmware,dagar/Firmware,mje-nz/PX4-Firmware,mcgill-robotics/Firmware,mcgill-robotics/Firmware,PX4/Firmware,jlecoeur/Firmware,Aerotenna/Firmware,Aerotenna/Firmware,PX4/Firmware,mje-nz/PX4-Firmware,krbeverx/Firmware,Aerotenna/Firmware,krbeverx/Firmware,mcgill-robotics/Firmware,jlecoeur/Firmware,acfloria/Firmware,Aerotenna/Firmware,acfloria/Firmware,acfloria/Firmware,Aerotenna/Firmware,PX4/Firmware,dagar/Firmware,PX4/Firmware,Aerotenna/Firmware,mje-nz/PX4-Firmware,mje-nz/PX4-Firmware,krbeverx/Firmware,dagar/Firmware,PX4/Firmware,krbeverx/Firmware,acfloria/Firmware,darknight-007/Firmware,Aerotenna/Firmware,mcgill-robotics/Firmware,darknight-007/Firmware,jlecoeur/Firmware,acfloria/Firmware,krbeverx/Firmware,jlecoeur/Firmware,krbeverx/Firmware,darknight-007/Firmware,PX4/Firmware,mcgill-robotics/Firmware,mje-nz/PX4-Firmware,mje-nz/PX4-Firmware,mcgill-robotics/Firmware,mcgill-robotics/Firmware,acfloria/Firmware,dagar/Firmware,darknight-007/Firmware