X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/b6de7c62fa990ce21bfc802939a145c0d8d7560f..4c45483ea9fb51e495c5cc57c7032ab8d97dd211:/sys/kern/kern_subr.c diff --git a/sys/kern/kern_subr.c b/sys/kern/kern_subr.c index 904f8a1f33..4b17daabf1 100644 --- a/sys/kern/kern_subr.c +++ b/sys/kern/kern_subr.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. * * from: @(#)kern_subr.c 7.7 (Berkeley) 4/15/91 - * $Id: kern_subr.c,v 1.2 1993/10/16 15:24:30 rgrimes Exp $ + * $Id: kern_subr.c,v 1.3 1993/11/18 05:02:34 rgrimes Exp $ */ #include "param.h" #include "systm.h" #include "proc.h" +int uiomove(cp, n, uio) register caddr_t cp; register int n; @@ -93,8 +94,11 @@ uiomove(cp, n, uio) return (error); } +int uioapply(func, arg1, arg2, uio) int (*func)() ; + int arg1; + int arg2; register struct uio *uio; { register struct iovec *iov; @@ -133,6 +137,7 @@ uioapply(func, arg1, arg2, uio) /* * Give next character to user as result of read. */ +int ureadc(c, uio) register int c; register struct uio *uio; @@ -171,6 +176,7 @@ again: return (0); } +void strcat(src, append) register char *src, *append; { @@ -181,14 +187,18 @@ strcat(src, append) ; } +char * strcpy(to, from) - register char *to, *from; + char *to; + const char *from; { - + char *old = to; for (; *to = *from; ++from, ++to) ; + return old; } +void strncpy(to, from, cnt) register char *to, *from; register int cnt; @@ -215,10 +225,11 @@ strcmp(s1, s2) -#ifndef lint /* unused except by ct.c, other oddities XXX */ +#ifdef notdef /* unused except by ct.c, other oddities XXX */ /* * Get next character written in by user from uio. */ +int uwritec(uio) struct uio *uio; {