From 44f2153f1e37d3c064f1add1eca3b91ca4f25c19 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 26 Sep 2002 01:09:46 +0000 Subject: [PATCH] Ispell. Begin new sentences on a new line. --- usr.bin/lock/lock.1 | 14 ++-- usr.bin/xlint/xlint/lint.1 | 133 ++++++++++++++++++++++--------------- 2 files changed, 86 insertions(+), 61 deletions(-) diff --git a/usr.bin/lock/lock.1 b/usr.bin/lock/lock.1 index c5f6dbb186a5..81db651b8c81 100644 --- a/usr.bin/lock/lock.1 +++ b/usr.bin/lock/lock.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: lock.1,v 1.7 2001/12/01 16:43:18 wiz Exp $ +.\" $NetBSD: lock.1,v 1.8 2002/09/26 01:11:33 wiz Exp $ .\" .\" Copyright (c) 1987, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -56,16 +56,16 @@ Options: .Pp .Bl -tag -width Fl .It Fl n -No timeout is used. The terminal will be locked indefinitely or until -current challenge is met. +No timeout is used. +The terminal will be locked indefinitely or until current challenge is met. .It Fl p A password is not requested, instead the user's current login password is used. If the user has an S/Key key, they may also use it -to unlock the terminal. To do this the user should enter "s/key" -at the unlock "Key:" prompt. The user will then be issued an S/Key -challange to which they may respond with a six-word S/Key one-time -password. +to unlock the terminal. +To do this the user should enter "s/key" at the unlock "Key:" prompt. +The user will then be issued an S/Key challenge to which they may respond +with a six-word S/Key one-time password. .It Fl t Ar timeout The time limit (default 15 minutes) is changed to .Ar timeout diff --git a/usr.bin/xlint/xlint/lint.1 b/usr.bin/xlint/xlint/lint.1 index 51f061d4e7ee..cb609a5a4f1a 100644 --- a/usr.bin/xlint/xlint/lint.1 +++ b/usr.bin/xlint/xlint/lint.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: lint.1,v 1.22 2002/06/13 22:59:02 wiz Exp $ +.\" $NetBSD: lint.1,v 1.23 2002/09/26 01:09:46 wiz Exp $ .\" .\" Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. .\" Copyright (c) 1994, 1995 Jochen Pohl @@ -104,8 +104,8 @@ .Nm attempts to detect features of the named C program files that are likely to be bugs, to be non-portable, or to be -wasteful. It also performs stricter type checking than does -the C compiler. +wasteful. +It also performs stricter type checking than does the C compiler. .Nm runs the C preprocessor as its first phase, with the preprocessor symbol @@ -120,7 +120,8 @@ word for all code that is to be checked by Among the possible problems that are currently noted are unreachable statements, loops not entered at the top, variables declared and not used, and logical expressions -with constant values. Function calls are checked for +with constant values. +Function calls are checked for inconsistencies, such as calls to functions that return values in some places and not in others, functions called with varying numbers of arguments, function calls that @@ -131,8 +132,8 @@ the non-existent return value of the function. .Pp Filename arguments ending with .Pa \&.c -are taken to be C source files. Filename arguments with -names ending with +are taken to be C source files. +Filename arguments with names ending with .Pa \&.ln are taken to be the result of an earlier invocation of .Nm "" , @@ -141,7 +142,8 @@ with either the .Fl o or .Fl C -option in effect. The +option in effect. +The .Pa \&.ln files are analogous to the .Pa \&.o @@ -166,7 +168,8 @@ By default, .Nm appends the standard C lint library .Pq Pa llib-lc.ln -to the end of the list of files. When the +to the end of the list of files. +When the .Fl i option is used, the .Pa \&.ln @@ -177,16 +180,17 @@ or .Fl i options are used, the .Pa llib-l Ns Ar library Ns Pa \&.ln -files are ignored. When the +files are ignored. +When the .Fl i option is .Em omitted the second pass of .Nm -checks this list of files for mutual compatibility. At this point, -if a complaint stems not from a given source file, but from one of -its included files, the source filename will be printed followed by -a question mark. +checks this list of files for mutual compatibility. +At this point, if a complaint stems not from a given source file, +but from one of its included files, the source filename will be +printed followed by a question mark. .Pp The special input file name .Dq Pa - @@ -221,8 +225,8 @@ cause implicit narrowing conversion. .It Fl b Report .Sy break -statements that cannot be reached. This is not the default -because, unfortunately, most +statements that cannot be reached. +This is not the default because, unfortunately, most .Xr lex 1 and many .Xr yacc 1 @@ -239,9 +243,10 @@ and .It Fl g Don't print warnings for some extensions of .Xr gcc 1 -to the C language. Currently these are nonconstant initializers in -automatic aggregate initializations, arithmetic on pointer to void, -trailing commas in enum declarations, C++ -style +to the C language. +Currently these are nonconstant initializers in automatic aggregate +initializations, arithmetic on pointer to void, trailing commas in +enum declarations, C++ -style .Dq // comments, zero sized structures, subscripting of non-lvalue arrays, prototypes @@ -266,7 +271,8 @@ Produce a .Pa \&.ln file for every .Pa \&.c -file on the command line. These +file on the command line. +These .Pa \&.ln files are the product of .Nm "" Ns 's @@ -280,9 +286,11 @@ Attempt to check portability of code to other dialects of C. In case of redeclarations report the position of the previous declaration. .It Fl s -Strict ANSI C mode. Issue warnings and errors required by ANSI C. +Strict ANSI C mode. +Issue warnings and errors required by ANSI C. Also do not produce warnings for constructs which behave -differently in traditional C and ANSI C. With the +differently in traditional C and ANSI C. +With the .Fl s flag, .Li __STRICT_ANSI__ @@ -290,14 +298,16 @@ is a predefined preprocessor macro. .It Fl t Traditional C mode. .Li __STDC__ -is not predefined in this mode. Warnings are printed for constructs -not allowed in traditional C. Warnings for constructs which behave -differently in traditional C and ANSI C are suppressed. Preprocessor -macros describing the machine type (e.g. +is not predefined in this mode. +Warnings are printed for constructs not allowed in traditional C. +Warnings for constructs which behave differently in traditional C +and ANSI C are suppressed. +Preprocessor macros describing the machine type (e.g. .Li sun3 ) and machine architecture (e.g. .Li m68k ) -are defined without leading and trailing underscores. The keywords +are defined without leading and trailing underscores. +The keywords .Sy const , .Sy volatile and @@ -321,7 +331,8 @@ Do not complain about structures that are never defined (for example, using a structure pointer without knowing its contents). .It Fl B Ns Ar path -Path to use when looking for the lint1 and lint2 binaries. Defualts to +Path to use when looking for the lint1 and lint2 binaries. +Defaults to .Pa /usr/libexec . .It Fl C Ns Ar library Create a @@ -332,7 +343,8 @@ This library is built from all .Pa \&.c and .Pa \&.ln -input files. After all global definitions of functions and +input files. +After all global definitions of functions and variables in these files are written to the newly created library, .Nm checks all input files, including libraries specified with the @@ -345,7 +357,8 @@ for .Xr cpp 1 , as if by a .Li #define -directive. If no definition is given, +directive. +If no definition is given, .Ar name is defined as 1. .It Fl I Ns Ar directory @@ -379,16 +392,19 @@ Name the output file .Ar outputfile . The output file produced is the input that is given to .Nm "" Ns 's -second pass. The +second pass. +The .Fl o -option simply saves this file in the named output file. If the +option simply saves this file in the named output file. +If the .Fl i option is also used the files are not checked for compatibility. To produce a .Pa llib-l Ns Ar library Ns Pa \&.ln without extraneous messages, use of the .Fl u -option is suggested. The +option is suggested. +The .Fl v option is useful if the source file(s) for the lint library are just external interfaces. @@ -404,8 +420,8 @@ first and second pass. .It Fl w Treat warnings as errors. .It Fl X Ar id Ns Op ,id ... -Suppress error messages identified by the list of ids. A list of messages -and ids can be found in +Suppress error messages identified by the list of ids. +A list of messages and ids can be found in .Xr lint 7 . .El .Pp @@ -441,8 +457,8 @@ suppress complaints about fall through to a .Sy case or .Sy default -labelled statement. This directive should be placed immediately -preceding the label. +labeled statement. +This directive should be placed immediately preceding the label. .It Li /* LINTLIBRARY */ At the beginning of a file, mark all functions and variables defined in this file as @@ -456,7 +472,8 @@ Also shut off complaints about unused function arguments. .Li */ .Xc Suppresses any intra-file warning except those dealing with -unused variables or functions. This directive should be placed +unused variables or functions. +This directive should be placed on the line immediately preceding where the lint warning occurred. .It Li /* LONGLONG */ Suppress complaints about use of long long integer types. @@ -470,7 +487,8 @@ makes .Nm check the first .Pq Ar n Ns No -1 -arguments as usual. The +arguments as usual. +The .Ar n Ns No -th argument is interpreted as a .Sy printf @@ -481,10 +499,11 @@ causes to treat function declaration prototypes as function definitions if .Ar n -is non-zero. This directive can only be used in conjunction with -the +is non-zero. +This directive can only be used in conjunction with the .Li /* LINTLIBRARY */ -directive. If +directive. +If .Ar n is zero, function prototypes will be treated normally. .It Li /* SCANFLIKE Ns Ar n Li */ @@ -492,14 +511,16 @@ makes .Nm check the first .Pq Ar n Ns No -1 -arguments as usual. The +arguments as usual. +The .Ar n Ns No -th argument is interpreted as a .Sy scanf format string that is used to check the remaining arguments. .It Li /* VARARGS Ns Ar n Li */ Suppress the usual checking for variable numbers of arguments in -the following function declaration. The data types of the first +the following function declaration. +The data types of the first .Ar n arguments are checked; a missing .Ar n @@ -512,17 +533,19 @@ and the .Fl o options allows for incremental use of .Nm -on a set of C source files. Generally, one invokes +on a set of C source files. +Generally, one invokes .Nm once for each source file with the .Fl i -option. Each of these invocations produces a +option. +Each of these invocations produces a .Pa \&.ln file that corresponds to the .Pa \&.c file, and prints all messages that are about just that -source file. After all the source files have been separetely -run through +source file. +After all the source files have been separately run through .Nm "" , it is invoked once more (without the .Fl i @@ -530,8 +553,9 @@ option), listing all the .Pa \&.ln files with the needed .Fl l Ns Ar library -options. this will print all the inter-file inconsistencies. This -scheme works well with +options. +This will print all the inter-file inconsistencies. +This scheme works well with .Xr make 1 ; it allows .Xr make 1 @@ -545,15 +569,16 @@ time the set of source files were .It Ev LIBDIR the directory where the lint libraries specified by the .Fl l Ns Ar library -option must exist. If this environment variable is undefined, -then the default path +option must exist. +If this environment variable is undefined, then the default path .Pa /usr/libdata/lint will be used to search for the libraries. .It Ev TMPDIR usually the path for temporary files can be redefined by setting this environment variable. .It Ev CC -Location of the C compiler program. Defaults to +Location of the C compiler program. +Defaults to .Pa /usr/bin/cc . .El .Sh FILES @@ -588,7 +613,7 @@ option will, when used in later runs, cause certain errors that were reported when the libraries were created to be reported again, and cause line numbers and file names from the original source used to create those libraries -to be reported in error messages. For these reasons, it is recommended -to use the +to be reported in error messages. +For these reasons, it is recommended to use the .Fl C option to create lint libraries.