mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-28 19:06:39 -05:00
Move everything to negative errno return types (#1499)
This commit is contained in:
parent
2b500f194a
commit
e8cd74cab0
177 changed files with 5952 additions and 5843 deletions
|
|
@ -14,7 +14,7 @@
|
|||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "errno.hpp"
|
||||
#include "to_neg_errno.hpp"
|
||||
|
||||
#include <sys/sendfile.h>
|
||||
|
||||
|
|
@ -26,8 +26,11 @@ namespace fs
|
|||
const int fdout,
|
||||
const size_t count)
|
||||
{
|
||||
ssize_t rv;
|
||||
off_t offset = 0;
|
||||
|
||||
return ::sendfile(fdout,fdin,&offset,count);
|
||||
rv = ::sendfile(fdout,fdin,&offset,count);
|
||||
|
||||
return ::to_neg_errno(rv);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue