Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144619698
D34152.1775816828.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34152.1775816828.diff
View Options
Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -25,7 +25,7 @@
.\" From: @(#)style 1.14 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd October 28, 2020
+.Dd February 2, 2022
.Dt STYLE 9
.Os
.Sh NAME
@@ -49,7 +49,6 @@
* Style guide for FreeBSD. Based on the CSRG's KNF (Kernel Normal Form).
*
* @(#)style 1.14 (Berkeley) 4/28/95
- * $FreeBSD$
*/
/*
@@ -113,15 +112,12 @@
not for trivial changes.
.Pp
After any copyright and license comment, there is a blank line.
-If your code needs to be merged into stable/12 or earlier, it
-needs to have the
+New code should only include
.Li $\&FreeBSD$
-tag.
-Otherwise, this tag should be omitted in new code.
+or
+.Li __FBSDID("$\&FreeBSD$");
+when it will be merged into stable/12.
Legacy code will have the tag removed in the future.
-For non C/C++ language source files,
-.Li $\&FreeBSD$
-is next, if applicable.
Non-C/C++ source files follow the example above, while C/C++ source files
follow the one below.
Version control system ID tags should only exist once in a file
@@ -146,9 +142,6 @@
from the original file.
.Bd -literal
/* From: @(#)style 1.14 (Berkeley) 4/28/95 */
-
-#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
.Ed
.Pp
Leave one blank line before the header files.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 10, 10:27 AM (10 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28315724
Default Alt Text
D34152.1775816828.diff (1 KB)
Attached To
Mode
D34152: style(9): Default to omitting $FreeBSD$
Attached
Detach File
Event Timeline
Log In to Comment