HomeFreeBSD

linux: Fix ENOTSOCK handling in sendfile(2)

Description

linux: Fix ENOTSOCK handling in sendfile(2)

The Linux way for sendfile(2) to tell the application
to fallback to another way of copying data is by EINVAL,
not ENOTSOCK. This fixes package installation scripts
for Mono packages from Focal.

Sponsored By: EPSRC
Differential Revision: https://reviews.freebsd.org/D32604

Details

Provenance
traszAuthored on Oct 23 2021, 8:15 AM
Differential Revision
D32604: linux: Fix ENOTSOCK handling in sendfile(2)
Parents
rG3417c29851b6: linux: Constify bsd_to_linux_regset()
Branches
Unknown
Tags
Unknown