From owner-cvs-all@FreeBSD.ORG Sat Jul 10 15:42:17 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C2DB16A4CE; Sat, 10 Jul 2004 15:42:17 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CE2B43D31; Sat, 10 Jul 2004 15:42:17 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6AFgGRt030022; Sat, 10 Jul 2004 15:42:16 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6AFgG1q030021; Sat, 10 Jul 2004 15:42:16 GMT (envelope-from phk) Message-Id: <200407101542.i6AFgG1q030021@repoman.freebsd.org> From: Poul-Henning Kamp Date: Sat, 10 Jul 2004 15:42:16 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/linux linux_socket.c src/sys/compat/svr4 svr4_stream.c src/sys/sys uio.h src/sys/kern kern_ktrace.c kern_subr.c subr_prf.c sys_generic.c uipc_syscalls.c vfs_mount.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jul 2004 15:42:17 -0000 phk 2004-07-10 15:42:16 UTC FreeBSD src repository Modified files: sys/compat/linux linux_socket.c sys/compat/svr4 svr4_stream.c sys/sys uio.h sys/kern kern_ktrace.c kern_subr.c subr_prf.c sys_generic.c uipc_syscalls.c vfs_mount.c Log: Clean up and wash struct iovec and struct uio handling. Add copyiniov() which copies a struct iovec array in from userland into a malloc'ed struct iovec. Caller frees. Change uiofromiov() to malloc the uio (caller frees) and name it copyinuio() which is more appropriate. Add cloneuio() which returns a malloc'ed copy. Caller frees. Use them throughout. Revision Changes Path 1.47 +7 -20 src/sys/compat/linux/linux_socket.c 1.49 +12 -32 src/sys/compat/svr4/svr4_stream.c 1.95 +6 -2 src/sys/kern/kern_ktrace.c 1.88 +45 -16 src/sys/kern/kern_subr.c 1.112 +5 -12 src/sys/kern/subr_prf.c 1.132 +57 -154 src/sys/kern/sys_generic.c 1.198 +55 -142 src/sys/kern/uipc_syscalls.c 1.134 +12 -26 src/sys/kern/vfs_mount.c 1.36 +4 -2 src/sys/sys/uio.h