From nobody Thu Apr 10 00:51:54 2025 X-Original-To: dev-commits-src-all@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 4ZY1VM5bLHz5sdd5; Thu, 10 Apr 2025 00:51:55 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZY1VM1BSYz3C9k; Thu, 10 Apr 2025 00:51:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1744246315; 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; bh=eDvVqYE4SLPmhs4KNIuWF9Doy23uiCCKGhRflhiXQjA=; b=om8ZWV77PN9yS9eyBgpruxuliyWL/mK0j6aeybaubHB6vEse1aGCN09KeVfblrkexXinpo w1fGu0gt6gKul48CMoraxYPJRY1FNR6HZQTx/6LWUsC/vUKvovy4aSlYw1Muj5kteAVgJG olQ6dwiRT1Pq/gNoxSquKrlAbuGzYzCahQlWMHSOsHyRLgf1ZioVuOftys5VIGvoBAS6Fj IbPbGyEJhD8IQIHNFb3KRbgKQmDPUjI4KiT02WXhVsgor7tantnHesX47Hv2Pb/EkpDFsZ fDFNdrnebGIb1bpWLcaxxuPpMvGdON1gthe96VagBrHgSosOaMC8wLnTvkI/XQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1744246315; a=rsa-sha256; cv=none; b=MB9gOk5FQk4Y7N4hBvO9GtJ8xLP5zs+HpZZU5LPngExi4qJcroV5W7djurPyQ4aNYaVVWl z1uLTdxazYgaMCatthwAROjxDCFKtUJk89kNKMU7I634BiUY8DEdhjdFXJdyKvj8AupT39 ZVExMpkdQB+rT9zD1IR1X6LlMpsSxUza8DI8LbtlKx4eP3qHPkfTgKPSVrDSE+F1eUyR2f kcLl7Q1WQPBYGmc9YOgD4yRw2ohvRFeEnhdkbOQTZkGkcvd+STTYcTXXx9fV7n7BbkSRO8 MyP86SLwu/4coIeOB5IMy394+GoCUSy4G596BZ85oIran11HyBmQpeCV3YBaYA== 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=1744246315; 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; bh=eDvVqYE4SLPmhs4KNIuWF9Doy23uiCCKGhRflhiXQjA=; b=XQmtjSIKseuefJAl2bXkdB6Ur0I6NEDsonfCQ0+N+Om2ZEVex5F/K1OEKoMD17AzWoGH0L QJNrh+F5cP1CDH/t19ankFj7a49kXhkHwmeuKFwWCA93dCyk+XQ8DSAYJInNkXxCvFJI7F jFvpbd5kxdpnCY4F59/P3h0YZi0BDUS6j1q83ozFIpTMRaJRCDivVNYwz/kA5BwRCuTYl9 m6y0yv2uTob8YW7C2+MRk8p9sPNZSTBrc27dc15M9cepvPE7NnNrUNwKDipdQy0nCTG+27 xIpwAWH1rCAtEQMXcyLcIoNpgAaldV7gn/hA1U/uBPNWAcSUGn9IC0FND7e66A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4ZY1VM0jPZzhSR; Thu, 10 Apr 2025 00:51:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 53A0psxa086740; Thu, 10 Apr 2025 00:51:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 53A0ps4g086737; Thu, 10 Apr 2025 00:51:54 GMT (envelope-from git) Date: Thu, 10 Apr 2025 00:51:54 GMT Message-Id: <202504100051.53A0ps4g086737@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: dedbb972d294 - main - fhopen.2: Update man page for O_NAMEDATTR flag List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dedbb972d2942ca45eadbdc22f5b139ea417f5b5 Auto-Submitted: auto-generated The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=dedbb972d2942ca45eadbdc22f5b139ea417f5b5 commit dedbb972d2942ca45eadbdc22f5b139ea417f5b5 Author: Rick Macklem AuthorDate: 2025-04-10 00:50:36 +0000 Commit: Rick Macklem CommitDate: 2025-04-10 00:50:36 +0000 fhopen.2: Update man page for O_NAMEDATTR flag This patch updates the man page for the O_NAMEDATTR flag. Another man page that explains named attributes will be introduced in a future commit. This is a content change. Reviewed by: manpages (zaiee) Fixes: 2ec2ba7e ("Add support for Solaris style extended attr") Differential Revision: https://reviews.freebsd.org/D49718 --- lib/libsys/fhopen.2 | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/lib/libsys/fhopen.2 b/lib/libsys/fhopen.2 index 5bd1e9f8d90b..aba53f1dd907 100644 --- a/lib/libsys/fhopen.2 +++ b/lib/libsys/fhopen.2 @@ -31,7 +31,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd June 29, 1999 +.Dd April 6, 2025 .Dt FHOPEN 2 .Os .Sh NAME @@ -75,6 +75,10 @@ together the flags used for the system call. All said flags are valid except for .Dv O_CREAT . +If the file handle refers to a named attribute or named attribute +directory, the +.Dv O_NAMEDATTR +flag must be specified. .Pp The .Fn fhstat @@ -116,6 +120,16 @@ Calling with .Dv O_CREAT set. +.It Bq Er ENOATTR +The file handle does not refer to a named attribute or named attribute +directory although the +.Dv O_NAMEDATTR +flag was specified. +.It Bq Er ENOATTR +The file handle refers to a named attribute or named attribute directory +although the +.Dv O_NAMEDATTR +flag was not specified. .It Bq Er ESTALE The file handle .Fa fhp @@ -125,7 +139,8 @@ is no longer valid. .Xr fstat 2 , .Xr fstatfs 2 , .Xr getfh 2 , -.Xr open 2 +.Xr open 2 , +.Xr named_attribute 9 .Sh HISTORY The .Fn fhopen ,