git: 2ea905c875b6 - main - cdefs(9): document __nonstring

Mitchell Horne <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a7dcb02.334fc.6915b125__15545.4900393792$1786628905$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=2ea905c875b6c89117023e240c3158f2da79bc52

commit 2ea905c875b6c89117023e240c3158f2da79bc52
Author:     Mitchell Horne <[email protected]>
AuthorDate: 2026-02-05 18:52:36 +0000
Commit:     Mitchell Horne <[email protected]>
CommitDate: 2026-08-13 13:47:41 +0000

    cdefs(9): document __nonstring
    
    Reviewed by:    emaste
    Discussed with: imp
    Fixes:  802c6d5d61d1 ("cdefs.h: Introduce __nonstring attribute")
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D58804
---
 share/man/man9/cdefs.9 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/share/man/man9/cdefs.9 b/share/man/man9/cdefs.9
index 9edfeec70bc6..e8da7d57dee1 100644
--- a/share/man/man9/cdefs.9
+++ b/share/man/man9/cdefs.9
@@ -3,7 +3,7 @@
 .\"
 .\" SPDX-License-Identifier: BSD-2-Clause
 .\"
-.Dd June 26, 2026
+.Dd August 13, 2026
 .Dt CDEFS 9
 .Os
 .Sh NAME
@@ -205,6 +205,9 @@ except
 .Fa fmtarg
 may be
 .Dv NULL.
+.It Sy __nonstring Ta Specify that an array of
+.Vt char
+does not require a null terminator.
 .It Sy __strong_reference(sym,aliassym) Ta
 .It Sy __weak_reference(sym,alias) Ta
 .It Sy __warn_references(sym,msg) Ta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.