projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
l_write returns a value; pass it on
[unix-history]
/
usr
/
src
/
sys
/
vax
/
uba
/
ct.c
diff --git
a/usr/src/sys/vax/uba/ct.c
b/usr/src/sys/vax/uba/ct.c
index
362d085
..
da81b8c
100644
(file)
--- a/
usr/src/sys/vax/uba/ct.c
+++ b/
usr/src/sys/vax/uba/ct.c
@@
-1,4
+1,4
@@
-/* ct.c 4.
8 82/07/15
*/
+/* ct.c 4.
10 82/10/10
*/
#include "ct.h"
#if NCT > 0
#include "ct.h"
#if NCT > 0
@@
-15,12
+15,13
@@
#include "../h/pte.h"
#include "../h/map.h"
#include "../h/buf.h"
#include "../h/pte.h"
#include "../h/map.h"
#include "../h/buf.h"
-#include "../h/ubareg.h"
-#include "../h/ubavar.h"
#include "../h/conf.h"
#include "../h/dir.h"
#include "../h/user.h"
#include "../h/conf.h"
#include "../h/dir.h"
#include "../h/user.h"
+#include "../vaxuba/ubareg.h"
+#include "../vaxuba/ubavar.h"
+
#define PCAT (PZERO+9)
#define CATHIWAT 100
#define CATLOWAT 30
#define PCAT (PZERO+9)
#define CATHIWAT 100
#define CATLOWAT 30
@@
-90,13
+91,14
@@
ctclose(dev)
ctintr(dev);
}
ctintr(dev);
}
-ctwrite(dev)
+ctwrite(dev
, uio
)
dev_t dev;
dev_t dev;
+ struct uio *uio;
{
register struct ct_softc *sc = &ct_softc[CTUNIT(dev)];
register int c;
{
register struct ct_softc *sc = &ct_softc[CTUNIT(dev)];
register int c;
- while ((c=c
pass(
)) >= 0) {
+ while ((c=c
upass(uio
)) >= 0) {
(void) spl5();
while (sc->sc_oq.c_cc > CATHIWAT)
sleep((caddr_t)&sc->sc_oq, PCAT);
(void) spl5();
while (sc->sc_oq.c_cc > CATHIWAT)
sleep((caddr_t)&sc->sc_oq, PCAT);