Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178278770
D47701.1796409079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D47701.1796409079.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
@@ -91,6 +91,11 @@
.It Sy __deprecated Ta Function interface has been deprecated, and clients
should migrate to a new interface.
A warning will be issued for clients of this interface.
+.It Sy __deprecated1(msg) Ta Function interface has been deprecated, and clients
+should migrate to a new interface.
+The string
+.Fa msg
+will be included in a warning issued for clients of this interface.
.It Sy __packed Ta \&Do not have space between structure elements for natural alignment.
Used when communicating with external protocols.
.It Sy __aligned(x) Ta Specify in bytes the minimum alignment for the specified field, structure or variable
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -155,6 +155,7 @@
#define __unused __attribute__((__unused__))
#define __used __attribute__((__used__))
#define __deprecated __attribute__((__deprecated__))
+#define __deprecated1(msg) __attribute__((__deprecated__(msg)))
#define __packed __attribute__((__packed__))
#define __aligned(x) __attribute__((__aligned__(x)))
#define __section(x) __attribute__((__section__(x)))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 6:31 PM (8 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42211540
Default Alt Text
D47701.1796409079.diff (1 KB)
Attached To
Mode
D47701: cdefs: Add __deprecated1 which accepts a message as an argument
Attached
Detach File
Event Timeline