Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 2004 15:42:16 +0000 (UTC)
From:      Poul-Henning Kamp <phk@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
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
Message-ID:  <200407101542.i6AFgG1q030021@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407101542.i6AFgG1q030021>