diff options
author | mpp <mpp@FreeBSD.org> | 1996-12-09 07:45:59 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1996-12-09 07:45:59 +0000 |
commit | d6dadb5ec6ac6513241ce76b28eadc974e1ddc92 (patch) | |
tree | d7eca7690fa47b3e5b84d52a8a5b8cf39a97ffe6 /share/man/man9 | |
parent | 5c59f6cd6ec2e8e77abc45ff48cc70de7135dfb3 (diff) | |
download | FreeBSD-src-d6dadb5ec6ac6513241ce76b28eadc974e1ddc92.zip FreeBSD-src-d6dadb5ec6ac6513241ce76b28eadc974e1ddc92.tar.gz |
Minor formatting/style fixes.
Submitted by: Sandro Sigala <sandro@cat.local.net> as part of PR # 2134
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/intro.9 | 22 | ||||
-rw-r--r-- | share/man/man9/style.9 | 6 | ||||
-rw-r--r-- | share/man/man9/suser.9 | 3 |
3 files changed, 10 insertions, 21 deletions
diff --git a/share/man/man9/intro.9 b/share/man/man9/intro.9 index a209499..dfed313 100644 --- a/share/man/man9/intro.9 +++ b/share/man/man9/intro.9 @@ -37,12 +37,11 @@ .Sh DESCRIPTION This section contains information about the interfaces and subroutines in the kernel. - .Sh PROTOTYPES ANSI-C AND ALL THAT Yes please. - +.Pp We would like all code to be fully prototyped. - +.Pp If your code compiles cleanly with .Nm cc .Ar -Wall @@ -52,21 +51,19 @@ It is important to understand that this isn't a question of just shutting up it is a question about avoiding the things it complains about. To put it bluntly, don't hide the problem by casting and other obfuscating practices, solve the problem. - .Sh INDENTATION AND STYLE Belive it or not, there actually exists a guide for indentation and style. It isn't generally applied though. - +.Pp We would appreciate if people would pay attention to it, and at least not violate it blatantly. - +.Pp We don't mind it too badly if you have your own style, but please make sure we can read it too. - +.Pp Please take time to read .Xr style 9 for more information. - .Sh NAMING THINGS Some general rules exist: .Bl -enum @@ -83,26 +80,23 @@ And the name of the procedure should start with the prefix .Li DDB_ to clearly identify the procedure as a debugger routine. .El - - .Sh SCOPE OF SYMBOLS It is important to carefully consider the scope of symbols in the kernel. The default is to make everything static, unless some reason requires the opposite. - +.Pp There are several reasons for this policy, the main one is that the kernel is one monolithic name-space, and pollution is not a good idea here either. - +.Pp For device drivers and other modules that don't add new internal interfaces to the kernel, the entire source should be in one file it possible. That way all symbols can be made static. - +.Pp If for some reason a module is split over multiple source files, then try to split the module along some major fault-line and consider using the number of global symbols as your guide. The fewer the better. - .Sh HISTORY The .Nm intro diff --git a/share/man/man9/style.9 b/share/man/man9/style.9 index 91abc01..cd852e0 100644 --- a/share/man/man9/style.9 +++ b/share/man/man9/style.9 @@ -22,7 +22,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $Id: style.9,v 1.10 1996/08/22 16:55:15 wosch Exp $ +.\" $Id: style.9,v 1.11 1996/08/24 10:49:09 wosch Exp $ .\" .Dd December 14, 1995 .Dt STYLE 9 @@ -39,7 +39,7 @@ files in the FreeBSD source tree. * * @(#)style 1.14 (Berkeley) 4/28/95 * - * $Id: style.9,v 1.10 1996/08/22 16:55:15 wosch Exp $ + * $Id: style.9,v 1.11 1996/08/24 10:49:09 wosch Exp $ * */ @@ -437,5 +437,3 @@ there. This man page is largely based on the src/admin/style/style file from the BSD 4.4-Lite2 release, with a few updates to reflect the current practice and desire of the FreeBSD project. - - diff --git a/share/man/man9/suser.9 b/share/man/man9/suser.9 index 30acaa8..7a81d48 100644 --- a/share/man/man9/suser.9 +++ b/share/man/man9/suser.9 @@ -55,8 +55,6 @@ then the usage is not noted. Because part of it's function is to notice whether super powers have been used, .Nm should be called after other permission possibilities have been exhausted. - - .Sh RETURN VALUES The .Nm @@ -66,4 +64,3 @@ This is the of some other implementations of .Nm in which a TRUE response indicates Super powers. - |