-/* $NetBSD: main.c,v 1.2 1995/03/21 12:05:07 cgd Exp $ */
+/* $NetBSD: main.c,v 1.3 1996/02/06 22:47:06 jtc Exp $ */
/*-
* Copyright (c) 1991, 1993
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/2/93";
#else
-static char rcsid[] = "$NetBSD: main.c,v 1.2 1995/03/21 12:05:07 cgd Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.3 1996/02/06 22:47:06 jtc Exp $";
#endif
#endif /* not lint */
int argc;
char **argv;
{
- extern int errno;
register int i;
int rval,ll;
struct text *kk;
-/* $NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $ */
+/* $NetBSD: caesar.c,v 1.4 1996/02/06 22:47:15 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
#if 0
static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $";
+static char rcsid[] = "$NetBSD: caesar.c,v 1.4 1996/02/06 22:47:15 jtc Exp $";
#endif
#endif /* not lint */
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
+#include <errno.h>
#define LINELENGTH 2048
#define ROTATE(ch, perm) \
int argc;
char **argv;
{
- extern int errno;
register int ch, dot, i, nread, winnerdot;
register char *inbuf;
int obs[26], try, winner;
-/* $NetBSD: instr.c,v 1.3 1995/03/21 15:08:52 cgd Exp $ */
+/* $NetBSD: instr.c,v 1.4 1996/02/06 22:47:18 jtc Exp $ */
/*-
* Copyright (c) 1990, 1993
#if 0
static char sccsid[] = "@(#)instr.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: instr.c,v 1.3 1995/03/21 15:08:52 cgd Exp $";
+static char rcsid[] = "$NetBSD: instr.c,v 1.4 1996/02/06 22:47:18 jtc Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
#include <sys/wait.h>
-#include <sys/errno.h>
#include <sys/stat.h>
#include <curses.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include <errno.h>
#include "deck.h"
#include "cribbage.h"
void
instructions()
{
- extern int errno;
struct stat sb;
union wait pstat;
pid_t pid;
-/* $NetBSD: dm.c,v 1.4 1995/03/21 15:09:05 cgd Exp $ */
+/* $NetBSD: dm.c,v 1.5 1996/02/06 22:47:20 jtc Exp $ */
/*
* Copyright (c) 1987, 1993
#if 0
static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: dm.c,v 1.4 1995/03/21 15:09:05 cgd Exp $";
+static char rcsid[] = "$NetBSD: dm.c,v 1.5 1996/02/06 22:47:20 jtc Exp $";
#endif
#endif /* not lint */
#include <time.h>
#include <unistd.h>
#include <utmp.h>
+#include <errno.h>
#include "pathnames.h"
-extern int errno;
static time_t now; /* current time value */
static int priority = 0; /* priority game runs at */
static char *game, /* requested game */
*/
#ifndef lint
-static char rcsid[] = "$NetBSD: hack.unix.c,v 1.3 1995/03/23 08:31:55 cgd Exp $";
+static char rcsid[] = "$NetBSD: hack.unix.c,v 1.4 1996/02/06 22:47:25 jtc Exp $";
#endif /* not lint */
/* This file collects some Unix dependencies; hack.pager.c contains some more */
if(buf.st_size != sizeof(int)) return(0); /* not an xlock file */
(void) time(&date);
if(date - buf.st_mtime < 3L*24L*60L*60L) { /* recent */
- extern int errno;
int lockedpid; /* should be the same size as hackpid */
if(read(fd, (char *)&lockedpid, sizeof(lockedpid)) !=
getlock()
{
- extern int errno, hackpid, locknum;
+ extern int hackpid, locknum;
register int i = 0, fd;
(void) fflush(stdout);
-/* $NetBSD: pom.c,v 1.5 1995/06/07 16:30:46 cgd Exp $ */
+/* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */
/*
* Copyright (c) 1989, 1993
#if 0
static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: pom.c,v 1.5 1995/06/07 16:30:46 cgd Exp $";
+static char rcsid[] = "$NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $";
#endif
#endif /* not lint */
#include <string.h>
#include <tzfile.h>
#include <math.h>
+#include <errno.h>
#define PI 3.141592654
#define EPOCH 85
main()
{
- extern int errno;
struct timeval tp;
struct timezone tzp;
struct tm *GMT, *gmtime();
-/* $NetBSD: input.c,v 1.2 1995/04/22 07:42:34 cgd Exp $ */
+/* $NetBSD: input.c,v 1.3 1996/02/06 22:47:33 jtc Exp $ */
/*-
* Copyright (c) 1992, 1993
{
int i;
struct timeval starttv, endtv, *s;
- extern int errno;
#define NILTZ ((struct timezone *)0)
/*