git: 431545476078 - stable/15 - cdefs(9): document __nonstring
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Sep 2026 16:29:53 UTC
The branch stable/15 has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=4315454760788542e9f5b0f6a255d2a9a62acf9c
commit 4315454760788542e9f5b0f6a255d2a9a62acf9c
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-02-05 18:52:36 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-09-03 16:27:46 +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
(cherry picked from commit 2ea905c875b6c89117023e240c3158f2da79bc52)
---
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 2bda50c3f875..7f7512ff9019 100644
--- a/share/man/man9/cdefs.9
+++ b/share/man/man9/cdefs.9
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
-.Dd May 6, 2026
+.Dd August 13, 2026
.Dt CDEFS 9
.Os
.Sh NAME
@@ -199,6 +199,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