cvs commit: src/sys/compat/freebsd32 freebsd32_misc.c src/sys/compat/svr4 svr4_stream.c svr4_util.h src/sys/kern uipc_syscalls.c src/sys/sys syscallsubr.h

John Baldwin jhb at FreeBSD.org
Mon Jul 10 21:38:18 UTC 2006


jhb         2006-07-10 21:38:17 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/freebsd32 freebsd32_misc.c 
    sys/compat/svr4      svr4_stream.c svr4_util.h 
    sys/kern             uipc_syscalls.c 
    sys/sys              syscallsubr.h 
  Log:
  - Split out kern_accept(), kern_getpeername(), and kern_getsockname() for
    use by ABI emulators.
  - Alter the interface of kern_recvit() somewhat.  Specifically, go ahead
    and hard code UIO_USERSPACE in the uio as that's what all the callers
    specify.  In place, add a new uioseg to indicate what type of pointer
    is in mp->msg_name.  Previously it was always a userland address, but
    ABI emulators may pass in kernel-side sockaddrs.  Also, remove the
    namelenp field and instead require the two places that used it to
    explicitly copy mp->msg_namelen out to userland.
  - Use the patched kern_recvit() to replace svr4_recvit() and the stock
    kern_sendit() to replace svr4_sendit().
  - Use kern_bind() instead of stackgap use in ti_bind().
  - Use kern_getpeername() and kern_getsockname() instead of stackgap in
    svr4_stream_ti_ioctl().
  - Use kern_connect() instead of stackgap in svr4_do_putmsg().
  - Use kern_getpeername() and kern_accept() instead of stackgap in
    svr4_do_getmsg().
  - Retire the stackgap from SVR4 compat as it is no longer used.
  
  Revision  Changes    Path
  1.57      +5 -3      src/sys/compat/freebsd32/freebsd32_misc.c
  1.58      +63 -379   src/sys/compat/svr4/svr4_stream.c
  1.12      +0 -24     src/sys/compat/svr4/svr4_util.h
  1.231     +169 -103  src/sys/kern/uipc_syscalls.c
  1.43      +8 -2      src/sys/sys/syscallsubr.h


More information about the cvs-all mailing list