aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEivind Eklund <eivind@FreeBSD.org>2000-09-14 16:51:47 +0000
committerEivind Eklund <eivind@FreeBSD.org>2000-09-14 16:51:47 +0000
commitcb144e905c51d496dc25e6c2e9c99ba603d00a02 (patch)
tree8a74e576c9c8de04e0a1a75fdb2ab9d575267b1d
parent2e9cc0ee8f9267e7cd76375a89c7ffa931833180 (diff)
downloadsrc-cb144e905c51d496dc25e6c2e9c99ba603d00a02.tar.gz
src-cb144e905c51d496dc25e6c2e9c99ba603d00a02.zip
GC vax-only code
Notes
Notes: svn path=/head/; revision=65841
-rw-r--r--sys/kern/kern_subr.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c
index d9a599afbb89..d321f698f456 100644
--- a/sys/kern/kern_subr.c
+++ b/sys/kern/kern_subr.c
@@ -311,53 +311,6 @@ again:
return (0);
}
-#ifdef vax /* unused except by ct.c, other oddities XXX */
-/*
- * Get next character written in by user from uio.
- */
-int
-uwritec(uio)
- struct uio *uio;
-{
- register struct iovec *iov;
- register int c;
-
- if (uio->uio_resid <= 0)
- return (-1);
-again:
- if (uio->uio_iovcnt <= 0)
- panic("uwritec");
- iov = uio->uio_iov;
- if (iov->iov_len == 0) {
- uio->uio_iov++;
- if (--uio->uio_iovcnt == 0)
- return (-1);
- goto again;
- }
- switch (uio->uio_segflg) {
-
- case UIO_USERSPACE:
- c = fubyte(iov->iov_base);
- break;
-
- case UIO_SYSSPACE:
- c = *(u_char *) iov->iov_base;
- break;
-
- case UIO_USERISPACE:
- c = fuibyte(iov->iov_base);
- break;
- }
- if (c < 0)
- return (-1);
- iov->iov_base++;
- iov->iov_len--;
- uio->uio_resid--;
- uio->uio_offset++;
- return (c);
-}
-#endif /* vax */
-
/*
* General routine to allocate a hash table.
*/