From 62b2afac2d2d657c4aa80c12cbcd85f4dbc93e57 Mon Sep 17 00:00:00 2001 From: ragge Date: Tue, 9 Apr 1996 17:21:56 +0000 Subject: [PATCH] Removed a function that were #ifdef vax'ed. --- sys/kern/kern_subr.c | 45 +------------------------------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 149c58e15e59..9886ff84cc16 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_subr.c,v 1.14 1995/05/31 20:41:44 cgd Exp $ */ +/* $NetBSD: kern_subr.c,v 1.15 1996/04/09 17:21:56 ragge Exp $ */ /* * Copyright (c) 1982, 1986, 1991, 1993 @@ -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. */