From nobody Wed Sep 23 18:36:55 2026 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 4hqm082Mncz6tS90 for ; Wed, 23 Sep 2026 18:36:56 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hqm080Kldz4tlN for ; Wed, 23 Sep 2026 18:36:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790188616; 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=At4KGmpn+C7G9xfvqK/Lom4xgJBAJ3nHg2x94Y3zlAQ=; b=Oiy6GgUpPn6CMPaVrjpMz0vjR16J5hhwHA7yDCVYkFpbgXW100HJI6rm4KuVB1jh9N67kb 4LbVWjkp8vo8aLJbQJcmS5+pr57f6aiTF+hD8tQfSmMfGQUzNORjwqXwTJP5hvIhXhB1E5 xXzkJW9OLur46dInvUtqS5gGUMnTK1rFnm7/FuJvexMwTWzHfbzPv2OFxResGJ0HtRzQOs 0Rtlzq3ZMu7blCLRLfOy2/1K8er3s0b48C71BMkltcr7Bl1kXaDcd59zuBgEx3Jh6arqJR /unvtwM69kPl+2wXT/Qn5fQZ8Ry9/6RtuN2UaCHfZAikLGzsmRdxYL9NnAaYQA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1790188616; b=FFrhvh6Afa11P6k6tde+718j/KoMORGyEAZQgXSFL/mRe2qmfXVowfXw0M9JaensDhVVmx +DUg+hLZhbw2v60ZuRuaPQqfQczEf+Ymy/NtAKRVW0QlOzXB2mmK0PqTCKIgKKwTK/Omut LFsNOnEujANeRNFZes83TLn1b7+0KANJSjOvlYweTSTpr9pzOx3jkKvLl6PcZKzyO6eRLo JwEug+9Dxeyy4c7wpI68k3RE2tjvd0nTT10zR1Xss3VCBwzBciUJJRrCjooLVXqCp5cEtI I0ulJtm9e0xQ+NDpyE/QdUDIhrByWUGuCqQfL+HQtaPUcBcF4BqW8o+azWEU0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1790188616; 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=At4KGmpn+C7G9xfvqK/Lom4xgJBAJ3nHg2x94Y3zlAQ=; b=eJqWlWX/WrAzY4+Qegr7w33Nfadqtm2UCzFULULcU0w7IV8QqpO3B+ksVqB1m/edAP3NFu rOJP36QT6NnrrCjgOYHTA2vCA37OVXmX/8/ZUDdEyiowtGuTz2lDA27FMwIUroVui5sBma zu07D/apXo6QvNL08a2PMeLakk7Vp/O+GNUQO6W/cfcZiNHFTxyEqMSi6Aybb7e89RCt09 zf/ctGML2+nXGWvfB9X3HhJewFDmydwnyJ9lbdeY61Rdue3qvnwBvY3mag5jovaRLND9m4 YJQFTvLC1NI9Jwdu7BstINOqtrRNeP3MP8T03WMywaZtFw1PA6hhRI4woVXo9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hqm075hxlz14v2 for ; Wed, 23 Sep 2026 18:36:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 21eaa by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 23 Sep 2026 18:36:55 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Maxim Sobolev Subject: git: 72e391060bb6 - main - stat(2): Document st_bsdflags and SFBSD_NAMEDATTR 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sobomax X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 72e391060bb6c83ed65ac7ca3936bd6e07ab1ebc Auto-Submitted: auto-generated Date: Wed, 23 Sep 2026 18:36:55 +0000 Message-Id: <6ab41c47.21eaa.3d868e12@gitrepo.freebsd.org> The branch main has been updated by sobomax: URL: https://cgit.FreeBSD.org/src/commit/?id=72e391060bb6c83ed65ac7ca3936bd6e07ab1ebc commit 72e391060bb6c83ed65ac7ca3936bd6e07ab1ebc Author: Maxim Sobolev AuthorDate: 2026-09-23 14:43:01 +0000 Commit: Maxim Sobolev CommitDate: 2026-09-23 18:36:38 +0000 stat(2): Document st_bsdflags and SFBSD_NAMEDATTR Those are FreeBSD-specific member and flag still better to be documented. Reviewed by: kib Sponsored by: Sippy Software, Inc. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D59915 --- lib/libsys/stat.2 | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/lib/libsys/stat.2 b/lib/libsys/stat.2 index bbec876da1fd..0c27c481630b 100644 --- a/lib/libsys/stat.2 +++ b/lib/libsys/stat.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd August 17, 2025 +.Dd September 22, 2026 .Dt STAT 2 .Os .Sh NAME @@ -157,7 +157,7 @@ and into which information is placed concerning the file. The fields of .Vt "struct stat" related to the file system are: -.Bl -tag -width ".Va st_nlink" +.Bl -tag -width ".Va st_bsdflags" .It Va st_dev Numeric ID of the device containing the file. .It Va st_ino @@ -172,6 +172,8 @@ for the list of flags and their description. .It Va st_rdev Numeric ID of the device referenced by the file, if the file is a character or block special; otherwise unspecified. +.It Va st_bsdflags +Miscellaneous file flags (see below). .El .Pp The @@ -355,6 +357,15 @@ Test for a whiteout. .Pp The macros evaluate to a non-zero value if the test is true or to the value 0 if the test is false. +.Pp +The +.Va st_bsdflags +field contains the following flags, defined in +.In sys/stat.h : +.Bl -tag -width indent +.It Dv SFBSD_NAMEDATTR +The file is a named attribute or a named attribute directory. +.El .Sh RETURN VALUES .Rv -std .Sh COMPATIBILITY @@ -482,6 +493,12 @@ system calls are expected to conform to The .Fn fstatat system call follows The Open Group Extended API Set 2 specification. +.Pp +The +.Va st_bsdflags +field is a non-portable +.Fx Ns -only +extension. .Sh HISTORY The .Fn stat