Author: imp
Date: Tue Sep 20 04:50:53 2016
New Revision: 306010

  Document existing practice and be more clear about sys/foo.h files
  being alphabetical with sys/param.h or sys/types.h being first. Expand
  the example to hopefully make this (slightly) clearer.
  Noticed by: cem@


Modified: head/share/man/man9/style.9
--- head/share/man/man9/style.9 Tue Sep 20 04:33:58 2016        (r306009)
+++ head/share/man/man9/style.9 Tue Sep 20 04:50:53 2016        (r306010)
@@ -118,17 +118,21 @@ Leave another blank line before the head
 Kernel include files (i.e.\&
 .Pa sys/*.h )
-come first; normally, include
+come first sorted alphebetially where possible.
 .In sys/types.h
 .In sys/param.h ,
-but not both.
+but not both and include it first.
 .In sys/types.h
 .In sys/cdefs.h ,
 and it is okay to depend on that.
 .Bd -literal
 #include <sys/types.h> /* Non-local includes in angle brackets. */
+#include <sys/endian.h>
+#include <sys/lock.h>
+#include <sys/queue.h>
 For a network program, put the network include files next.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to