diff options
author | eivind <eivind@FreeBSD.org> | 2000-09-14 16:51:47 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 2000-09-14 16:51:47 +0000 |
commit | d63a19c1e21807290eba99997d2935286893fede (patch) | |
tree | 5e02259537f41b9fee20d6adcaf31f8ed3ed0f0d /sys/kern | |
parent | 66a4dc4beb84cb6dca9ad2c59b8661e0d64b96d0 (diff) | |
download | FreeBSD-src-d63a19c1e21807290eba99997d2935286893fede.zip FreeBSD-src-d63a19c1e21807290eba99997d2935286893fede.tar.gz |
GC vax-only code
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_subr.c | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index d9a599a..d321f69 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. */ |