Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: David Laight <dsl@netbsd.org>
List: source-changes
Date: 06/24/2007 18:00:16
Module Name:	src
Committed By:	dsl
Date:		Sun Jun 24 18:00:16 UTC 2007

Modified Files:
	src/sys/kern: uipc_syscalls.c
	src/sys/sys: socket.h socketvar.h

Log Message:
Split sys_getpeername() and sys_getsockname() so they can be called when the
  'name' is wanted in kernel code.
Similarly split sys_accept() and change the split in recvmsg() so that it
  is useful to the compat functions, recvit() is removed and replaced by
  do_sys_recvmsg().
Factor out the code that writes socked names to userspace (from mbuf) to
  avoid replicated code.
Extract the code that writes socket 'control' (CMSG) data out to userspace,
  being more careful about the 'fd' that may exist inside SCM_RIGHTS msgs.
  (they still get lost if some of the latter copyout calls fail).
Since these are new functions, and old LKMs will fail to load.


To generate a diff of this commit:
cvs rdiff -r1.112 -r1.113 src/sys/kern/uipc_syscalls.c
cvs rdiff -r1.86 -r1.87 src/sys/sys/socket.h
cvs rdiff -r1.95 -r1.96 src/sys/sys/socketvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.