HomeFreeBSD

copy_file_range.2: Clarify that only regular files work

Description

copy_file_range.2: Clarify that only regular files work

PR#273962 reported that copy_file_range(2) did not work
on shared memory objects and returned EINVAL.
Although the reporter felt this was incorrect, it is what
the Linux copy_file_range(2) syscall does.

Since there was no collective agreement that the FreeBSD
semantics should be changed to no longer be Linux compatible,
copy_file_range(2) still works on regular files only.

This man page update clarifies that. If, someday, copy_file_range(2)
is changed to support non-regular files, then the man page will
need to be updated to reflect that.

PR: 273962

(cherry picked from commit 84b4342c0d7ac8a3187309a978d41e6765154cc1)

Details

Provenance
rmacklemAuthored on Dec 29 2023, 10:59 PM
Parents
rG8923d34c6cbf: tcp: clean PRR state after ECN congestion recovery.
Branches
Unknown
Tags
Unknown