Correct use of .Nm. Add rcsid.

This commit is contained in:
Philippe Charnier 1998-05-18 06:51:59 +00:00
parent 44dc619ed6
commit 9ba8bd6557
12 changed files with 66 additions and 46 deletions

View File

@ -33,7 +33,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" @(#)sleep.1 8.3 (Berkeley) 4/18/94 .\" @(#)sleep.1 8.3 (Berkeley) 4/18/94
.\" $Id: sleep.1,v 1.6 1997/02/22 14:05:44 peter Exp $ .\" $Id: sleep.1,v 1.7 1997/08/12 21:20:12 ache Exp $
.\" .\"
.Dd April 18, 1994 .Dd April 18, 1994
.Dt SLEEP 1 .Dt SLEEP 1
@ -46,17 +46,17 @@
.Ar seconds .Ar seconds
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm sleep .Nm
command command
suspends execution for a minimum of suspends execution for a minimum of
.Ar seconds . .Ar seconds .
.Nm .Nm Sleep
is used to schedule the execution of other commands (see is used to schedule the execution of other commands (see
.Sx EXAMPLES .Sx EXAMPLES
below). below).
.Pp .Pp
If the If the
.Nm sleep .Nm
command command
receives a SIGALRM signal, it terminates normally with a zero exit status, receives a SIGALRM signal, it terminates normally with a zero exit status,
for any other signal it takes the standard action. for any other signal it takes the standard action.
@ -117,7 +117,7 @@ awk job.
.Xr sleep 3 .Xr sleep 3
.Sh STANDARDS .Sh STANDARDS
The The
.Nm sleep .Nm
command is expected to be command is expected to be
.St -p1003.2 .St -p1003.2
compatible. compatible.

View File

@ -29,8 +29,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id: sleep.c,v 1.5 1997/02/22 14:05:45 peter Exp $
*/ */
#ifndef lint #ifndef lint
@ -40,7 +38,11 @@ static char const copyright[] =
#endif /* not lint */ #endif /* not lint */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)sleep.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <stdio.h> #include <stdio.h>

View File

@ -29,12 +29,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id$
*/ */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)cchar.c 8.5 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)cchar.c 8.5 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>

View File

@ -29,12 +29,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id$
*/ */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)gfmt.c 8.6 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)gfmt.c 8.6 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>

View File

@ -29,12 +29,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id$
*/ */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)modes.c 8.3 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)modes.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>

View File

@ -29,12 +29,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id: print.c,v 1.8 1997/02/22 14:05:53 peter Exp $
*/ */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94"; #if 0
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>

View File

@ -33,7 +33,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" @(#)stty.1 8.4 (Berkeley) 4/18/94 .\" @(#)stty.1 8.4 (Berkeley) 4/18/94
.\" $Id: stty.1,v 1.7 1997/03/12 15:59:22 mpp Exp $ .\" $Id: stty.1,v 1.8 1997/06/02 06:32:26 charnier Exp $
.\" .\"
.Dd April 18, 1994 .Dd April 18, 1994
.Dt STTY 1 .Dt STTY 1
@ -48,7 +48,7 @@
.Op operands .Op operands
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm stty .Nm
utility sets or reports on terminal utility sets or reports on terminal
characteristics for the device that is its standard input. characteristics for the device that is its standard input.
If no options or operands are specified, it reports the settings of a subset If no options or operands are specified, it reports the settings of a subset
@ -60,7 +60,7 @@ Some combinations of arguments are mutually
exclusive on some terminal types. exclusive on some terminal types.
.Pp .Pp
The following options are available: The following options are available:
.Bl -tag -width Ds .Bl -tag -width indent
.It Fl a .It Fl a
Display all the current settings for the terminal to standard output Display all the current settings for the terminal to standard output
as per as per
@ -84,7 +84,7 @@ block on the open.
.It Fl g .It Fl g
Display all the current settings for the terminal to standard output Display all the current settings for the terminal to standard output
in a form that may be used as an argument to a subsequent invocation of in a form that may be used as an argument to a subsequent invocation of
.Nm stty .Nm
to restore the current terminal state as per to restore the current terminal state as per
.St -p1003.2 . .St -p1003.2 .
.El .El
@ -493,7 +493,9 @@ first rows, then columns.
.Ss Compatibility Modes: .Ss Compatibility Modes:
.Pp .Pp
These modes remain for compatibility with the previous version of These modes remain for compatibility with the previous version of
the stty command. the
.Nm
command.
.Bl -tag -width Fl .Bl -tag -width Fl
.It Cm all .It Cm all
Reports all the terminal modes as with Reports all the terminal modes as with
@ -564,13 +566,13 @@ Same as the control character
.El .El
.Pp .Pp
The The
.Nm stty .Nm
utility exits with a value of 0 if successful, and >0 if an error occurs. utility exits with a value of 0 if successful, and >0 if an error occurs.
.Sh SEE ALSO .Sh SEE ALSO
.Xr termios 4 .Xr termios 4
.Sh STANDARDS .Sh STANDARDS
The The
.Nm stty .Nm
function is expected to be function is expected to be
.St -p1003.2 .St -p1003.2
compatible. The flags compatible. The flags

View File

@ -29,8 +29,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id: stty.c,v 1.10 1997/03/28 15:24:41 imp Exp $
*/ */
#ifndef lint #ifndef lint
@ -40,7 +38,11 @@ static char const copyright[] =
#endif /* not lint */ #endif /* not lint */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)stty.c 8.3 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)stty.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>

View File

@ -29,12 +29,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id$
*/ */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)util.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/types.h> #include <sys/types.h>

View File

@ -29,12 +29,14 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id$
*/ */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)operators.c 8.3 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)operators.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
/* /*

View File

@ -33,7 +33,7 @@
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" @(#)test.1 8.1 (Berkeley) 5/31/93 .\" @(#)test.1 8.1 (Berkeley) 5/31/93
.\" $Id: test.1,v 1.4 1997/02/22 14:06:23 peter Exp $ .\" $Id: test.1,v 1.5 1997/06/02 06:33:51 charnier Exp $
.\" .\"
.Dd May 31, 1993 .Dd May 31, 1993
.Dt TEST 1 .Dt TEST 1
@ -46,7 +46,7 @@
.Ar expression .Ar expression
.Sh DESCRIPTION .Sh DESCRIPTION
The The
.Nm test .Nm
utility evaluates the expression and, if it evaluates utility evaluates the expression and, if it evaluates
to true, returns a zero (true) exit status; otherwise to true, returns a zero (true) exit status; otherwise
it returns 1 (false). it returns 1 (false).
@ -54,11 +54,11 @@ If there is no expression, test also
returns 1 (false). returns 1 (false).
.Pp .Pp
All operators and flags are separate arguments to the All operators and flags are separate arguments to the
.Nm test .Nm
utility. utility.
.Pp .Pp
The following primaries are used to construct expression: The following primaries are used to construct expression:
.Bl -tag -width Ar .Bl -tag -width indent
.It Fl b Ar file .It Fl b Ar file
True if True if
.Ar file .Ar file
@ -228,7 +228,7 @@ operator has higher precedence than the
operator. operator.
.Sh GRAMMAR AMBIGUITY .Sh GRAMMAR AMBIGUITY
The The
.Nm test .Nm
grammar is inherently ambiguous. In order to assure a degree of consistency, grammar is inherently ambiguous. In order to assure a degree of consistency,
the cases described in the the cases described in the
.St -p1003.2 , .St -p1003.2 ,
@ -238,7 +238,7 @@ standards document. All other cases are subject to the ambiguity in the
command semantics. command semantics.
.Sh RETURN VALUES .Sh RETURN VALUES
The The
.Nm test .Nm
utility exits with one of the following values: utility exits with one of the following values:
.Bl -tag -width Ds .Bl -tag -width Ds
.It 0 .It 0
@ -251,7 +251,7 @@ An error occurred.
.El .El
.Sh STANDARDS .Sh STANDARDS
The The
.Nm test .Nm
function is expected to be function is expected to be
.St -p1003.2 .St -p1003.2
compatible. compatible.

View File

@ -32,8 +32,6 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
*
* $Id: test.c,v 1.17 1997/02/22 14:06:25 peter Exp $
*/ */
#ifndef lint #ifndef lint
@ -43,7 +41,11 @@ static char const copyright[] =
#endif /* not lint */ #endif /* not lint */
#ifndef lint #ifndef lint
static char const sccsid[] = "@(#)test.c 8.3 (Berkeley) 4/2/94"; #if 0
static char sccsid[] = "@(#)test.c 8.3 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$Id$";
#endif /* not lint */ #endif /* not lint */
#include <sys/param.h> #include <sys/param.h>