Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142554451
D7983.id20549.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D7983.id20549.diff
View Options
Index: share/man/man9/style.9
===================================================================
--- share/man/man9/style.9
+++ share/man/man9/style.9
@@ -26,7 +26,7 @@
.\" From: @(#)style 1.14 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd December 5, 2015
+.Dd September 20, 2016
.Dt STYLE 9
.Os
.Sh NAME
@@ -114,18 +114,24 @@
__FBSDID("$FreeBSD$");
.Ed
.Pp
-Leave another blank line before the header files.
+Leave one blank line before the header files.
.Pp
-Kernel include files (i.e.\&
+Kernel include files (i.e.,\&
.Pa sys/*.h )
-come first sorted alphabetically where possible.
-Include
-.In sys/types.h
-OR
-.In sys/param.h ,
-but not both and include it first.
+come first.
+Kernel headers should be sorted alphabetically where possible.
+An exception is that one of
.In sys/types.h
+or
+.In sys/param.h
+is usually needed before any others.
+.In sys/param.h
includes
+.In sys/types.h .
+Do not include both.
+Many headers, including
+.In sys/types.h ,
+include
.In sys/cdefs.h ,
and it is okay to depend on that.
.Bd -literal
@@ -144,7 +150,7 @@
#include <protocols/rwhod.h>
.Ed
.Pp
-Do not use files in
+Do not include files in
.Pa /usr/include
for files in the kernel.
.Pp
@@ -166,7 +172,7 @@
#include <paths.h>
.Ed
.Pp
-Leave another blank line before the user include files.
+Leave another blank line before the local include files.
.Bd -literal
#include "pathnames.h" /* Local includes in double quotes. */
.Ed
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 21, 10:50 PM (8 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27822744
Default Alt Text
D7983.id20549.diff (1 KB)
Attached To
Mode
D7983: style.9: Additional minor clarification and phrasing
Attached
Detach File
Event Timeline
Log In to Comment