syscall copy{in,out} separation

David P. Reese Jr. daver at gomerbud.com
Sat Aug 23 06:56:02 PDT 2003


Here's a patch that attempts to separate copy{in,out} from the bind(),
connect() and accept() syscalls.

http://gomerbud.com/daver/patches/dragonfly/syscall-separation-1.diff

Would it be benificial to further modify accept() to use dynamic allocation
for the sockaddr?  The structure isn't really that big.

Also, if accept1() instead took a handle to the sockaddr, it would be
possible to copyout the sockaddr returned by soaccept() and FREE() it
without any allocatons happening in accept().  This would be similar to
the way that getsockaddr() works.

-- 
   David P. Reese, Jr.                                     daver at xxxxxxxxxxxx





More information about the Submit mailing list