From 23734f8d580f6b1b4030bd2216d04096e2902f5f Mon Sep 17 00:00:00 2001 From: jsm Date: Sun, 8 Feb 2004 13:16:25 +0000 Subject: Separate primes manpage from that of factor. Correct DIAGNOSTICS information. --- factor/Makefile | 3 +-- factor/factor.6 | 50 ++++++-------------------------------------------- 2 files changed, 7 insertions(+), 46 deletions(-) (limited to 'factor') diff --git a/factor/Makefile b/factor/Makefile index 0be04759..415e38a5 100644 --- a/factor/Makefile +++ b/factor/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2002/09/19 03:15:39 lukem Exp $ +# $NetBSD: Makefile,v 1.11 2004/02/08 13:16:25 jsm Exp $ # @(#)Makefile 8.1 (Berkeley) 5/31/93 # For MKCRYPTO @@ -17,7 +17,6 @@ DPADD+= ${LIBCRYPTO} .endif MAN= factor.6 -MLINKS+=factor.6 primes.6 .PATH: ${PRIMES} .include diff --git a/factor/factor.6 b/factor/factor.6 index e51896a3..4600bd34 100644 --- a/factor/factor.6 +++ b/factor/factor.6 @@ -1,4 +1,4 @@ -.\" $NetBSD: factor.6,v 1.8 2003/08/07 09:37:12 agc Exp $ +.\" $NetBSD: factor.6,v 1.9 2004/02/08 13:16:25 jsm Exp $ .\" .\" Copyright (c) 1989, 1993 .\" The Regents of the University of California. All rights reserved. @@ -37,19 +37,15 @@ .\" .\" chongo /\oo/\ .\" -.Dd May 31, 1993 +.Dd February 8, 2004 .Dt FACTOR 6 .Os .Sh NAME -.Nm factor , -.Nm primes -.Nd factor a number, generate primes +.Nm factor +.Nd factor a number .Sh SYNOPSIS .Nm .Op Ar number ... -.br -.Nm primes -.Op Ar start Op Ar stop .Sh DESCRIPTION The .Nm @@ -74,46 +70,12 @@ Numbers may be preceded by a single - or +. Numbers are terminated by a non-digit character (such as a newline). After a number is read, it is factored. Input lines must not be longer than 255 characters. -.Pp -The -.Nm primes -utility prints primes in ascending order, one per line, starting at or above -.Ar start -and continuing until, but not including -.Ar stop . -The -.Ar start -value must be at least 0 and not greater than -.Ar stop . -The -.Ar stop -value must not be greater than 4294967295. -The default value of -.Ar stop -is 4294967295. -.Pp -When the -.Nm primes -utility is invoked with no arguments, -.Ar start -is read from standard input. -.Ar stop -is taken to be 4294967295. -The -.Ar start -value may be preceded by a single +. -The -.Ar start -value is terminated by a non-digit character (such as a newline). -The input line must not be longer than 255 characters. .Sh DIAGNOSTICS Out of range or invalid input results in -.Sq ouch +an appropriate error message being written to standard error. .Sh BUGS .Nm cannot handle the .Dq 10 most wanted -factor list, -.Nm primes -won't get you a world record. +factor list. -- cgit v1.2.3-56-ge451