syscall copy{in,out} separation

David P. Reese Jr. daver at
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.

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