Page MenuHomeFreeBSD

D57881.id180756.diff
No OneTemporary

D57881.id180756.diff

diff --git a/share/man/man9/cdefs.9 b/share/man/man9/cdefs.9
--- 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 June 26, 2026
.Dt CDEFS 9
.Os
.Sh NAME
@@ -121,6 +121,9 @@
.Dq fastcall
ABI to call and name mangle this function.
.It Sy __result_use_check Ta Warn if function caller does not use its return value
+Obsolete, use
+.Sy __nodiscard
+instead.
.It Sy __nodiscard Ta Equivalent to the standard
.Dq [[nodiscard]]
attribute.
@@ -134,6 +137,9 @@
returning values of that type.
If applied to a C++ constructor, this applies to creating instances of
the class using that constructor.
+Note that
+.Sy __nodiscard
+must appear before the function declaration.
.It Sy __returns_twice Ta Returns multiple times, like
.Xr fork 2
.It Sy __unreachable Ta This code is not reachable at runtime

File Metadata

Mime Type
text/plain
Expires
Fri, Jul 24, 9:23 AM (6 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34400428
Default Alt Text
D57881.id180756.diff (902 B)

Event Timeline