Module Name: src
Committed By: wiz
Date: Sat Oct 4 13:15:50 UTC 2014
Modified Files:
src/games/primes: primes.6 primes.c
Log Message:
usage police
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/games/primes/primes.6
cvs rdiff -u -r1.20 -r1.21 src/games/primes/primes.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/primes/primes.6
diff -u src/games/primes/primes.6:1.4 src/games/primes/primes.6:1.5
--- src/games/primes/primes.6:1.4 Thu Oct 2 21:36:37 2014
+++ src/games/primes/primes.6 Sat Oct 4 13:15:50 2014
@@ -1,4 +1,4 @@
-.\" $NetBSD: primes.6,v 1.4 2014/10/02 21:36:37 ast Exp $
+.\" $NetBSD: primes.6,v 1.5 2014/10/04 13:15:50 wiz Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -43,8 +43,7 @@
.Nd generate primes
.Sh SYNOPSIS
.Nm primes
-.Op Fl d
-.Op Fl h
+.Op Fl dh
.Op Ar start Op Ar stop
.Sh DESCRIPTION
The
@@ -96,6 +95,7 @@ prints the prime numbers in hexadecimal.
Out of range or invalid input results in
an appropriate error message to standard error.
.Sh AUTHORS
+.An -nosplit
Originally by
.An Landon Curt Noll ,
extended to some 64-bit primes by
Index: src/games/primes/primes.c
diff -u src/games/primes/primes.c:1.20 src/games/primes/primes.c:1.21
--- src/games/primes/primes.c:1.20 Thu Oct 2 21:36:37 2014
+++ src/games/primes/primes.c Sat Oct 4 13:15:50 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: primes.c,v 1.20 2014/10/02 21:36:37 ast Exp $ */
+/* $NetBSD: primes.c,v 1.21 2014/10/04 13:15:50 wiz Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
#if 0
static char sccsid[] = "@(#)primes.c 8.5 (Berkeley) 5/10/95";
#else
-__RCSID("$NetBSD: primes.c,v 1.20 2014/10/02 21:36:37 ast Exp $");
+__RCSID("$NetBSD: primes.c,v 1.21 2014/10/04 13:15:50 wiz Exp $");
#endif
#endif /* not lint */
@@ -52,13 +52,13 @@ __RCSID("$NetBSD: primes.c,v 1.20 2014/1
* By Landon Curt Noll, http://www.isthe.com/chongo/index.html /\oo/\
*
* usage:
- * primes [-d] [-h] [start [stop]]
+ * primes [-dh] [start [stop]]
*
* Print primes >= start and < stop. If stop is omitted,
* the value SPSPMAX is assumed. If start is
* omitted, start is read from standard input.
- * -h: print primes in hexadecimal
* -d: print difference to previous prime, e.g. 3 (1)
+ * -h: print primes in hexadecimal
*
* validation check: there are 664579 primes between 0 and 10^7
*/
@@ -338,6 +338,6 @@ primes(uint64_t start, uint64_t stop)
static void
usage(void)
{
- (void)fprintf(stderr, "usage: primes [-d] [-h] [start [stop]]\n");
+ (void)fprintf(stderr, "usage: primes [-dh] [start [stop]]\n");
exit(1);
}