diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-17 05:09:15 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1996-04-17 05:09:15 +0000 |
commit | bdac2fcb774bc4a57e1815b2a5e730810b3f0c5f (patch) | |
tree | c5706f8e31cf46084fa10e352acd53a8e72360f8 /sys/kern/kern_subr.c | |
parent | 43f5c24b6249bd27f230713486458e47512daa8a (diff) |
Removed vax ifdefed function from kern_subr.c (from NetBSD).
Do sync in the order of umount (vfs_syscals.c), as it was pointed
by someone in NetBSD's lists.
Diffstat (limited to 'sys/kern/kern_subr.c')
-rw-r--r-- | sys/kern/kern_subr.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 149c58e15e5..e0ae4093157 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -139,49 +139,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("ureadc: non-positive iovcnt"); - 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; - } - 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. */ |