diff options
author | peter <peter@FreeBSD.org> | 1997-03-11 14:39:26 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-11 14:39:26 +0000 |
commit | 8d369a0bd229f13f37f2c2ce4d3b5dd21b58c59f (patch) | |
tree | d30ede7be6226f9f2d7d2f717a537bb5d5027c95 /games | |
parent | 6c34298aa991e80788e43d7e2c7c46219f2949b3 (diff) | |
download | FreeBSD-src-8d369a0bd229f13f37f2c2ce4d3b5dd21b58c59f.zip FreeBSD-src-8d369a0bd229f13f37f2c2ce4d3b5dd21b58c59f.tar.gz |
Import some CSRG 4.4BSD-Lite2 games
Diffstat (limited to 'games')
-rw-r--r-- | games/factor/Makefile | 2 | ||||
-rw-r--r-- | games/factor/factor.c | 3 | ||||
-rw-r--r-- | games/number/Makefile | 2 | ||||
-rw-r--r-- | games/number/number.c | 5 | ||||
-rw-r--r-- | games/pig/Makefile | 2 | ||||
-rw-r--r-- | games/pig/pig.c | 3 | ||||
-rw-r--r-- | games/primes/primes.c | 3 | ||||
-rw-r--r-- | games/quiz/Makefile | 2 | ||||
-rw-r--r-- | games/quiz/quiz.c | 9 |
9 files changed, 19 insertions, 12 deletions
diff --git a/games/factor/Makefile b/games/factor/Makefile index 0189952..b82f09e 100644 --- a/games/factor/Makefile +++ b/games/factor/Makefile @@ -3,7 +3,7 @@ PROG= factor SRCS= factor.c pr_tbl.c CFLAGS+=-I${.CURDIR}/../primes -MAN6= factor.6 +MAN6= factor.0 MLINKS+=factor.6 primes.6 .PATH: ${.CURDIR}/../primes diff --git a/games/factor/factor.c b/games/factor/factor.c index 562e4b2..fc2b907 100644 --- a/games/factor/factor.c +++ b/games/factor/factor.c @@ -41,7 +41,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)factor.c 8.3 (Berkeley) 3/30/94"; +static char sccsid[] = "@(#)factor.c 8.4 (Berkeley) 5/4/95"; #endif /* not lint */ /* @@ -69,6 +69,7 @@ static char sccsid[] = "@(#)factor.c 8.3 (Berkeley) 3/30/94"; #include <limits.h> #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include "primes.h" diff --git a/games/number/Makefile b/games/number/Makefile index dd18edb..466f666 100644 --- a/games/number/Makefile +++ b/games/number/Makefile @@ -1,6 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= number -MAN6= number.6 +MAN6= number.0 .include <bsd.prog.mk> diff --git a/games/number/number.c b/games/number/number.c index 13d139b..632ac93 100644 --- a/games/number/number.c +++ b/games/number/number.c @@ -38,16 +38,17 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)number.c 8.2 (Berkeley) 3/31/94"; +static char sccsid[] = "@(#)number.c 8.3 (Berkeley) 5/4/95"; #endif /* not lint */ #include <sys/types.h> #include <ctype.h> +#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <err.h> +#include <unistd.h> #define MAXNUM 65 /* Biggest number we handle. */ diff --git a/games/pig/Makefile b/games/pig/Makefile index f1ab583..60f6b24 100644 --- a/games/pig/Makefile +++ b/games/pig/Makefile @@ -1,6 +1,6 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= pig -MAN6= pig.6 +MAN6= pig.0 .include <bsd.prog.mk> diff --git a/games/pig/pig.c b/games/pig/pig.c index 3fbd514..b2f9112 100644 --- a/games/pig/pig.c +++ b/games/pig/pig.c @@ -38,7 +38,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)pig.c 8.1 (Berkeley) 5/31/93"; +static char sccsid[] = "@(#)pig.c 8.2 (Berkeley) 5/4/95"; #endif /* not lint */ #include <sys/types.h> @@ -47,6 +47,7 @@ static char sccsid[] = "@(#)pig.c 8.1 (Berkeley) 5/31/93"; #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> void pigout __P((char *, int)); void usage __P((void)); diff --git a/games/primes/primes.c b/games/primes/primes.c index 706576b..6baba5a 100644 --- a/games/primes/primes.c +++ b/games/primes/primes.c @@ -41,7 +41,7 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)primes.c 8.4 (Berkeley) 3/21/94"; +static char sccsid[] = "@(#)primes.c 8.5 (Berkeley) 5/10/95"; #endif /* not lint */ /* @@ -69,6 +69,7 @@ static char sccsid[] = "@(#)primes.c 8.4 (Berkeley) 3/21/94"; #include <memory.h> #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include "primes.h" diff --git a/games/quiz/Makefile b/games/quiz/Makefile index 8044644..de69ff8 100644 --- a/games/quiz/Makefile +++ b/games/quiz/Makefile @@ -1,7 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= quiz -MAN6= quiz.6 +MAN6= quiz.0 SRCS= quiz.c rxp.c CATS= africa america areas arith asia babies bard chinese collectives \ ed elements europe flowers greek inca index latin locomotive \ diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c index aa5f527..4bcd2ec 100644 --- a/games/quiz/quiz.c +++ b/games/quiz/quiz.c @@ -42,16 +42,19 @@ static char copyright[] = #endif /* not lint */ #ifndef lint -static char sccsid[] = "@(#)quiz.c 8.2 (Berkeley) 1/3/94"; +static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95"; #endif /* not lint */ #include <sys/types.h> + +#include <ctype.h> #include <errno.h> -#include <time.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <ctype.h> +#include <time.h> +#include <unistd.h> + #include "quiz.h" #include "pathnames.h" |