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
Poul-Henning Kamp
phk at FreeBSD.org
Sat Jul 10 08:42:17 PDT 2004
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
More information about the cvs-src
mailing list