DragonFly BSD
DragonFly submit List (threaded) for 2003-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

syscall copy{in,out} separation


From: "David P. Reese Jr." <daver@xxxxxxxxxxxx>
Date: 23 Aug 2003 13:56:02 GMT

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@xxxxxxxxxxxx



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]