From nobody Fri Dec 29 23:01:02 2023 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 4T217z3W33z55SWV for ; Fri, 29 Dec 2023 23:01:03 +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 4T217z1JfWz4Fvl for ; Fri, 29 Dec 2023 23:01:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703890863; a=rsa-sha256; cv=none; b=o4Ef2rigJM4Eeu6wnAaX7LQiBU0F/PCE+sUwct5GJve7cRd1SYFtvEqCxGEq2SVzWmJfR3 7f5U0V7Cmb/Q28kTBeVMY8KFHZAKNSZ2mQaZATz/uDSSuXTeO1fljtogOi1yEPls7s6JGt DSvkPp3/7E6aMd5h0dw+HFBQO5GBEkZ4nLY89ZUha/6/xkFysTxcFHvO9V/KZOwhoaDFbK Qakv9BH0Ckj2I4RvAsmOeSMgavMG/aUD18n8eHIh0YYD4K1CbTb8xjceFgJMmVVUIy1Wue xb0HwBAyM0J7lWzpxvPGQQrTnnOrWIUDUIn/o0vXoA/iyC30qMDgdfENHwzYEw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703890863; 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=+3moHVc9Y2BgZ4yl6LfUfKrxJyq5n01aPX77NKl/ETI=; b=fuOEacaCI+NU6T9rjIoFQeg5DBVlCA+10TFxaykE4fC1F8trVM5vCkTW9W/gs+9lrEGOB5 UHKRIawdROVNCwOo83oihJ5zzFw6K3v/p24SHl5U3qSaDoSUmWq9a3xAhSgkqT6XXKGDWA yzNuol69ujB9cR98tAs9XKFeuKchchUQHVfCECna8l/hCMhdv8HEwZ2bjF+eshuYyisM0q 2VsE6XZ1yDeAeQcfs5FFzpkG+2IAW9/OFSpEB970PjOqoFFR1NGonl0OZTpA1uQ3E8DqjF jli3LfttbeNNyH73DB78R9mDbcyoVAL5I8UZmDDnKaHgBdxaJZhxaQXDkp8c1w== 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 4T217y5zYgz9fB for ; Fri, 29 Dec 2023 23:01:02 +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 3BTN129D060501 for ; Fri, 29 Dec 2023 23:01:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BTN12te060500 for doc@FreeBSD.org; Fri, 29 Dec 2023 23:01:02 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: Fri, 29 Dec 2023 23:01:02 +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 #13 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D84b4342c0d7ac8a3187309a978d41e676= 5154cc1 commit 84b4342c0d7ac8a3187309a978d41e6765154cc1 Author: Rick Macklem AuthorDate: 2023-12-29 22:59:00 +0000 Commit: Rick Macklem CommitDate: 2023-12-29 22:59:00 +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 Reviewed by: karels, pauamma_gundo.com (manpages) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43227 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.=