Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get

the correct definition from errno.h.
This commit is contained in:
mycroft 2000-01-21 17:08:33 +00:00
parent 94753c3793
commit f5d7100e26
35 changed files with 75 additions and 118 deletions

View File

@ -1,10 +1,10 @@
/* $NetBSD: sh.h,v 1.3 1999/10/20 15:10:00 hubertf Exp $ */
/* $NetBSD: sh.h,v 1.4 2000/01/21 17:08:33 mycroft Exp $ */
/*
* Public Domain Bourne/Korn shell
*/
/* $Id: sh.h,v 1.3 1999/10/20 15:10:00 hubertf Exp $ */
/* $Id: sh.h,v 1.4 2000/01/21 17:08:33 mycroft Exp $ */
#include "config.h" /* system and option configuration info */
@ -118,7 +118,6 @@ void *memmove ARGS((void *d, const void *s, size_t n));
#endif /* HAVE_PROTOTYPES */
#include <errno.h>
extern int errno;
#ifdef HAVE_FCNTL_H
# include <fcntl.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */
/* $NetBSD: hunt.c,v 1.9 2000/01/21 17:08:33 mycroft Exp $ */
/*
* Hunt
* Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold
@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $");
__RCSID("$NetBSD: hunt.c,v 1.9 2000/01/21 17:08:33 mycroft Exp $");
#endif /* not lint */
# include <sys/stat.h>
@ -104,7 +104,6 @@ main(ac, av)
{
char *term;
int c;
extern int errno;
extern int Otto_mode;
extern int optind;
extern char *optarg;
@ -390,7 +389,6 @@ list_drivers()
static int initial = TRUE;
static struct in_addr local_address;
struct hostent *hp;
extern int errno;
# ifdef BROADCAST
static int brdc;
static SOCKET *brdv;

View File

@ -1,4 +1,4 @@
/* $NetBSD: hunt.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */
/* $NetBSD: hunt.h,v 1.6 2000/01/21 17:08:34 mycroft Exp $ */
/*
* Hunt
@ -346,7 +346,7 @@ extern char Buf[BUFSIZ], Maze[HEIGHT][WIDTH2], Orig_maze[HEIGHT][WIDTH2];
extern char *Sock_name, *Driver;
extern int errno, Nplayer, Num_fds, Socket, Status;
extern int Nplayer, Num_fds, Socket, Status;
extern fd_set Fds_mask, Have_inp;
# ifdef INTERNET

View File

@ -1,4 +1,4 @@
/* $NetBSD: msyslog.c,v 1.5 1999/07/03 12:30:31 simonb Exp $ */
/* $NetBSD: msyslog.c,v 1.6 2000/01/21 17:08:34 mycroft Exp $ */
/*
* msyslog - either send a message to the terminal or print it on
@ -46,10 +46,7 @@ FILE *syslog_file = NULL;
u_long ntp_syslogmask = ~ (u_long) 0;
#ifndef VMS
#ifndef SYS_WINNT
extern int errno;
#else
#ifdef SYS_WINNT
HANDLE hEventSource;
LPTSTR lpszStrings[1];
static WORD event_type[] = {
@ -58,7 +55,6 @@ static WORD event_type[] = {
EVENTLOG_INFORMATION_TYPE, EVENTLOG_INFORMATION_TYPE, EVENTLOG_INFORMATION_TYPE,
};
#endif /* SYS_WINNT */
#endif /* VMS */
extern char *progname;
#if defined(__STDC__)

View File

@ -1,4 +1,4 @@
/* $NetBSD: syssignal.c,v 1.4 1999/07/03 12:30:31 simonb Exp $ */
/* $NetBSD: syssignal.c,v 1.5 2000/01/21 17:08:34 mycroft Exp $ */
#include <stdio.h>
#include <sys/types.h>
@ -10,8 +10,6 @@
#ifdef HAVE_SIGACTION
#include <errno.h>
extern int errno;
void
signal_no_reset(sig, func)
int sig;

View File

@ -1,4 +1,4 @@
/* $NetBSD: hosts_access.c,v 1.10 1999/08/31 13:58:58 itojun Exp $ */
/* $NetBSD: hosts_access.c,v 1.11 2000/01/21 17:08:34 mycroft Exp $ */
/*
* This module implements a simple access control language that is based on
@ -24,7 +24,7 @@
#if 0
static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22";
#else
__RCSID("$NetBSD: hosts_access.c,v 1.10 1999/08/31 13:58:58 itojun Exp $");
__RCSID("$NetBSD: hosts_access.c,v 1.11 2000/01/21 17:08:34 mycroft Exp $");
#endif
#endif
@ -50,8 +50,6 @@ __RCSID("$NetBSD: hosts_access.c,v 1.10 1999/08/31 13:58:58 itojun Exp $");
#include <rpcsvc/ypclnt.h>
#endif
extern int errno;
#ifndef INADDR_NONE
#define INADDR_NONE (-1) /* XXX should be 0xffffffff */
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: workarounds.c,v 1.5 1999/08/31 13:58:58 itojun Exp $ */
/* $NetBSD: workarounds.c,v 1.6 2000/01/21 17:08:34 mycroft Exp $ */
/*
* Workarounds for known system software bugs. This module provides wrappers
@ -14,7 +14,7 @@
#if 0
char sccsid[] = "@(#) workarounds.c 1.6 96/03/19 16:22:25";
#else
__RCSID("$NetBSD: workarounds.c,v 1.5 1999/08/31 13:58:58 itojun Exp $");
__RCSID("$NetBSD: workarounds.c,v 1.6 2000/01/21 17:08:34 mycroft Exp $");
#endif
#endif
@ -29,8 +29,6 @@ __RCSID("$NetBSD: workarounds.c,v 1.5 1999/08/31 13:58:58 itojun Exp $");
#include <syslog.h>
#include <string.h>
extern int errno;
#include "tcpd.h"
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: telnetd.h,v 1.5 1996/02/28 20:38:25 thorpej Exp $ */
/* $NetBSD: telnetd.h,v 1.6 2000/01/21 17:08:34 mycroft Exp $ */
/*
* Copyright (c) 1989, 1993
@ -47,5 +47,4 @@
/* other external variables */
extern char **environ;
extern int errno;

View File

@ -1,4 +1,4 @@
/* $NetBSD: init.c,v 1.35 1999/11/09 15:06:33 drochner Exp $ */
/* $NetBSD: init.c,v 1.36 2000/01/21 17:08:34 mycroft Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n"
#if 0
static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95";
#else
__RCSID("$NetBSD: init.c,v 1.35 1999/11/09 15:06:33 drochner Exp $");
__RCSID("$NetBSD: init.c,v 1.36 2000/01/21 17:08:34 mycroft Exp $");
#endif
#endif /* not lint */
@ -478,7 +478,6 @@ getsecuritylevel()
#ifdef KERN_SECURELVL
int name[2], curlevel;
size_t len;
extern int errno;
name[0] = CTL_KERN;
name[1] = KERN_SECURELVL;
@ -503,7 +502,6 @@ setsecuritylevel(newlevel)
{
#ifdef KERN_SECURELVL
int name[2], curlevel;
extern int errno;
curlevel = getsecuritylevel();
if (newlevel == curlevel)

View File

@ -1,4 +1,4 @@
/* $NetBSD: file.h,v 1.17 1999/12/31 13:09:20 tron Exp $ */
/* $NetBSD: file.h,v 1.18 2000/01/21 17:08:35 mycroft Exp $ */
/*
* file.h - definitions for file(1) program
@ -86,6 +86,7 @@ struct magic {
};
#include <stdio.h> /* Include that here, to make sure __P gets defined */
#include <errno.h>
#ifndef __P
# if defined(__STDC__) || defined(__cplusplus)
@ -117,8 +118,6 @@ extern int internatmagic __P((unsigned char *, int));
extern void tryelf __P((int, unsigned char *, int));
extern int errno; /* Some unixes don't define this.. */
extern char *progname; /* the program name */
extern const char *magicfile; /* name of the magic file */
extern int lineno; /* current line number in magic file */

View File

@ -1,4 +1,4 @@
/* $NetBSD: lex.c,v 1.13 1999/02/09 04:51:30 dean Exp $ */
/* $NetBSD: lex.c,v 1.14 2000/01/21 17:08:35 mycroft Exp $ */
/*
* Copyright (c) 1980, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)lex.c 8.2 (Berkeley) 4/20/95";
#else
__RCSID("$NetBSD: lex.c,v 1.13 1999/02/09 04:51:30 dean Exp $");
__RCSID("$NetBSD: lex.c,v 1.14 2000/01/21 17:08:35 mycroft Exp $");
#endif
#endif /* not lint */
@ -70,7 +70,6 @@ setfile(name)
char *who = name[1] ? name + 1 : myname;
static int shudclob;
extern char *tempMesg;
extern int errno;
if ((name = expand(name)) == NOSTR)
return -1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: compat.c,v 1.28 1999/09/16 00:49:48 mycroft Exp $ */
/* $NetBSD: compat.c,v 1.29 2000/01/21 17:08:35 mycroft Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@ -39,14 +39,14 @@
*/
#ifdef MAKE_BOOTSTRAP
static char rcsid[] = "$NetBSD: compat.c,v 1.28 1999/09/16 00:49:48 mycroft Exp $";
static char rcsid[] = "$NetBSD: compat.c,v 1.29 2000/01/21 17:08:35 mycroft Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
#else
__RCSID("$NetBSD: compat.c,v 1.28 1999/09/16 00:49:48 mycroft Exp $");
__RCSID("$NetBSD: compat.c,v 1.29 2000/01/21 17:08:35 mycroft Exp $");
#endif
#endif /* not lint */
#endif
@ -75,7 +75,6 @@ __RCSID("$NetBSD: compat.c,v 1.28 1999/09/16 00:49:48 mycroft Exp $");
#include "hash.h"
#include "dir.h"
#include "job.h"
extern int errno;
/*
* The following array is used to make a fast determination of which

View File

@ -1,4 +1,4 @@
/* $NetBSD: job.c,v 1.31 2000/01/19 23:39:37 christos Exp $ */
/* $NetBSD: job.c,v 1.32 2000/01/21 17:08:35 mycroft Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@ -39,14 +39,14 @@
*/
#ifdef MAKE_BOOTSTRAP
static char rcsid[] = "$NetBSD: job.c,v 1.31 2000/01/19 23:39:37 christos Exp $";
static char rcsid[] = "$NetBSD: job.c,v 1.32 2000/01/21 17:08:35 mycroft Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94";
#else
__RCSID("$NetBSD: job.c,v 1.31 2000/01/19 23:39:37 christos Exp $");
__RCSID("$NetBSD: job.c,v 1.32 2000/01/21 17:08:35 mycroft Exp $");
#endif
#endif /* not lint */
#endif
@ -132,8 +132,6 @@ __RCSID("$NetBSD: job.c,v 1.31 2000/01/19 23:39:37 christos Exp $");
# define STATIC static
#endif
extern int errno;
/*
* error handling variables
*/
@ -1605,7 +1603,6 @@ JobRestart(job)
* resume it.
*/
Boolean error;
extern int errno;
int status;
#ifdef RMT_WANTS_SIGNALS

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmstat.c,v 1.23 1999/12/20 23:11:51 jwise Exp $ */
/* $NetBSD: vmstat.c,v 1.24 2000/01/21 17:08:36 mycroft Exp $ */
/*-
* Copyright (c) 1983, 1989, 1992, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
__RCSID("$NetBSD: vmstat.c,v 1.23 1999/12/20 23:11:51 jwise Exp $");
__RCSID("$NetBSD: vmstat.c,v 1.24 2000/01/21 17:08:36 mycroft Exp $");
#endif /* not lint */
/*
@ -607,7 +607,6 @@ getinfo(s, st)
{
int mib[2];
size_t size;
extern int errno;
dkreadstats();
NREAD(X_CPTIME, s->time, sizeof s->time);

View File

@ -1,4 +1,4 @@
/* $NetBSD: externs.h,v 1.15 1999/07/28 06:35:15 abs Exp $ */
/* $NetBSD: externs.h,v 1.16 2000/01/21 17:08:36 mycroft Exp $ */
/*
* Copyright (c) 1988, 1990, 1993
@ -63,9 +63,7 @@
#else
#include <sys/filio.h>
#endif
#ifdef CRAY
# include <errno.h>
#endif /* CRAY */
#include <errno.h>
#ifdef USE_TERMIO
# ifndef VINTR
# ifdef SYSV_TERMIO
@ -114,10 +112,6 @@ extern char *ipsec_policy;
#define SUBBUFSIZE 256
#ifndef CRAY
extern int errno; /* outside this world */
#endif /* !CRAY */
#include <sys/cdefs.h>
#define P __P

View File

@ -1,4 +1,4 @@
/* $NetBSD: tftp.c,v 1.10 1999/07/12 20:19:20 itojun Exp $ */
/* $NetBSD: tftp.c,v 1.11 2000/01/21 17:08:36 mycroft Exp $ */
/*
* Copyright (c) 1983, 1993
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tftp.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: tftp.c,v 1.10 1999/07/12 20:19:20 itojun Exp $");
__RCSID("$NetBSD: tftp.c,v 1.11 2000/01/21 17:08:36 mycroft Exp $");
#endif
#endif /* not lint */
@ -66,8 +66,6 @@ __RCSID("$NetBSD: tftp.c,v 1.10 1999/07/12 20:19:20 itojun Exp $");
#include "extern.h"
#include "tftpsubs.h"
extern int errno;
extern struct sockaddr_storage peeraddr; /* filled in by main */
extern int f; /* the opened socket */
extern int trace;

View File

@ -1,4 +1,4 @@
/* $NetBSD: system.c,v 1.13 1999/09/30 12:35:53 soren Exp $ */
/* $NetBSD: system.c,v 1.14 2000/01/21 17:08:36 mycroft Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)system.c 4.5 (Berkeley) 4/26/91";
#else
__RCSID("$NetBSD: system.c,v 1.13 1999/09/30 12:35:53 soren Exp $");
__RCSID("$NetBSD: system.c,v 1.14 2000/01/21 17:08:36 mycroft Exp $");
#endif
#endif /* not lint */
@ -80,8 +80,6 @@ extern char *getenv();
#include <errno.h>
extern int errno;
#include <netdb.h>
#include <signal.h>
#include <stdio.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: commands.c,v 1.4 1999/04/12 06:02:25 ross Exp $ */
/* $NetBSD: commands.c,v 1.5 2000/01/21 17:08:37 mycroft Exp $ */
/*
* Top users/processes display for Unix
@ -33,8 +33,6 @@
#include "utils.h"
#include "commands.h"
extern int errno;
extern char *copyright;
/* imported from screen.c */

View File

@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\
#if 0
static char sccsid[] = "from: @(#)edquota.c 8.3 (Berkeley) 4/27/95";
#else
__RCSID("$NetBSD: edquota.c,v 1.19 1999/12/16 17:29:53 bouyer Exp $");
__RCSID("$NetBSD: edquota.c,v 1.20 2000/01/21 17:08:37 mycroft Exp $");
#endif
#endif /* not lint */
@ -241,7 +241,6 @@ getprivs(id, quotatype)
int qcmd, qupsize, fd;
char *qfpathname;
static int warned = 0;
extern int errno;
setfsent();
quptail = NULL;

View File

@ -1,4 +1,4 @@
/* $NetBSD: mtrace.c,v 1.13 1999/05/23 16:15:18 he Exp $ */
/* $NetBSD: mtrace.c,v 1.14 2000/01/21 17:08:37 mycroft Exp $ */
/*
* mtrace.c
@ -52,7 +52,7 @@
#include <sys/cdefs.h>
#ifndef lint
__RCSID("$NetBSD: mtrace.c,v 1.13 1999/05/23 16:15:18 he Exp $");
__RCSID("$NetBSD: mtrace.c,v 1.14 2000/01/21 17:08:37 mycroft Exp $");
#endif
#include <sys/types.h>
@ -137,7 +137,6 @@ u_int32_t tdst = 0; /* Address where trace is sent (last-hop) */
vifi_t numvifs; /* to keep loader happy */
/* (see kern.c) */
extern int errno;
u_long byteswap __P((u_long));
char * inet_name __P((u_int32_t addr));

View File

@ -44,7 +44,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1990, 1993\n\
#if 0
static char sccsid[] = "@(#)repquota.c 8.2 (Berkeley) 11/22/94";
#else
__RCSID("$NetBSD: repquota.c,v 1.15 1999/10/06 12:17:31 ad Exp $");
__RCSID("$NetBSD: repquota.c,v 1.16 2000/01/21 17:08:37 mycroft Exp $");
#endif
#endif /* not lint */
@ -193,7 +193,6 @@ repquota(fs, type, qfpathname)
static struct dqblk zerodqblk;
static int warned = 0;
static int multiple = 0;
extern int errno;
if (quotactl(fs->fs_file, QCMD(Q_SYNC, type), 0, 0) < 0 &&
errno == EOPNOTSUPP && !warned && vflag) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: scm.c,v 1.8 1999/04/12 20:48:07 pk Exp $ */
/* $NetBSD: scm.c,v 1.9 2000/01/21 17:08:37 mycroft Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@ -191,8 +191,6 @@
#define INADDR_LOOPBACK (u_long)0x7f000001 /* 127.0.0.1 */
#endif
extern int errno;
char scmversion[] = "4.3 BSD";
extern int silent;
@ -533,7 +531,7 @@ char *name;
}
#ifdef __STDC__
int scmerr (int errno,char *fmt,...)
int scmerr (int error,char *fmt,...)
#else
/*VARARGS*//*ARGSUSED*/
int scmerr (va_alist)
@ -544,11 +542,11 @@ va_dcl
#ifdef __STDC__
va_start(ap,fmt);
#else
int errno;
int error;
char *fmt;
va_start(ap);
errno = va_arg(ap,int);
error = va_arg(ap,int);
fmt = va_arg(ap,char *);
#endif
@ -560,8 +558,8 @@ va_dcl
vfprintf(stderr, fmt, ap);
va_end(ap);
if (errno >= 0)
fprintf (stderr,": %s\n",errmsg(errno));
if (error >= 0)
fprintf (stderr,": %s\n",errmsg(error));
else
fprintf (stderr,"\n");
(void) fflush (stderr);

View File

@ -1,4 +1,4 @@
/* $NetBSD: scmio.c,v 1.6 1999/04/12 20:48:07 pk Exp $ */
/* $NetBSD: scmio.c,v 1.7 2000/01/21 17:08:38 mycroft Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@ -165,8 +165,6 @@
#include "supextern.h"
#include "supmsg.h"
extern int errno;
/*************************
*** M A C R O S ***
*************************/

View File

@ -1,4 +1,4 @@
/* $NetBSD: supcdefs.h,v 1.8 1999/08/02 05:36:05 erh Exp $ */
/* $NetBSD: supcdefs.h,v 1.9 2000/01/21 17:08:38 mycroft Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@ -80,7 +80,6 @@
#include "sup.h"
#include "supmsg.h"
extern int errno;
extern int PGMVERSION;
/*******************************************

View File

@ -1,4 +1,4 @@
/* $NetBSD: supfilesrv.c,v 1.18 1999/08/24 15:52:56 bouyer Exp $ */
/* $NetBSD: supfilesrv.c,v 1.19 2000/01/21 17:08:38 mycroft Exp $ */
/*
* Copyright (c) 1992 Carnegie Mellon University
@ -263,7 +263,6 @@
#define MSGFILE
#include "supmsg.h"
extern int errno;
int maxchildren;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: percent_m.c,v 1.3 1998/05/09 17:22:09 kleink Exp $ */
/* $NetBSD: percent_m.c,v 1.4 2000/01/21 17:08:39 mycroft Exp $ */
/*
* Replace %m by system error message.
@ -11,7 +11,7 @@
#if 0
static char sccsid[] = "@(#) percent_m.c 1.1 94/12/28 17:42:37";
#else
__RCSID("$NetBSD: percent_m.c,v 1.3 1998/05/09 17:22:09 kleink Exp $");
__RCSID("$NetBSD: percent_m.c,v 1.4 2000/01/21 17:08:39 mycroft Exp $");
#endif
#endif
@ -19,7 +19,6 @@ __RCSID("$NetBSD: percent_m.c,v 1.3 1998/05/09 17:22:09 kleink Exp $");
#include <errno.h>
#include <string.h>
extern int errno;
#ifndef SYS_ERRLIST_DEFINED
extern char *sys_errlist[];
extern int sys_nerr;

View File

@ -1,4 +1,4 @@
/* $NetBSD: globals.h,v 1.4 1997/10/17 08:56:00 mrg Exp $ */
/* $NetBSD: globals.h,v 1.5 2000/01/21 17:08:39 mycroft Exp $ */
/*-
* Copyright (c) 1985 The Regents of the University of California.
@ -36,7 +36,7 @@
*/
#ifdef sgi
#ident "$Revision: 1.4 $"
#ident "$Revision: 1.5 $"
#endif
#include <sys/param.h>
@ -68,7 +68,6 @@
#define SECDAY (24*SECHR)
#endif /* sgi */
extern int errno;
extern int sock;
/* Best expected round trip for a measurement.

View File

@ -1,4 +1,4 @@
/* $NetBSD: timedc.h,v 1.5 1997/10/17 14:20:22 lukem Exp $ */
/* $NetBSD: timedc.h,v 1.6 2000/01/21 17:08:39 mycroft Exp $ */
/*-
* Copyright (c) 1985, 1993 The Regents of the University of California.
@ -48,8 +48,6 @@
#include <netdb.h>
#include <stdio.h>
extern int errno;
#define ON 1
#define OFF 0

View File

@ -1,4 +1,4 @@
/* $NetBSD: config.h,v 1.6 1998/05/02 15:28:33 christos Exp $ */
/* $NetBSD: config.h,v 1.7 2000/01/21 17:08:39 mycroft Exp $ */
/* config.h. Generated automatically by configure. */
/* config.h.in. Generated automatically from configure.in by autoheader. */
@ -569,6 +569,9 @@
/* Define if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1
/* Define if <errno.h> does not define the errno variable. */
/* #undef NEED_DECLARATION_ERRNO */
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntpdate.c,v 1.7 1998/08/12 14:11:51 christos Exp $ */
/* $NetBSD: ntpdate.c,v 1.8 2000/01/21 17:08:39 mycroft Exp $ */
/*
* ntpdate - set the time of day by polling one or more NTP servers
@ -184,9 +184,9 @@ int verbose = 0;
int always_step = 0;
int never_step = 0;
#ifndef SYS_WINNT
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#endif /* SYS_WINNT */
#endif /* NEED_DECLARATION_ERRNO */
static void transmit P((struct server *));
static void receive P((struct recvbuf *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntptrace.c,v 1.7 1998/08/12 14:11:52 christos Exp $ */
/* $NetBSD: ntptrace.c,v 1.8 2000/01/21 17:08:40 mycroft Exp $ */
/*
* ntptrace - show the chain from an NTP host leading back to
@ -89,7 +89,9 @@ fd_set fdmask;
int verbose = 0;
int always_step = 0;
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#endif /* NEED_DECLARATION_ERRNO */
static void DoTrace P((struct server *));
static void DoTransmit P((struct server *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntp_filegen.c,v 1.3 1998/03/06 18:17:21 christos Exp $ */
/* $NetBSD: ntp_filegen.c,v 1.4 2000/01/21 17:08:40 mycroft Exp $ */
/*
* ntp_filegen.c,v 3.12 1994/01/25 19:06:11 kardel Exp
@ -44,9 +44,9 @@
/*
* to check reason on open failure
*/
#ifndef SYS_WINNT
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#endif /* SYS_WINNT */
#endif /* NEED_DECLARATION_ERRNO */
/*
* imported from timer

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntp_intres.c,v 1.3 1998/03/06 18:17:21 christos Exp $ */
/* $NetBSD: ntp_intres.c,v 1.4 2000/01/21 17:08:40 mycroft Exp $ */
/*
* ripped off from ../xnptres/xntpres.c by Greg Troxel 4/2/92
@ -131,9 +131,9 @@ char *req_file; /* name of the file with configuration info */
extern int debug; /* use global debug flag */
#ifndef SYS_WINNT
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#endif /* SYS_WINNT */
#endif /* NEED_DECLARATION_ERRNO */
static RETSIGTYPE bong P((int));
static void checkparent P((void));

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntp_io.c,v 1.10 1999/05/27 17:12:22 bad Exp $ */
/* $NetBSD: ntp_io.c,v 1.11 2000/01/21 17:08:40 mycroft Exp $ */
/*
* xntp_io.c - input/output routines for xntpd. The socket-opening code
@ -166,9 +166,9 @@ int maxactivefd;
*/
extern u_long current_time;
#ifndef SYS_WINNT
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#endif /* SYS_WINNT */
#endif /* NEED_DECLARATION_ERRNO */
extern int debug;
static int create_sockets P((u_int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: ntp_util.c,v 1.3 1998/03/06 18:17:22 christos Exp $ */
/* $NetBSD: ntp_util.c,v 1.4 2000/01/21 17:08:40 mycroft Exp $ */
/*
* ntp_util.c - stuff I didn't have any other place for
@ -77,9 +77,9 @@ static FILEGEN rawstats;
* We query the errno to see what kind of error occured
* when opening the drift file.
*/
#ifndef SYS_WINNT
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#endif /* SYS_WINNT */
#endif /* NEED_DECLARATION_ERRNO */
/*
* This controls whether stats are written to the fileset. Provided