Add explicit return types.

This commit is contained in:
mycroft 1996-04-03 08:55:20 +00:00
parent f0d8cbb1cb
commit 46c087980e
21 changed files with 53 additions and 61 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: freebsd_machdep.c,v 1.5 1996/01/04 22:21:55 jtc Exp $ */ /* $NetBSD: freebsd_machdep.c,v 1.6 1996/04/03 09:08:13 mycroft Exp $ */
/*- /*-
* Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved. * Copyright (c) 1993, 1994, 1995 Charles M. Hannum. All rights reserved.
@ -173,6 +173,7 @@ freebsd_sendsig(catcher, sig, mask, code)
* psl to gain improper privileges or to cause * psl to gain improper privileges or to cause
* a machine fault. * a machine fault.
*/ */
int
freebsd_sys_sigreturn(p, v, retval) freebsd_sys_sigreturn(p, v, retval)
struct proc *p; struct proc *p;
void *v; void *v;

View File

@ -1,4 +1,4 @@
/* $NetBSD: swapgeneric.c,v 1.10 1996/03/17 01:31:07 thorpej Exp $ */ /* $NetBSD: swapgeneric.c,v 1.11 1996/04/03 09:15:26 mycroft Exp $ */
/*- /*-
* Copyright (c) 1990 The Regents of the University of California. * Copyright (c) 1990 The Regents of the University of California.
@ -110,6 +110,9 @@ struct genericconf {
extern int ffs_mountroot(); extern int ffs_mountroot();
int (*mountroot)() = ffs_mountroot; int (*mountroot)() = ffs_mountroot;
void gets __P((char *));
void
setconf() setconf()
{ {
register struct genericconf *gc; register struct genericconf *gc;
@ -172,6 +175,7 @@ doswap:
rootdev = dumpdev; rootdev = dumpdev;
} }
void
gets(cp) gets(cp)
char *cp; char *cp;
{ {

View File

@ -1,4 +1,4 @@
/* $NetBSD: clock.c,v 1.35 1995/12/24 02:30:07 mycroft Exp $ */ /* $NetBSD: clock.c,v 1.36 1996/04/03 08:55:20 mycroft Exp $ */
/*- /*-
* Copyright (c) 1993, 1994 Charles Hannum. * Copyright (c) 1993, 1994 Charles Hannum.
@ -106,6 +106,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <i386/isa/spkrreg.h> #include <i386/isa/spkrreg.h>
void spinwait __P((int)); void spinwait __P((int));
void findcpuspeed __P((void));
#define SECMIN ((unsigned)60) /* seconds per minute */ #define SECMIN ((unsigned)60) /* seconds per minute */
#define SECHOUR ((unsigned)(60*SECMIN)) /* seconds per hour */ #define SECHOUR ((unsigned)(60*SECMIN)) /* seconds per hour */
@ -283,6 +284,8 @@ sysbeep(pitch, period)
unsigned int delaycount; /* calibrated loop variable (1 millisecond) */ unsigned int delaycount; /* calibrated loop variable (1 millisecond) */
#define FIRST_GUESS 0x2000 #define FIRST_GUESS 0x2000
void
findcpuspeed() findcpuspeed()
{ {
int i; int i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_break.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_break.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_misc.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc_notalpha.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_misc_notalpha.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldmmap.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_oldmmap.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldolduname.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_oldolduname.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldselect.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_oldselect.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_olduname.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_olduname.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_pipe.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_pipe.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.c,v 1.1 1996/03/08 04:56:08 mycroft Exp $ */ /* $NetBSD: linux_termios.c,v 1.2 1996/04/03 09:05:35 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -71,7 +71,7 @@ static int linux_spmasks[] = {
* values. * values.
*/ */
static int static void
linux_termio_to_bsd_termios(lt, bts) linux_termio_to_bsd_termios(lt, bts)
register struct linux_termio *lt; register struct linux_termio *lt;
register struct termios *bts; register struct termios *bts;
@ -154,7 +154,7 @@ linux_termio_to_bsd_termios(lt, bts)
bts->c_cc[VMIN] = lt->c_cc[LINUX_VMIN]; bts->c_cc[VMIN] = lt->c_cc[LINUX_VMIN];
} }
static int static void
bsd_termios_to_linux_termio(bts, lt) bsd_termios_to_linux_termio(bts, lt)
register struct termios *bts; register struct termios *bts;
register struct linux_termio *lt; register struct linux_termio *lt;
@ -240,7 +240,7 @@ bsd_termios_to_linux_termio(bts, lt)
lt->c_line = 0; lt->c_line = 0;
} }
static int static void
linux_termios_to_bsd_termios(lts, bts) linux_termios_to_bsd_termios(lts, bts)
register struct linux_termios *lts; register struct linux_termios *lts;
register struct termios *bts; register struct termios *bts;
@ -328,7 +328,7 @@ linux_termios_to_bsd_termios(lts, bts)
bts->c_cc[VREPRINT] = lts->c_cc[LINUX_VREPRINT]; bts->c_cc[VREPRINT] = lts->c_cc[LINUX_VREPRINT];
} }
static int static void
bsd_termios_to_linux_termios(bts, lts) bsd_termios_to_linux_termios(bts, lts)
register struct termios *bts; register struct termios *bts;
register struct linux_termios *lts; register struct linux_termios *lts;

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_misc.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_termios.c,v 1.1 1996/03/08 04:56:08 mycroft Exp $ */ /* $NetBSD: linux_termios.c,v 1.2 1996/04/03 09:05:35 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -71,7 +71,7 @@ static int linux_spmasks[] = {
* values. * values.
*/ */
static int static void
linux_termio_to_bsd_termios(lt, bts) linux_termio_to_bsd_termios(lt, bts)
register struct linux_termio *lt; register struct linux_termio *lt;
register struct termios *bts; register struct termios *bts;
@ -154,7 +154,7 @@ linux_termio_to_bsd_termios(lt, bts)
bts->c_cc[VMIN] = lt->c_cc[LINUX_VMIN]; bts->c_cc[VMIN] = lt->c_cc[LINUX_VMIN];
} }
static int static void
bsd_termios_to_linux_termio(bts, lt) bsd_termios_to_linux_termio(bts, lt)
register struct termios *bts; register struct termios *bts;
register struct linux_termio *lt; register struct linux_termio *lt;
@ -240,7 +240,7 @@ bsd_termios_to_linux_termio(bts, lt)
lt->c_line = 0; lt->c_line = 0;
} }
static int static void
linux_termios_to_bsd_termios(lts, bts) linux_termios_to_bsd_termios(lts, bts)
register struct linux_termios *lts; register struct linux_termios *lts;
register struct termios *bts; register struct termios *bts;
@ -328,7 +328,7 @@ linux_termios_to_bsd_termios(lts, bts)
bts->c_cc[VREPRINT] = lts->c_cc[LINUX_VREPRINT]; bts->c_cc[VREPRINT] = lts->c_cc[LINUX_VREPRINT];
} }
static int static void
bsd_termios_to_linux_termios(bts, lts) bsd_termios_to_linux_termios(bts, lts)
register struct termios *bts; register struct termios *bts;
register struct linux_termios *lts; register struct linux_termios *lts;

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_break.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_break.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_misc_notalpha.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_misc_notalpha.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldmmap.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_oldmmap.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldolduname.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_oldolduname.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_oldselect.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_oldselect.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_olduname.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_olduname.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_pipe.c,v 1.24 1995/12/18 14:35:08 fvdl Exp $ */ /* $NetBSD: linux_pipe.c,v 1.25 1996/04/03 09:02:40 mycroft Exp $ */
/* /*
* Copyright (c) 1995 Frank van der Linden * Copyright (c) 1995 Frank van der Linden
@ -81,7 +81,7 @@
* to be converted in order for Linux binaries to get a valid signal * to be converted in order for Linux binaries to get a valid signal
* number out of it. * number out of it.
*/ */
static int static void
bsd_to_linux_wstat(status) bsd_to_linux_wstat(status)
int *status; int *status;
{ {
@ -181,7 +181,6 @@ linux_sys_wait4(p, v, retval)
return error; return error;
bsd_to_linux_wstat(&tstat); bsd_to_linux_wstat(&tstat);
return copyout(&tstat, SCARG(uap, status), sizeof tstat); return copyout(&tstat, SCARG(uap, status), sizeof tstat);
} }