git: 2ea905c875b6 - main - cdefs(9): document __nonstring
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 13 Aug 2026 13:47:46 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=2ea905c875b6c89117023e240c3158f2da79bc52
commit 2ea905c875b6c89117023e240c3158f2da79bc52
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-02-05 18:52:36 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
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