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

Modified Files:
	src/sys/compat/darwin: darwin_route.c darwin_socket.c darwin_socket.h

Log Message:
Use do_sys_recvmsg(), so_sys_accept(), do_sys_getsockname() and do_sys_senmsg()
  in order to avoid the stackgap (etc).
Note that since changing the darwin socket address is simply a matter of
  translating the address family and adding sa_len, it can easily be done
  on the mbuf resident address before/after copying to/from userspace.
Simplify the convertion of AF_LOCAL addresses by usingthe user-supplied
  buffer length instead of dowing an unbounded strlen().
Untested - did this work before?


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 src/sys/compat/darwin/darwin_route.c
cvs rdiff -r1.14 -r1.15 src/sys/compat/darwin/darwin_socket.c
cvs rdiff -r1.5 -r1.6 src/sys/compat/darwin/darwin_socket.h

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