ANSIfications.

This commit is contained in:
andrew 1993-06-27 06:59:20 +00:00
parent bc5f186001
commit 1b69e917eb
7 changed files with 30 additions and 27 deletions

View File

@ -13,7 +13,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: cd.c,v 1.13 1993/06/17 12:18:29 brezak Exp $
* $Id: cd.c,v 1.14 1993/06/27 07:01:17 andrew Exp $
*/
#define SPLCD splbio
@ -612,7 +612,7 @@ struct scsi_xfer *xs;
}
else /* special has finished */
{
wakeup(xs);
wakeup((caddr_t)xs);
}
}
/*******************************************************\
@ -1426,7 +1426,7 @@ retry: xs->error = XS_NOERROR;
case SUCCESSFULLY_QUEUED:
s = splbio();
while(!(xs->flags & ITSDONE))
sleep(xs,PRIBIO+1);
sleep((caddr_t)xs,PRIBIO+1);
splx(s);
case HAD_ERROR:

View File

@ -13,7 +13,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: sd.c,v 1.14 1993/06/16 04:31:40 deraadt Exp $
* $Id: sd.c,v 1.15 1993/06/27 06:59:20 andrew Exp $
*/
#include "sd.h"
@ -594,7 +594,7 @@ sd_done(int unit, struct scsi_xfer *xs)
sd_free_xs(unit, xs, 0);
sdstart(unit); /* If there's anything waiting.. do it */
} else
wakeup(xs);
wakeup((caddr_t)xs);
}
/*
@ -1077,7 +1077,7 @@ retry:
case SUCCESSFULLY_QUEUED:
s = splbio();
while(!(xs->flags & ITSDONE))
sleep(xs,PRIBIO+1);
sleep((caddr_t)xs, PRIBIO+1);
splx(s);
case HAD_ERROR:
/*printf("err = %d ", xs->error);*/

View File

@ -13,7 +13,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: st.c,v 1.11 1993/06/16 10:39:35 andrew Exp $
* $Id: st.c,v 1.12 1993/06/27 06:59:23 andrew Exp $
*/
/*
@ -414,7 +414,7 @@ ststart(int unit)
trynext:
if(st->blockwait) {
wakeup(&st->blockwait);
wakeup((caddr_t)&st->blockwait);
return;
}
@ -488,7 +488,7 @@ trynext:
xs->targ = st->targ;
xs->lu = st->lu;
xs->retries = 1; /* can't retry on tape*/
xs->timeout = 100000; /* allow 100 secs for retension */
xs->timeout = 200000; /* allow 200 secs for retension */
xs->cmd = (struct scsi_generic *)&cmd;
xs->cmdlen = sizeof(cmd);
xs->data = (u_char *)bp->b_un.b_addr;
@ -670,7 +670,7 @@ st_done(int unit, struct scsi_xfer *xs)
xs->flags = 0; /* no longer in use */
ststart(unit); /* If there's another waiting.. do it */
} else
wakeup(xs);
wakeup((caddr_t)xs);
}
/*
@ -1111,7 +1111,7 @@ st_scsi_cmd(int unit, struct scsi_generic *scsi_cmd, int cmdlen,
s = splbio();
st->blockwait++; /* there is someone waiting */
while (xs->flags & INUSE)
sleep(&st->blockwait, PRIBIO+1);
sleep((caddr_t)&st->blockwait, PRIBIO+1);
st->blockwait--;
xs->flags = INUSE;
if(!(flags & SCSI_NOMASK))
@ -1142,7 +1142,7 @@ retry:
case SUCCESSFULLY_QUEUED:
s = splbio();
while(!(xs->flags & ITSDONE))
sleep(xs,PRIBIO+1);
sleep((caddr_t)xs,PRIBIO+1);
splx(s);
case HAD_ERROR:
case COMPLETE:

View File

@ -13,7 +13,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: cd.c,v 1.13 1993/06/17 12:18:29 brezak Exp $
* $Id: cd.c,v 1.14 1993/06/27 07:01:17 andrew Exp $
*/
#define SPLCD splbio
@ -612,7 +612,7 @@ struct scsi_xfer *xs;
}
else /* special has finished */
{
wakeup(xs);
wakeup((caddr_t)xs);
}
}
/*******************************************************\
@ -1426,7 +1426,7 @@ retry: xs->error = XS_NOERROR;
case SUCCESSFULLY_QUEUED:
s = splbio();
while(!(xs->flags & ITSDONE))
sleep(xs,PRIBIO+1);
sleep((caddr_t)xs,PRIBIO+1);
splx(s);
case HAD_ERROR:

View File

@ -13,7 +13,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: sd.c,v 1.14 1993/06/16 04:31:40 deraadt Exp $
* $Id: sd.c,v 1.15 1993/06/27 06:59:20 andrew Exp $
*/
#include "sd.h"
@ -594,7 +594,7 @@ sd_done(int unit, struct scsi_xfer *xs)
sd_free_xs(unit, xs, 0);
sdstart(unit); /* If there's anything waiting.. do it */
} else
wakeup(xs);
wakeup((caddr_t)xs);
}
/*
@ -1077,7 +1077,7 @@ retry:
case SUCCESSFULLY_QUEUED:
s = splbio();
while(!(xs->flags & ITSDONE))
sleep(xs,PRIBIO+1);
sleep((caddr_t)xs, PRIBIO+1);
splx(s);
case HAD_ERROR:
/*printf("err = %d ", xs->error);*/

View File

@ -13,7 +13,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
* $Id: st.c,v 1.11 1993/06/16 10:39:35 andrew Exp $
* $Id: st.c,v 1.12 1993/06/27 06:59:23 andrew Exp $
*/
/*
@ -414,7 +414,7 @@ ststart(int unit)
trynext:
if(st->blockwait) {
wakeup(&st->blockwait);
wakeup((caddr_t)&st->blockwait);
return;
}
@ -488,7 +488,7 @@ trynext:
xs->targ = st->targ;
xs->lu = st->lu;
xs->retries = 1; /* can't retry on tape*/
xs->timeout = 100000; /* allow 100 secs for retension */
xs->timeout = 200000; /* allow 200 secs for retension */
xs->cmd = (struct scsi_generic *)&cmd;
xs->cmdlen = sizeof(cmd);
xs->data = (u_char *)bp->b_un.b_addr;
@ -670,7 +670,7 @@ st_done(int unit, struct scsi_xfer *xs)
xs->flags = 0; /* no longer in use */
ststart(unit); /* If there's another waiting.. do it */
} else
wakeup(xs);
wakeup((caddr_t)xs);
}
/*
@ -1111,7 +1111,7 @@ st_scsi_cmd(int unit, struct scsi_generic *scsi_cmd, int cmdlen,
s = splbio();
st->blockwait++; /* there is someone waiting */
while (xs->flags & INUSE)
sleep(&st->blockwait, PRIBIO+1);
sleep((caddr_t)&st->blockwait, PRIBIO+1);
st->blockwait--;
xs->flags = INUSE;
if(!(flags & SCSI_NOMASK))
@ -1142,7 +1142,7 @@ retry:
case SUCCESSFULLY_QUEUED:
s = splbio();
while(!(xs->flags & ITSDONE))
sleep(xs,PRIBIO+1);
sleep((caddr_t)xs,PRIBIO+1);
splx(s);
case HAD_ERROR:
case COMPLETE:

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)ufs_subr.c 7.13 (Berkeley) 6/28/90
* $Id: ufs_subr.c,v 1.2 1993/05/20 03:53:43 cgd Exp $
* $Id: ufs_subr.c,v 1.3 1993/06/27 07:00:11 andrew Exp $
*/
#ifdef KERNEL
@ -171,6 +171,7 @@ setblock(fs, cp, h)
* C definitions of special instructions.
* Normally expanded with inline.
*/
int
scanc(size, cp, table, mask)
u_int size;
register u_char *cp, table[];
@ -185,8 +186,9 @@ scanc(size, cp, table, mask)
#endif
#if !defined(vax) && !defined(tahoe) && !defined(hp300)
int
skpc(mask, size, cp)
register u_char mask;
register int mask;
u_int size;
register u_char *cp;
{
@ -197,8 +199,9 @@ skpc(mask, size, cp)
return (end - cp);
}
int
locc(mask, size, cp)
register u_char mask;
register int mask;
u_int size;
register u_char *cp;
{