From nobody Thu Jan 11 01:21:29 2024 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T9RhV6WX4z56gJ0 for ; Thu, 11 Jan 2024 01:21:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T9RhV2T6Dz4RgP for ; Thu, 11 Jan 2024 01:21:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704936090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1CIhHbhOsJMaQ7tumbKsSsozgUpITY+ctJGxarXM15A=; b=qfclBSx4vBoS57UwU9bcTpT/0rXmzCPT3Vj/Q0W6VVP8M+g+Mu6PZiE71Mlwhn+S+k+vwH 0c3FlPT4XZ/ED0LJcm5csapIJJd08dpYOBya0pT36qKaJpC8/Af8hyu1JLVTd8LKuduXWq L9MIkyvcbJ2vj0quxbY8bUgcBaCHod4ZoK3Qto6L+H4fhZanm2OZXyzj9ScYynDCcKqomt +dLEloWIF6Eq8SxW/xjOquGHzLFYqa6/N6XOmA+1utWjabZjgSlwJ34V5vvKZSjJtTeat8 mbrX3cqC+QKM09rzXWFsEYkI5rsa8c3oRhIbcwujclHtkwEaW2g3Z3P+2s2dpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704936090; a=rsa-sha256; cv=none; b=PnS+jPcyV3xEaFbjTzcsSbbRUfvMSud9F6sAp46XHFUkSAnrd2bmT5k6R8YloE5Fzn93F/ uxscAZ3xfIiHRzXRjlyFtr4cDwZAK+8P7PIpmzE0p5gsKWzZWckYCswaoHZF3oDH0LiwOV X5fW4LKUr33FiP3dZFYDJWcIdP0SnXJ1NI/cJCgFeLMuWwsHfr7hI58jsqE9PUUWRHQyA2 O3TnsB/QxBoHHhZagPef/w6E60n0JCzgQe0QKQwzTUT5feodRmH7LggYbTz+SP8fi+GUnG E01kkg+QlGejicxE+JeVQRTxXQTrnNWYZcdPjKNL69JoKtH5j2RMnFF27/lJTg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T9RhV0LXkzy7L for ; Thu, 11 Jan 2024 01:21:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 40B1LTqX090455 for ; Thu, 11 Jan 2024 01:21:29 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40B1LToM090454 for doc@FreeBSD.org; Thu, 11 Jan 2024 01:21:29 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 273962] copy_file_range does not work on shared memory objects Date: Thu, 11 Jan 2024 01:21:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273962 --- Comment #15 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6561a7141b5603235d18538f6c66322ed= 7fc67d3 commit 6561a7141b5603235d18538f6c66322ed7fc67d3 Author: Rick Macklem AuthorDate: 2023-12-29 22:59:00 +0000 Commit: Rick Macklem CommitDate: 2024-01-11 01:20:35 +0000 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) lib/libc/sys/copy_file_range.2 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=