Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163460484
D57881.id180756.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
902 B
Referenced Files
None
Subscribers
None
D57881.id180756.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57881: cdefs(9): encourage __nodiscard over __result_use_check
Attached
Detach File
Event Timeline
Log In to Comment